samm Posted December 24, 2013 Share Posted December 24, 2013 (edited) Hi, Instead of the standard windows button, I would like to use this PNG button (so it would support transparency): Is it possible to make the above PNG image clickable button, working as the standard one? I've been looking on google & through the examples scripts but havent found anything. Regards Edited December 24, 2013 by samm Link to comment Share on other sites More sharing options...
UEZ Posted December 24, 2013 Share Posted December 24, 2013 Search the forum for "png bm_setimage button".Br,UEZ Divane 1 Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ Link to comment Share on other sites More sharing options...
samm Posted December 24, 2013 Author Share Posted December 24, 2013 Search the forum for "png bm_setimage button". Br, UEZ Default button is visible that way... Link to comment Share on other sites More sharing options...
UEZ Posted December 24, 2013 Share Posted December 24, 2013 #include <ButtonConstants.au3> #include <GDIPlus.au3> #include <GUIConstantsEx.au3> #include <MsgBoxConstants.au3> _GDIPlus_Startup() Global Const $hGUI = GUICreate("Test", 300, 200) GUISetBkColor(0x404040) Global Const $iBtn = GUICtrlCreateButton("", 10, 10, 138, 138, BitOR($BS_BITMAP, $BS_CENTER)) Global Const $hImage = _GDIPlus_ImageLoadFromFile(@ScriptDir & "\StepForwardDisabled.png") Global Const $hHBitmap = _GDIPlus_BitmapCreateHBITMAPFromBitmap($hImage) _WinAPI_DeleteObject(_SendMessage(GUICtrlGetHandle($iBtn), $BM_SETIMAGE, $IMAGE_BITMAP, $hHBitmap)) GUISetState() Do Switch GUIGetMsg() Case $GUI_EVENT_CLOSE _Exit() Case $iBtn MsgBox($MB_APPLMODAL, "Test", "Button was pressed") EndSwitch Until False Func _Exit() _WinAPI_DeleteObject($hHBitmap) _GDIPlus_ImageDispose($hImage) _GDIPlus_Shutdown() GUIDelete() Exit EndFunc Br, UEZ samm and mixim 2 Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ Link to comment Share on other sites More sharing options...
samm Posted December 24, 2013 Author Share Posted December 24, 2013 Default button is still visible. I want only the "StepForwardDisabled.png" to be visible & clickable on the GUI. Link to comment Share on other sites More sharing options...
Solution UEZ Posted December 24, 2013 Solution Share Posted December 24, 2013 (edited) #include <ButtonConstants.au3> #include <GDIPlus.au3> #include <GUIConstantsEx.au3> #include <MsgBoxConstants.au3> #include <StaticConstants.au3> _GDIPlus_Startup() Global Const $hGUI = GUICreate("Test", 300, 200), $STM_SETIMAGE = 0x0172 GUISetBkColor(0x404040) Global Const $iPic = GUICtrlCreatePic("", 10, 10, 138, 138) Global Const $hImage = _GDIPlus_ImageLoadFromFile(@ScriptDir & "\StepForwardDisabled.png") Global Const $hHBitmap = _GDIPlus_BitmapCreateHBITMAPFromBitmap($hImage) _WinAPI_DeleteObject(GUICtrlSendMsg($iPic, $STM_SETIMAGE, $IMAGE_BITMAP, $hHBitmap)) GUISetState() Do Switch GUIGetMsg() Case $GUI_EVENT_CLOSE _Exit() Case $iPic MsgBox($MB_APPLMODAL, "Test", "Button was pressed") EndSwitch Until False Func _Exit() _WinAPI_DeleteObject($hHBitmap) _GDIPlus_ImageDispose($hImage) _GDIPlus_Shutdown() GUIDelete() Exit EndFuncBr,UEZ Edited December 24, 2013 by UEZ samm 1 Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ Link to comment Share on other sites More sharing options...
samm Posted December 24, 2013 Author Share Posted December 24, 2013 Thank you so much UEZ. Merry Christmas. Link to comment Share on other sites More sharing options...
UEZ Posted December 24, 2013 Share Posted December 24, 2013 Your are welcome and merry xmas. Btw, I updated the code a little bit. Br, UEZ samm 1 Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ Link to comment Share on other sites More sharing options...
samm Posted December 24, 2013 Author Share Posted December 24, 2013 Thank you once again. Btw, This is displaying while I run the script, while I change the #include <MsgBoxConstants.au3> into the #include <Constants.au3> It works. Do I need to leave it like this or I'd have to update something? Regards Link to comment Share on other sites More sharing options...
UEZ Posted December 24, 2013 Share Posted December 24, 2013 (edited) Sorry, forgot to modify this line. MsgBoxConstants.au3 is from the current final release and not included in previous versions.If your code works than it works - no need to update something.Br,UEZ Edited December 24, 2013 by UEZ samm 1 Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ Link to comment Share on other sites More sharing options...
samm Posted December 24, 2013 Author Share Posted December 24, 2013 UEZ, I am using the GDI Plus as well to display my GUI PNG image background, when I add the code responsible for the button, it does clean my GUI background to white leaving only the button visible. Is it possible to have multiple GDI Plus images on the same GUI? Regards Link to comment Share on other sites More sharing options...
UEZ Posted December 24, 2013 Share Posted December 24, 2013 (edited) Use the same technique as shown but disable the background control. #include <Constants.au3> #include <GDIPlus.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> _GDIPlus_Startup() Global Const $hGUI = GUICreate("Test", 300, 200), $STM_SETIMAGE = 0x0172 Global Const $iPic_Bg = GUICtrlCreatePic("", 0, 0, 1024, 768) GUICtrlSetState(-1, $GUI_DISABLE) SendImageToPicControl("c:\Program Files (x86)\AutoIt3\Examples\GUI\msoobe.jpg", $iPic_Bg) Global Const $iPic = GUICtrlCreatePic("", 10, 10, 128, 128) SendImageToPicControl(@ScriptDir & "\StepForwardDisabled.png", $iPic) GUISetState() Do Switch GUIGetMsg() Case $GUI_EVENT_CLOSE _Exit() Case $iPic MsgBox($MB_APPLMODAL, "Test", "Button was pressed") EndSwitch Until False Func SendImageToPicControl($sImage, $iCtrlID) Local Const $hImage = _GDIPlus_ImageLoadFromFile($sImage) Local Const $hHBitmap = _GDIPlus_BitmapCreateHBITMAPFromBitmap($hImage) _WinAPI_DeleteObject(GUICtrlSendMsg($iCtrlID, $STM_SETIMAGE, $IMAGE_BITMAP, $hHBitmap)) _WinAPI_DeleteObject($hHBitmap) _GDIPlus_ImageDispose($hImage) EndFunc Func _Exit() _GDIPlus_Shutdown() GUIDelete() Exit EndFunc Br, UEZ Edited December 25, 2013 by UEZ MadaraUchiha, behdadsoft and samm 2 1 Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ Link to comment Share on other sites More sharing options...
samm Posted December 24, 2013 Author Share Posted December 24, 2013 (edited) Func SendImageToPicControl($sImage, $iCtrlID) ;this way works only for Vista+ os What about the XP systems? Is there any work-around to support this system? Regards Edited December 24, 2013 by samm Link to comment Share on other sites More sharing options...
UEZ Posted December 25, 2013 Share Posted December 25, 2013 (edited) Just tested in my WinXP VM and it works, too. I had something in mind that when disposed the bitmap just after sending it to the picture control the image was not shown. I'm not using WinXP anymore for a long time. Otherwise you have to dispose the image when you exit the script -> _WinAPI_DeleteObject($hHBitmap).Br,UEZ Edited December 25, 2013 by UEZ samm 1 Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ Link to comment Share on other sites More sharing options...
Terenz Posted December 25, 2013 Share Posted December 25, 2013 (edited) UEZ sorry if i'm bump another guy thread but i have an issue with this script: expandcollapse popup#include <GUIConstantsEx.au3> #include <Constants.au3> #include <GDIPlus.au3> _GDIPlus_Startup() Global Const $STM_SETIMAGE = 0x0172 $hGUI = GUICreate("Test", 300, 200) $iPic_Bg = GUICtrlCreatePic("", 0, 0, 300, 200) GUICtrlSetState(-1, $GUI_DISABLE) SendImageToPicControl(@ProgramFilesDir & "\AutoIt3\Examples\GUI\msoobe.jpg", $iPic_Bg) $iPic = GUICtrlCreatePic("", 62, 15, 138, 138) SendImageToPicControl(@ProgramFilesDir & "\AutoIt3\Examples\GUI\Torus.png", $iPic) GUISetState() Do Switch GUIGetMsg() Case $GUI_EVENT_CLOSE _Exit() Case $iPic MsgBox(0, "Test", "Button was pressed") EndSwitch Until False Func SendImageToPicControl($sImage, $iCtrlID) Local Const $hImage = _GDIPlus_ImageLoadFromFile($sImage) Local Const $hHBitmap = _GDIPlus_BitmapCreateHBITMAPFromBitmap($hImage) _WinAPI_DeleteObject(GUICtrlSendMsg($iCtrlID, $STM_SETIMAGE, $IMAGE_BITMAP, $hHBitmap)) _WinAPI_DeleteObject($hHBitmap) _GDIPlus_ImageDispose($hImage) EndFunc Func _Exit() _GDIPlus_Shutdown() GUIDelete() Exit EndFunc This is the screenshot when i open it: But if i minimize the window, then click on the taskbar to "restore it" i have this: What is that? XP SP3 with Autoit 3.3.8.1, using Global Const etc. is the same Merry xmas to all! Edited December 25, 2013 by Terenz Nothing is so strong as gentleness. Nothing is so gentle as real strength Link to comment Share on other sites More sharing options...
UEZ Posted December 25, 2013 Share Posted December 25, 2013 (edited) You have to provide the real image resolutions: $hGUI = GUICreate("Test", 300, 200) $iPic_Bg = GUICtrlCreatePic("", 0, 0, 1024, 768) GUICtrlSetState(-1, $GUI_DISABLE) SendImageToPicControl(@ProgramFilesDir & "\AutoIt3\Examples\GUI\msoobe.jpg", $iPic_Bg) $iPic = GUICtrlCreatePic("", 62, 15, 193, 184) SendImageToPicControl(@ProgramFilesDir & "\AutoIt3\Examples\GUI\Torus.png", $iPic) GUISetState() Otherwise the image proportions will be malformed. Or try to load the image directly: $hGUI = GUICreate("Test", 300, 200) $iPic_Bg = GUICtrlCreatePic(@ProgramFilesDir & "\AutoIt3\Examples\GUI\msoobe.jpg", 0, 0, 300, 200, 14) GUICtrlSetState(-1, $GUI_DISABLE) ;~ SendImageToPicControl(@ProgramFilesDir & "\AutoIt3\Examples\GUI\msoobe.jpg", $iPic_Bg) $iPic = GUICtrlCreatePic("", 62, 15, 193, 184) SendImageToPicControl(@ProgramFilesDir & "\AutoIt3\Examples\GUI\Torus.png", $iPic) Br, UEZ Edited December 25, 2013 by UEZ Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ Link to comment Share on other sites More sharing options...
mixim Posted August 25, 2020 Share Posted August 25, 2020 On 12/25/2013 at 4:01 PM, UEZ said: @UEZ can you help me please. I couldn't do the image in memory to tab #include <ButtonConstants.au3> #include <GDIPlus.au3> #include <GUIConstantsEx.au3> #include <MsgBoxConstants.au3> Opt("GUIOnEventMode", 1) _GDIPlus_Startup() $xGui = GUICreate("", 412, 360, -1, -1) $xTab = GUICtrlCreateTab(5, 5, 412 - 10, 328 - 10) $xButton = GUICtrlCreateButton("Test", 100, 100, 150, 50) ;Global Const $STM_SETIMAGE = 0x0172, $BM_SETIMAGE = 0xF7, $IMAGE_BITMAP = 0 Global Const $hImage = __GDIPlus_BitmapCreateFromMemory(_ico_Test01()) Global Const $hHBitmap = _GDIPlus_BitmapCreateHBITMAPFromBitmap($hImage) _WinAPI_DeleteObject(_SendMessage(GUICtrlGetHandle($xButton), 0xF7, 0, $hHBitmap)) $xTabItem1 = GUICtrlCreateTabItem("TabItem 1 ") GUICtrlSetImage(-1, @ScriptDir & "\test02.ico") $xTabItem2 = GUICtrlCreateTabItem("TabItem 2 ") GUICtrlSetImage(-1, _ico_Test02()) ;did not work ???????? GUISetState() GUISetOnEvent(-3, "_Exit") While 1 Sleep(25) WEnd Func _ico_Test01() Local $ico $ico &= "0000010001002040000001002000A810000016000000280000002000000040000000010020000000000080100000000000000000000000000000000000001168A0181687CFAF1689D2DE1689D2DF1689D2DF1689D2DF1689D2DF1689D2DF1689D2DF1689D2DF1689D2DF1689D2DF1689D2DF1689D2DF1688CFBC1478B5272DA4382736C43EBC36C63EDF36C73EDF36C73EDF36C73EDF36C73EDF36C73EDF36C73EDF36C73EDF36C73EDF36C73EDF36C73EDF36C63EDE36C43EAF2C9F32181689D3AF1590DFFF1591E0FF1591E0FF1591E0FF1591E0FF1591E0FF1591E0FF1591E0FF1591E0FF1591E0FF1591E0FF1591E0FF1591E0FF1590DFFF178DCFCF35C646CF37D340FF37D440FF37D440FF37D440FF37D440FF37D440FF37D440FF37D440FF37D440FF37D440FF37D440FF37D440FF37D440FF37D340FF36C83FAF158FDDDE1591E0FF1591E0FF1591E0FF1591E0FF1591E0FF1591E0FF1591E0FF1591E0FF1591E0FF1591E0FF1591E0FF1591E0FF1591E0FF1591E0FF1590DEFE38D341FE38D541FF38D541FF38D541FF38D541FF38D541FF38D541FF38D541FF38D541FF38D541FF38D541FF38D541FF38D541FF38D541FF38D541FF38D241E11692E1DF1692E1FF1692E1FF1692E1FF1692E1FF1692E1FF1692E1FF1692E1FF1692E1FF1692E1FF1692E1FF1692E1FF1692E1FF1692E1FF1692E1FF1692E1FF3AD5" $ico &= "43FF3AD543FF3AD543FF3AD543FF3AD543FF3AD543FF3AD543FF3AD543FF3AD543FF3AD543FF3AD543FF3AD543FF3AD543FF3AD543FF3AD543FF3AD543E31793E2DF1793E2FF1793E2FF1793E2FF1793E2FF1793E2FF1793E2FF1793E2FF1793E2FF1793E2FF1793E2FF1793E2FF1793E2FF1793E2FF1793E2FF1793E2FF3BD644FF3BD644FF3BD644FF3BD644FF3BD644FF3BD644FF3BD644FF3BD644FF3BD644FF3BD644FF3BD644FF3BD644FF3BD644FF3BD644FF3BD644FF3BD544E31895E4DF1995E4FF1995E4FF1995E4FF1995E4FF1995E4FF1995E4FF1995E4FF1995E4FF1995E4FF1995E4FF1995E4FF1995E4FF1995E4FF1995E4FF1995E4FF3CD645FF3CD645FF3CD645FF3CD645FF3CD645FF3CD645FF3CD645FF3CD645FF3CD645FF3CD645FF3CD645FF3CD645FF3CD645FF3CD645FF3CD645FF3CD645E31A96E5DF1A96E5FF1A96E5FF1A96E5FF1A96E5FF1A96E5FF1A96E5FF1A96E5FF1A96E5FF1A96E5FF1A96E5FF1A96E5FF1A96E5FF1A96E5FF1A96E5FF1A96E5FF3DD747FF3DD747FF3DD747FF3DD747FF3DD747FF3DD747FF3DD747FF3DD747FF3DD747FF3DD747FF3DD747FF3DD747FF3DD747FF3DD747FF3DD747FF3DD747E31B98E7DF1B98E7FF1B98E7FF1B98E7FF1B98E7FF1B98E7FF1B98E7FF1B98E7FF1B98E7FF1B98E7FF1B98E7FF1B98E7FF1B98E7FF1B98E7FF1B98E7FF1B98E7FF3FD8" $ico &= "48FF3FD848FF3FD848FF3FD848FF3FD848FF3FD848FF3FD848FF3FD848FF3FD848FF3FD848FF3FD848FF3FD848FF3FD848FF3FD848FF3FD848FF3ED748E31D99E8DF1D99E8FF1D99E8FF1D99E8FF1D99E8FF1D99E8FF1D99E8FF1D99E8FF1D99E8FF1D99E8FF1D99E8FF1D99E8FF1D99E8FF1D99E8FF1D99E8FF1D99E8FF40D849FF40D849FF40D849FF40D849FF40D849FF40D849FF40D849FF40D849FF40D849FF40D849FF40D849FF40D849FF40D849FF40D849FF40D849FF40D849E31E9BEADF1E9BEAFF1E9BEAFF1E9BEAFF1E9BEAFF1E9BEAFF1E9BEAFF1E9BEAFF1E9BEAFF1E9BEAFF1E9BEAFF1E9BEAFF1E9BEAFF1E9BEAFF1E9BEAFF1E9BEAFF41D94AFF41D94AFF41D94AFF41D94AFF41D94AFF41D94AFF41D94AFF41D94AFF41D94AFF41D94AFF41D94AFF41D94AFF41D94AFF41D94AFF41D94AFF41D84AE3209CEBDF209CEBFF209CEBFF209CEBFF209CEBFF209CEBFF209CEBFF209CEBFF209CEBFF209CEBFF209CEBFF209CEBFF209CEBFF209CEBFF209CEBFF209CEBFF42D94CFF42D94CFF42D94CFF42D94CFF42D94CFF42D94CFF42D94CFF42D94CFF42D94CFF42D94CFF42D94CFF42D94CFF42D94CFF42D94CFF42D94CFF42D94CE3219DECDF219EEDFF219EEDFF219EEDFF219EEDFF219EEDFF219EEDFF219EEDFF219EEDFF219EEDFF219EEDFF219EEDFF219EEDFF219EEDFF219EEDFF219EEDFF43DA" $ico &= "4DFF43DA4DFF43DA4DFF43DA4DFF43DA4DFF43DA4DFF43DA4DFF43DA4DFF43DA4DFF43DA4DFF43DA4DFF43DA4DFF43DA4DFF43DA4DFF43DA4DFF43DA4DE3229FEEDF229FEEFF229FEEFF229FEEFF229FEEFF229FEEFF229FEEFF229FEEFF229FEEFF229FEEFF229FEEFF229FEEFF229FEEFF229FEEFF229FEEFF229FEEFF45DB4EFF45DB4EFF45DB4EFF45DB4EFF45DB4EFF45DB4EFF45DB4EFF45DB4EFF45DB4EFF45DB4EFF45DB4EFF45DB4EFF45DB4EFF45DB4EFF45DB4EFF45DA4EE324A0EFDF24A0EFFF24A0EFFF24A0EFFF24A0EFFF24A0EFFF24A0EFFF24A0EFFF24A0EFFF24A0EFFF24A0EFFF24A0EFFF24A0EFFF24A0EFFF24A0EFFF24A0EFFF46DB50FF46DB50FF46DB50FF46DB50FF46DB50FF46DB50FF46DB50FF46DB50FF46DB50FF46DB50FF46DB50FF46DB50FF46DB50FF46DB50FF46DB50FF46DB50E225A2F1BC25A2F1FF25A2F1FF25A2F1FF25A2F1FF25A2F1FF25A2F1FF25A2F1FF25A2F1FF25A2F1FF25A2F1FF25A2F1FF25A2F1FF25A2F1FF25A2F1FF26A4ECDC46D958DC47DC51FF47DC51FF47DC51FF47DC51FF47DC51FF47DC51FF47DC51FF47DC51FF47DC51FF47DC51FF47DC51FF47DC51FF47DC51FF47DC51FF47DB51BC2290D62727A3F2CF27A3F2FE27A3F2FF27A3F2FF27A3F2FF27A3F2FF27A3F2FF27A3F2FF27A3F2FF27A3F2FF27A3F2FF27A3F2FF27A3F2FF34A2E3DF5BA1B33E72C3" $ico &= "4F3E53D750DF48DC52FF48DC52FF48DC52FF48DC52FF48DC52FF48DC52FF48DC52FF48DC52FF48DC52FF48DC52FF48DC52FF48DC52FE48DC52CF42CA4B2700000000000000000000000000000000000000000000000000000000000000008D9E7F30C09D48D5CF9F3BFED09F3BFFD09F3BFFD09F3BFFD09F3BFFD09F3BFFD09F3BFFD09F3BFFD09F3BFFD09F3BFFD09F3BFFCF9F3BFEC3A13CD59BB2433000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000D2A13CCCDCA83EFFDCA83EFFDCA83EFFDCA83EFFDCA83EFFDCA83EFFDCA83EFFDCA83EFFDCA83EFFDCA83EFFDCA83EFFDCA83EFFDCA83EFFDCA83EFFD2A13DCB00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000DCA83FF2DEAA3FFFDEAA3FFFDEAA3FFFDEAA3FFFDEAA3FFFDEAA3FFFDEAA3FFFDEAA3FFFDEAA3FFFDEAA3FFFDEAA3FFFDEAA3FFFDEAA3FFFDEAA3FFFDDA93FEF00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000DFAB41F3DFAB41FFDFAB41FFDFAB41FFDFAB41FFDFAB41FFDFAB41FFDFAB41FFDFAB" $ico &= "41FFDFAB41FFDFAB41FFDFAB41FFDFAB41FFDFAB41FFDFAB41FFDFAB41EF00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000E1AD42F3E1AD42FFE1AD42FFE1AD42FFE1AD42FFE1AD42FFE1AD42FFE1AD42FFE1AD42FFE1AD42FFE1AD42FFE1AD42FFE1AD42FFE1AD42FFE1AD42FFE0AC42EF00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000E2AE44F3E2AE44FFE2AE44FFE2AE44FFE2AE44FFE2AE44FFE2AE44FFE2AE44FFE2AE44FFE2AE44FFE2AE44FFE2AE44FFE2AE44FFE2AE44FFE2AE44FFE2AE44EF00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000E3AF45F3E3AF45FFE3AF45FFE3AF45FFE3AF45FFE3AF45FFE3AF45FFE3AF45FFE3AF45FFE3AF45FFE3AF45FFE3AF45FFE3AF45FFE3AF45FFE3AF45FFE3AF45EF00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000E5B147F3E5B147FFE5B147FFE5B147FFE5B147FFE5B147FFE5B147FFE5B147FFE5B1" $ico &= "47FFE5B147FFE5B147FFE5B147FFE5B147FFE5B147FFE5B147FFE5B147EF00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000E6B248F3E6B248FFE6B248FFE6B248FFE6B248FFE6B248FFE6B248FFE6B248FFE6B248FFE6B248FFE6B248FFE6B248FFE6B248FFE6B248FFE6B248FFE6B248EF00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000E7B34AF3E7B34AFFE7B34AFFE7B34AFFE7B34AFFE7B34AFFE7B34AFFE7B34AFFE7B34AFFE7B34AFFE7B34AFFE7B34AFFE7B34AFFE7B34AFFE7B34AFFE7B34AEF00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000E9B54BF3E9B54BFFE9B54BFFE9B54BFFE9B54BFFE9B54BFFE9B54BFFE9B54BFFE9B54BFFE9B54BFFE9B54BFFE9B54BFFE9B54BFFE9B54BFFE9B54BFFE9B54BEF00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000EAB64DF3EAB64DFFEAB64DFFEAB64DFFEAB64DFFEAB64DFFEAB64DFFEAB64DFFEAB6" $ico &= "4DFFEAB64DFFEAB64DFFEAB64DFFEAB64DFFEAB64DFFEAB64DFFEAB64DEF00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ECB84EF3ECB84EFFECB84EFFECB84EFFECB84EFFECB84EFFECB84EFFECB84EFFECB84EFFECB84EFFECB84EFFECB84EFFECB84EFFECB84EFFECB84EFFEBB74EEF00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000EDB950F1EDB950FFEDB950FFEDB950FFEDB950FFEDB950FFEDB950FFEDB950FFEDB950FFEDB950FFEDB950FFEDB950FFEDB950FFEDB950FFEDB950FFEDB950EE00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000EEBA51BFEEBA51FFEEBA51FFEEBA51FFEEBA51FFEEBA51FFEEBA51FFEEBA51FFEEBA51FFEEBA51FFEEBA51FFEEBA51FFEEBA51FFEEBA51FFEEBA51FFEEBA51BF00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000CDA1461FEFBB52B5F0BC52DFF0BC52DFF0BC52DFF0BC52DFF0BC52DFF0BC52DFF0BC" $ico &= "52DFF0BC52DFF0BC52DFF0BC52DFF0BC52DFF0BC52DFEFBB52B5D5A6491F000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000FF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FF" Return Binary("0x" & $ico) EndFunc ;==>_ico_Test01 Func _ico_Test02() Local $ico $ico &= "0000010001002040000001002000A8100000160000002800000020000000400000000100200000000000801000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003F95B71640AEDA4736B1E3722FB0E4972CB0E4B422B8EDC02ABBEDAD48BFE627000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003988A70940ADD64035B0" $ico &= "E0782EAFE3AF28AEE4E222ACE5FE22ACE5FF21AEE6FF1CB7ECFF10C1F6FF0AC8FCFF0AC8FCFF51D2F2350000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003987A50544B1DB4033AFE1842BAEE3C724ADE4FA22ACE4FF22ADE5FF22ADE5FF23AFE6FF26BDEEFF21B9ECFF1ACAF9FF16C4F4FF06CAFEFF0CC7FAFF06CAFEFF79D8EC1500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000057A2BE0A40B4E1552CAFE3A825ADE4EF22ACE5FF21ADE4FF22ADE4FF22ACE5FF22ACE4FF22B2E8FF29BCECFF3BD1F7FF1FC2F0FF28CEF9FF20CCF9FF17C5F5FF09CBFEFF0CC7FAFF0BCBFDF2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000058B5D92A59BCE2BA28AEE4F122ADE4FF22ADE5FF22ADE5FF24AFE6FF26B0E6FF1FB4E9FF2FC2EEFF45CBF0FF1BBFEEFF31CBF3FF43D7F7FF1CC0EFFF2CD0F9FF24CDF8FF19C6F6FF0DCBFEFF0DC7FAFF0CCAFCE10000000000000000000000000000000000000000000000000000000000000000000000004593AF033CB5E58D24ADE5FC22ACE5FF22AEE6FF24B7EBFF29BCEDFF1FBCECFF2BC8F2FF54DBF7FF29C6F0FF1FC1EFFF67E1F6FF35CB" $ico &= "F1FF2AC8F1FF4CDBF9FF26C6F1FF2DCFF8FF28D0FAFF1AC7F6FF10CCFDFF0DC7FAFF11CAFCDB00000000000000000000000000000000000000000000000000000000000000000000000038B6E67C18B8EEFF12C0F5FF17C3F6FF1CC5F4FF20C5F3FF35D3F9FF3CD4F8FF22C4F0FF3CCFF4FF65E0F6FF2AC6EFFF4FD6F3FF62DFF6FF21C2EFFF4DDBF8FF35CFF5FF2BCCF7FF2AD2FCFF1BC7F6FF12CCFDFF0CC7FAFF0FCAFCDF00000000000000000000000000000000000000000000000000000000000000000000000032C9F45213C8F9F00FC7F9FF15CAFBFF1ECFFBFF28CEF9FF22C5F1FF3FD5F8FF4BDAF8FF27C5F1FF5CDCF5FF63DEF5FF2EC7F0FF68E2F7FF3BCFF3FF40D4F6FF40D7F9FF27C9F5FF2AD2FBFF1CC8F7FF11CDFDFF0DC7FAFF0FCAFCF63BA2BC0100000000000000000000000000000000000000000000000000000000000000000000000042CBF01A1DCDFCB512CAFBFF1CCAF8FF29D1FBFF32D3FBFF29C9F3FF48D9F8FF51DBF7FF33CAF1FF67E1F8FF45D2F4FF4ED7F5FF52DBF8FF33CDF4FF3FD7FAFF29CCF6FF27D1FBFF1BCAF8FF0ECCFDFF0CC7FAFF06CAFEFF53A9BD3200000000000000000000000000000000000000000000000000000000000000000000000000000000000000002FD0FA671DCEFCF422CAF7FF30D2FBFF3AD5FBFF2FCBF4FF4DDBF8FF49D7F6FF46D4F4FF59DEF8FF3CD0" $ico &= "F4FF4EDBF9FF36D1F6FF39D6FBFF2BCEF8FF23D0FBFF19CAFAFF0CCBFEFF0CC7FAFF0BC4F5FF3D676EF63735332900000000000000000000000000000000000000000000000000000000000000000000000000000000000000003FD2F72A28D0FBD824CCF7FF32D2FAFF3CD5FAFF36D0F5FF4BDBF9FF3FD3F6FF4BDAF8FF43D6F8FF40D6F9FF39D5FAFF2FD1FAFF28D1FBFF1ECAF6FF26AFD2FF3290A5FF477075FF59544CFF27231FFF1312129A00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044C5E41033D3FABA26CDF7FF32D2FAFF37D4F9FF36D2F7FF42D8FAFF3AD3F8FF3ED7FAFF38CEF2FF3EB2CDFF4393A3FF4D7479FF5D5B53FF675C52FF706559FF827467FF988878FF3C362FFF0D0D0DC40000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000051B0C6063ABAD8D324CCF7FF30D2F8FF39BDDDFF45A4B8FF4D8992FF566D6CFF655C54FF695F54FF706559FF786D60FF7F7164FF827265FF827466FF8D7E6EFF9B8B7AFF8C7D6FFF1414138D00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005F5C55CB4E6F72FF615F58FF7D7063FF958677FFA08F7EFF9F8F" $ico &= "7EFF908171FF7D7164FF7B7062FF7D7062FF7F7164FF827265FF827466FE908173DF9D8E7FA3A2938468534F4B0A000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000093867988B19E8CFFC7B19EFFCDB6A2FFCBB5A0FFB7A391FFA39281FF908171FF7D7164FF7B7062FF7F7265E784776B8E897D73548A80761A000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000B7A89922C0AB99F9C7B29DFFCDB6A2FFCBB4A0FFB7A491FBA59685D9938677AC807568D97B7062FF807568A600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000C3B09F6AC8B4A08FCDB9A55FCBB8A731A29487090000000000000000887E734B7B7062FF817568D50000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" $ico &= "0000000000006B645D01807568D17D7163FD867D73210000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000877C71637D7062FF85796D7600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007971690B7F7365F1827568D300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000082786B9B7E7163FF8C817538000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" $ico &= "0000000000000000000000000000887F73447F7164FF86786CA2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000071696106817366F1827266F98C807624000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000084776ABC827265FF887A6EAF000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000085776B9D827265FF827466FE94887C3D00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" $ico &= "00000000000000000000000000000000000086786D8B827265FF827466FF8F8273B3000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008B7F7364817265FFB5ADA5FF8E7F70F7776E640800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000081776E12837568EBD9D6D2FF96887AFF746A6017000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008B7F7537897C70D7908274C9766D6402000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" $ico &= "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000FFFFFFFFFFFFFFFFFFFFE01FFFFC001FFFC0001FFE00003FF800003FE000003FE000003FE000001FF000001FFC00000FFE00000FFF00000FFF80000FFFC0000FFFC000FFFFC007FFFFE0C7FFFFFFC3FFFFFFE3FFFFFFE3FFFFFFF1FFFFFFF1FFFFFFF0FFFFFFF8FFFFFFF87FFFFFF87FFFFFF83FFFFFF83FFFFFFC3FFFFFFFFF" Return Binary("0x" & $ico) EndFunc ;==>_ico_Test02 Func __GDIPlus_BitmapCreateFromMemory($dImage, $bHBITMAP = False) If Not IsBinary($dImage) Then Return SetError(1, 0, 0) Local $aResult = 0 Local Const $dMemBitmap = Binary($dImage) ;load image saved in variable (memory) and convert it to binary Local Const $iLen = BinaryLen($dMemBitmap) ;get binary length of the image Local Const $GMEM_MOVEABLE = 0x0002 $aResult = DllCall("kernel32.dll", "handle", "GlobalAlloc", "uint", $GMEM_MOVEABLE, "ulong_ptr", $iLen) ;allocates movable memory ($GMEM_MOVEABLE = 0x0002) If @error Then Return SetError(4, 0, 0) Local Const $hData = $aResult[0] $aResult = DllCall("kernel32.dll", "ptr", "GlobalLock", "handle", $hData) If @error Then Return SetError(5, 0, 0) Local $tMem = DllStructCreate("byte[" & $iLen & "]", $aResult[0]) ;create struct DllStructSetData($tMem, 1, $dMemBitmap) ;fill struct with image data DllCall("kernel32.dll", "bool", "GlobalUnlock", "handle", $hData) ;decrements the lock count associated with a memory object that was allocated with GMEM_MOVEABLE If @error Then Return SetError(6, 0, 0) Local Const $hStream = _WinAPI_CreateStreamOnHGlobal($hData) ;creates a stream object that uses an HGLOBAL memory handle to store the stream contents If @error Then Return SetError(2, 0, 0) Local Const $hBitmap = _GDIPlus_BitmapCreateFromStream($hStream) ;creates a Bitmap object based on an IStream COM interface If @error Then Return SetError(3, 0, 0) DllCall("oleaut32.dll", "long", "DispCallFunc", "ptr", $hStream, "ulong_ptr", 8 * (1 + @AutoItX64), "uint", 4, "ushort", 23, "uint", 0, "ptr", 0, "ptr", 0, "str", "") ;release memory from $hStream to avoid memory leak If $bHBITMAP Then Local Const $hHBmp = __GDIPlus_BitmapCreateDIBFromBitmap($hBitmap) ;supports GDI transparent color format _GDIPlus_BitmapDispose($hBitmap) Return $hHBmp EndIf Return $hBitmap EndFunc ;==>__GDIPlus_BitmapCreateFromMemory Func _Exit() Exit EndFunc ;==>_Exit Link to comment Share on other sites More sharing options...
UEZ Posted August 26, 2020 Share Posted August 26, 2020 You can do something like this here: expandcollapse popup#include <ButtonConstants.au3> #include <GDIPlus.au3> #include <GUIConstantsEx.au3> #include <MsgBoxConstants.au3> #include <SendMessage.au3> #include <GuiImageList.au3> #include <GuiTab.au3> Opt("GUIOnEventMode", 1) _GDIPlus_Startup() $xGui = GUICreate("", 412, 360, -1, -1) $xTab = GUICtrlCreateTab(5, 5, 412 - 10, 328 - 10) $xButton = GUICtrlCreateButton("Test", 100, 100, 150, 50) ;Global Const $STM_SETIMAGE = 0x0172, $BM_SETIMAGE = 0xF7, $IMAGE_BITMAP = 0 Global Const $hHBitmap = _GDIPlus_BitmapCreateFromMemory(_ico_Test01(), True) Global Const $hBitmap1 = _GDIPlus_BitmapCreateFromMemory(_ico_Test01()) Global Const $hBitmap2 = _GDIPlus_BitmapCreateFromMemory(_ico_Test02()) Global $hImg = _GDIPlus_ImageResize($hBitmap1, 16, 16) $hHBitmap1 = _GDIPlus_BitmapCreateHBITMAPFromBitmap($hImg) _GDIPlus_ImageDispose($hImg) Global $hImg = _GDIPlus_ImageResize($hBitmap2, 16, 16) $hHBitmap2 = _GDIPlus_BitmapCreateHBITMAPFromBitmap($hImg) _GDIPlus_ImageDispose($hImg) _WinAPI_DeleteObject(_SendMessage(GUICtrlGetHandle($xButton), 0xF7, 0, $hHBitmap)) _GUICtrlTab_InsertItem($xTab, 0, "TabItem 1") _GUICtrlTab_InsertItem($xTab, 1, "TabItem 2") Global $hIL = _GUIImageList_Create(16, 15, 5) DllCall("comctl32.dll", "int", "ImageList_Add", "handle", $hIL, "handle", $hHBitmap1, "handle", 0) DllCall("comctl32.dll", "int", "ImageList_Add", "handle", $hIL, "handle", $hHBitmap2, "handle", 0) _GUICtrlTab_SetImageList($xTab, $hIL) _GUICtrlTab_SetItemImage($xTab, 0, 0) _GUICtrlTab_SetItemImage($xTab, 1, 1) GUISetState() GUISetOnEvent(-3, "_Exit") While 1 Sleep(25) WEnd Func _ico_Test01() Local $ico $ico &= "0000010001002040000001002000A810000016000000280000002000000040000000010020000000000080100000000000000000000000000000000000001168A0181687CFAF1689D2DE1689D2DF1689D2DF1689D2DF1689D2DF1689D2DF1689D2DF1689D2DF1689D2DF1689D2DF1689D2DF1689D2DF1688CFBC1478B5272DA4382736C43EBC36C63EDF36C73EDF36C73EDF36C73EDF36C73EDF36C73EDF36C73EDF36C73EDF36C73EDF36C73EDF36C73EDF36C63EDE36C43EAF2C9F32181689D3AF1590DFFF1591E0FF1591E0FF1591E0FF1591E0FF1591E0FF1591E0FF1591E0FF1591E0FF1591E0FF1591E0FF1591E0FF1591E0FF1590DFFF178DCFCF35C646CF37D340FF37D440FF37D440FF37D440FF37D440FF37D440FF37D440FF37D440FF37D440FF37D440FF37D440FF37D440FF37D440FF37D340FF36C83FAF158FDDDE1591E0FF1591E0FF1591E0FF1591E0FF1591E0FF1591E0FF1591E0FF1591E0FF1591E0FF1591E0FF1591E0FF1591E0FF1591E0FF1591E0FF1590DEFE38D341FE38D541FF38D541FF38D541FF38D541FF38D541FF38D541FF38D541FF38D541FF38D541FF38D541FF38D541FF38D541FF38D541FF38D541FF38D241E11692E1DF1692E1FF1692E1FF1692E1FF1692E1FF1692E1FF1692E1FF1692E1FF1692E1FF1692E1FF1692E1FF1692E1FF1692E1FF1692E1FF1692E1FF1692E1FF3AD5" $ico &= "43FF3AD543FF3AD543FF3AD543FF3AD543FF3AD543FF3AD543FF3AD543FF3AD543FF3AD543FF3AD543FF3AD543FF3AD543FF3AD543FF3AD543FF3AD543E31793E2DF1793E2FF1793E2FF1793E2FF1793E2FF1793E2FF1793E2FF1793E2FF1793E2FF1793E2FF1793E2FF1793E2FF1793E2FF1793E2FF1793E2FF1793E2FF3BD644FF3BD644FF3BD644FF3BD644FF3BD644FF3BD644FF3BD644FF3BD644FF3BD644FF3BD644FF3BD644FF3BD644FF3BD644FF3BD644FF3BD644FF3BD544E31895E4DF1995E4FF1995E4FF1995E4FF1995E4FF1995E4FF1995E4FF1995E4FF1995E4FF1995E4FF1995E4FF1995E4FF1995E4FF1995E4FF1995E4FF1995E4FF3CD645FF3CD645FF3CD645FF3CD645FF3CD645FF3CD645FF3CD645FF3CD645FF3CD645FF3CD645FF3CD645FF3CD645FF3CD645FF3CD645FF3CD645FF3CD645E31A96E5DF1A96E5FF1A96E5FF1A96E5FF1A96E5FF1A96E5FF1A96E5FF1A96E5FF1A96E5FF1A96E5FF1A96E5FF1A96E5FF1A96E5FF1A96E5FF1A96E5FF1A96E5FF3DD747FF3DD747FF3DD747FF3DD747FF3DD747FF3DD747FF3DD747FF3DD747FF3DD747FF3DD747FF3DD747FF3DD747FF3DD747FF3DD747FF3DD747FF3DD747E31B98E7DF1B98E7FF1B98E7FF1B98E7FF1B98E7FF1B98E7FF1B98E7FF1B98E7FF1B98E7FF1B98E7FF1B98E7FF1B98E7FF1B98E7FF1B98E7FF1B98E7FF1B98E7FF3FD8" $ico &= "48FF3FD848FF3FD848FF3FD848FF3FD848FF3FD848FF3FD848FF3FD848FF3FD848FF3FD848FF3FD848FF3FD848FF3FD848FF3FD848FF3FD848FF3ED748E31D99E8DF1D99E8FF1D99E8FF1D99E8FF1D99E8FF1D99E8FF1D99E8FF1D99E8FF1D99E8FF1D99E8FF1D99E8FF1D99E8FF1D99E8FF1D99E8FF1D99E8FF1D99E8FF40D849FF40D849FF40D849FF40D849FF40D849FF40D849FF40D849FF40D849FF40D849FF40D849FF40D849FF40D849FF40D849FF40D849FF40D849FF40D849E31E9BEADF1E9BEAFF1E9BEAFF1E9BEAFF1E9BEAFF1E9BEAFF1E9BEAFF1E9BEAFF1E9BEAFF1E9BEAFF1E9BEAFF1E9BEAFF1E9BEAFF1E9BEAFF1E9BEAFF1E9BEAFF41D94AFF41D94AFF41D94AFF41D94AFF41D94AFF41D94AFF41D94AFF41D94AFF41D94AFF41D94AFF41D94AFF41D94AFF41D94AFF41D94AFF41D94AFF41D84AE3209CEBDF209CEBFF209CEBFF209CEBFF209CEBFF209CEBFF209CEBFF209CEBFF209CEBFF209CEBFF209CEBFF209CEBFF209CEBFF209CEBFF209CEBFF209CEBFF42D94CFF42D94CFF42D94CFF42D94CFF42D94CFF42D94CFF42D94CFF42D94CFF42D94CFF42D94CFF42D94CFF42D94CFF42D94CFF42D94CFF42D94CFF42D94CE3219DECDF219EEDFF219EEDFF219EEDFF219EEDFF219EEDFF219EEDFF219EEDFF219EEDFF219EEDFF219EEDFF219EEDFF219EEDFF219EEDFF219EEDFF219EEDFF43DA" $ico &= "4DFF43DA4DFF43DA4DFF43DA4DFF43DA4DFF43DA4DFF43DA4DFF43DA4DFF43DA4DFF43DA4DFF43DA4DFF43DA4DFF43DA4DFF43DA4DFF43DA4DFF43DA4DE3229FEEDF229FEEFF229FEEFF229FEEFF229FEEFF229FEEFF229FEEFF229FEEFF229FEEFF229FEEFF229FEEFF229FEEFF229FEEFF229FEEFF229FEEFF229FEEFF45DB4EFF45DB4EFF45DB4EFF45DB4EFF45DB4EFF45DB4EFF45DB4EFF45DB4EFF45DB4EFF45DB4EFF45DB4EFF45DB4EFF45DB4EFF45DB4EFF45DB4EFF45DA4EE324A0EFDF24A0EFFF24A0EFFF24A0EFFF24A0EFFF24A0EFFF24A0EFFF24A0EFFF24A0EFFF24A0EFFF24A0EFFF24A0EFFF24A0EFFF24A0EFFF24A0EFFF24A0EFFF46DB50FF46DB50FF46DB50FF46DB50FF46DB50FF46DB50FF46DB50FF46DB50FF46DB50FF46DB50FF46DB50FF46DB50FF46DB50FF46DB50FF46DB50FF46DB50E225A2F1BC25A2F1FF25A2F1FF25A2F1FF25A2F1FF25A2F1FF25A2F1FF25A2F1FF25A2F1FF25A2F1FF25A2F1FF25A2F1FF25A2F1FF25A2F1FF25A2F1FF26A4ECDC46D958DC47DC51FF47DC51FF47DC51FF47DC51FF47DC51FF47DC51FF47DC51FF47DC51FF47DC51FF47DC51FF47DC51FF47DC51FF47DC51FF47DC51FF47DB51BC2290D62727A3F2CF27A3F2FE27A3F2FF27A3F2FF27A3F2FF27A3F2FF27A3F2FF27A3F2FF27A3F2FF27A3F2FF27A3F2FF27A3F2FF27A3F2FF34A2E3DF5BA1B33E72C3" $ico &= "4F3E53D750DF48DC52FF48DC52FF48DC52FF48DC52FF48DC52FF48DC52FF48DC52FF48DC52FF48DC52FF48DC52FF48DC52FF48DC52FE48DC52CF42CA4B2700000000000000000000000000000000000000000000000000000000000000008D9E7F30C09D48D5CF9F3BFED09F3BFFD09F3BFFD09F3BFFD09F3BFFD09F3BFFD09F3BFFD09F3BFFD09F3BFFD09F3BFFD09F3BFFCF9F3BFEC3A13CD59BB2433000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000D2A13CCCDCA83EFFDCA83EFFDCA83EFFDCA83EFFDCA83EFFDCA83EFFDCA83EFFDCA83EFFDCA83EFFDCA83EFFDCA83EFFDCA83EFFDCA83EFFDCA83EFFD2A13DCB00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000DCA83FF2DEAA3FFFDEAA3FFFDEAA3FFFDEAA3FFFDEAA3FFFDEAA3FFFDEAA3FFFDEAA3FFFDEAA3FFFDEAA3FFFDEAA3FFFDEAA3FFFDEAA3FFFDEAA3FFFDDA93FEF00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000DFAB41F3DFAB41FFDFAB41FFDFAB41FFDFAB41FFDFAB41FFDFAB41FFDFAB41FFDFAB" $ico &= "41FFDFAB41FFDFAB41FFDFAB41FFDFAB41FFDFAB41FFDFAB41FFDFAB41EF00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000E1AD42F3E1AD42FFE1AD42FFE1AD42FFE1AD42FFE1AD42FFE1AD42FFE1AD42FFE1AD42FFE1AD42FFE1AD42FFE1AD42FFE1AD42FFE1AD42FFE1AD42FFE0AC42EF00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000E2AE44F3E2AE44FFE2AE44FFE2AE44FFE2AE44FFE2AE44FFE2AE44FFE2AE44FFE2AE44FFE2AE44FFE2AE44FFE2AE44FFE2AE44FFE2AE44FFE2AE44FFE2AE44EF00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000E3AF45F3E3AF45FFE3AF45FFE3AF45FFE3AF45FFE3AF45FFE3AF45FFE3AF45FFE3AF45FFE3AF45FFE3AF45FFE3AF45FFE3AF45FFE3AF45FFE3AF45FFE3AF45EF00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000E5B147F3E5B147FFE5B147FFE5B147FFE5B147FFE5B147FFE5B147FFE5B147FFE5B1" $ico &= "47FFE5B147FFE5B147FFE5B147FFE5B147FFE5B147FFE5B147FFE5B147EF00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000E6B248F3E6B248FFE6B248FFE6B248FFE6B248FFE6B248FFE6B248FFE6B248FFE6B248FFE6B248FFE6B248FFE6B248FFE6B248FFE6B248FFE6B248FFE6B248EF00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000E7B34AF3E7B34AFFE7B34AFFE7B34AFFE7B34AFFE7B34AFFE7B34AFFE7B34AFFE7B34AFFE7B34AFFE7B34AFFE7B34AFFE7B34AFFE7B34AFFE7B34AFFE7B34AEF00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000E9B54BF3E9B54BFFE9B54BFFE9B54BFFE9B54BFFE9B54BFFE9B54BFFE9B54BFFE9B54BFFE9B54BFFE9B54BFFE9B54BFFE9B54BFFE9B54BFFE9B54BFFE9B54BEF00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000EAB64DF3EAB64DFFEAB64DFFEAB64DFFEAB64DFFEAB64DFFEAB64DFFEAB64DFFEAB6" $ico &= "4DFFEAB64DFFEAB64DFFEAB64DFFEAB64DFFEAB64DFFEAB64DFFEAB64DEF00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ECB84EF3ECB84EFFECB84EFFECB84EFFECB84EFFECB84EFFECB84EFFECB84EFFECB84EFFECB84EFFECB84EFFECB84EFFECB84EFFECB84EFFECB84EFFEBB74EEF00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000EDB950F1EDB950FFEDB950FFEDB950FFEDB950FFEDB950FFEDB950FFEDB950FFEDB950FFEDB950FFEDB950FFEDB950FFEDB950FFEDB950FFEDB950FFEDB950EE00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000EEBA51BFEEBA51FFEEBA51FFEEBA51FFEEBA51FFEEBA51FFEEBA51FFEEBA51FFEEBA51FFEEBA51FFEEBA51FFEEBA51FFEEBA51FFEEBA51FFEEBA51FFEEBA51BF00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000CDA1461FEFBB52B5F0BC52DFF0BC52DFF0BC52DFF0BC52DFF0BC52DFF0BC52DFF0BC" $ico &= "52DFF0BC52DFF0BC52DFF0BC52DFF0BC52DFF0BC52DFEFBB52B5D5A6491F000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000FF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FF" Return Binary("0x" & $ico) EndFunc ;==>_ico_Test01 Func _ico_Test02() Local $ico $ico &= "0000010001002040000001002000A8100000160000002800000020000000400000000100200000000000801000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003F95B71640AEDA4736B1E3722FB0E4972CB0E4B422B8EDC02ABBEDAD48BFE627000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003988A70940ADD64035B0" $ico &= "E0782EAFE3AF28AEE4E222ACE5FE22ACE5FF21AEE6FF1CB7ECFF10C1F6FF0AC8FCFF0AC8FCFF51D2F2350000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003987A50544B1DB4033AFE1842BAEE3C724ADE4FA22ACE4FF22ADE5FF22ADE5FF23AFE6FF26BDEEFF21B9ECFF1ACAF9FF16C4F4FF06CAFEFF0CC7FAFF06CAFEFF79D8EC1500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000057A2BE0A40B4E1552CAFE3A825ADE4EF22ACE5FF21ADE4FF22ADE4FF22ACE5FF22ACE4FF22B2E8FF29BCECFF3BD1F7FF1FC2F0FF28CEF9FF20CCF9FF17C5F5FF09CBFEFF0CC7FAFF0BCBFDF2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000058B5D92A59BCE2BA28AEE4F122ADE4FF22ADE5FF22ADE5FF24AFE6FF26B0E6FF1FB4E9FF2FC2EEFF45CBF0FF1BBFEEFF31CBF3FF43D7F7FF1CC0EFFF2CD0F9FF24CDF8FF19C6F6FF0DCBFEFF0DC7FAFF0CCAFCE10000000000000000000000000000000000000000000000000000000000000000000000004593AF033CB5E58D24ADE5FC22ACE5FF22AEE6FF24B7EBFF29BCEDFF1FBCECFF2BC8F2FF54DBF7FF29C6F0FF1FC1EFFF67E1F6FF35CB" $ico &= "F1FF2AC8F1FF4CDBF9FF26C6F1FF2DCFF8FF28D0FAFF1AC7F6FF10CCFDFF0DC7FAFF11CAFCDB00000000000000000000000000000000000000000000000000000000000000000000000038B6E67C18B8EEFF12C0F5FF17C3F6FF1CC5F4FF20C5F3FF35D3F9FF3CD4F8FF22C4F0FF3CCFF4FF65E0F6FF2AC6EFFF4FD6F3FF62DFF6FF21C2EFFF4DDBF8FF35CFF5FF2BCCF7FF2AD2FCFF1BC7F6FF12CCFDFF0CC7FAFF0FCAFCDF00000000000000000000000000000000000000000000000000000000000000000000000032C9F45213C8F9F00FC7F9FF15CAFBFF1ECFFBFF28CEF9FF22C5F1FF3FD5F8FF4BDAF8FF27C5F1FF5CDCF5FF63DEF5FF2EC7F0FF68E2F7FF3BCFF3FF40D4F6FF40D7F9FF27C9F5FF2AD2FBFF1CC8F7FF11CDFDFF0DC7FAFF0FCAFCF63BA2BC0100000000000000000000000000000000000000000000000000000000000000000000000042CBF01A1DCDFCB512CAFBFF1CCAF8FF29D1FBFF32D3FBFF29C9F3FF48D9F8FF51DBF7FF33CAF1FF67E1F8FF45D2F4FF4ED7F5FF52DBF8FF33CDF4FF3FD7FAFF29CCF6FF27D1FBFF1BCAF8FF0ECCFDFF0CC7FAFF06CAFEFF53A9BD3200000000000000000000000000000000000000000000000000000000000000000000000000000000000000002FD0FA671DCEFCF422CAF7FF30D2FBFF3AD5FBFF2FCBF4FF4DDBF8FF49D7F6FF46D4F4FF59DEF8FF3CD0" $ico &= "F4FF4EDBF9FF36D1F6FF39D6FBFF2BCEF8FF23D0FBFF19CAFAFF0CCBFEFF0CC7FAFF0BC4F5FF3D676EF63735332900000000000000000000000000000000000000000000000000000000000000000000000000000000000000003FD2F72A28D0FBD824CCF7FF32D2FAFF3CD5FAFF36D0F5FF4BDBF9FF3FD3F6FF4BDAF8FF43D6F8FF40D6F9FF39D5FAFF2FD1FAFF28D1FBFF1ECAF6FF26AFD2FF3290A5FF477075FF59544CFF27231FFF1312129A00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044C5E41033D3FABA26CDF7FF32D2FAFF37D4F9FF36D2F7FF42D8FAFF3AD3F8FF3ED7FAFF38CEF2FF3EB2CDFF4393A3FF4D7479FF5D5B53FF675C52FF706559FF827467FF988878FF3C362FFF0D0D0DC40000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000051B0C6063ABAD8D324CCF7FF30D2F8FF39BDDDFF45A4B8FF4D8992FF566D6CFF655C54FF695F54FF706559FF786D60FF7F7164FF827265FF827466FF8D7E6EFF9B8B7AFF8C7D6FFF1414138D00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005F5C55CB4E6F72FF615F58FF7D7063FF958677FFA08F7EFF9F8F" $ico &= "7EFF908171FF7D7164FF7B7062FF7D7062FF7F7164FF827265FF827466FE908173DF9D8E7FA3A2938468534F4B0A000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000093867988B19E8CFFC7B19EFFCDB6A2FFCBB5A0FFB7A391FFA39281FF908171FF7D7164FF7B7062FF7F7265E784776B8E897D73548A80761A000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000B7A89922C0AB99F9C7B29DFFCDB6A2FFCBB4A0FFB7A491FBA59685D9938677AC807568D97B7062FF807568A600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000C3B09F6AC8B4A08FCDB9A55FCBB8A731A29487090000000000000000887E734B7B7062FF817568D50000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" $ico &= "0000000000006B645D01807568D17D7163FD867D73210000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000877C71637D7062FF85796D7600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007971690B7F7365F1827568D300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000082786B9B7E7163FF8C817538000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" $ico &= "0000000000000000000000000000887F73447F7164FF86786CA2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000071696106817366F1827266F98C807624000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000084776ABC827265FF887A6EAF000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000085776B9D827265FF827466FE94887C3D00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" $ico &= "00000000000000000000000000000000000086786D8B827265FF827466FF8F8273B3000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008B7F7364817265FFB5ADA5FF8E7F70F7776E640800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000081776E12837568EBD9D6D2FF96887AFF746A6017000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008B7F7537897C70D7908274C9766D6402000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" $ico &= "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000FFFFFFFFFFFFFFFFFFFFE01FFFFC001FFFC0001FFE00003FF800003FE000003FE000003FE000001FF000001FFC00000FFE00000FFF00000FFF80000FFFC0000FFFC000FFFFC007FFFFE0C7FFFFFFC3FFFFFFE3FFFFFFE3FFFFFFF1FFFFFFF1FFFFFFF0FFFFFFF8FFFFFFF87FFFFFF87FFFFFF83FFFFFF83FFFFFFC3FFFFFFFFF" Return Binary("0x" & $ico) EndFunc ;==>_ico_Test02 Func _Exit() _WinAPI_DeleteObject($hHBitmap) _WinAPI_DeleteObject($hHBitmap1) _WinAPI_DeleteObject($hHBitmap2) _GDIPlus_Shutdown() Exit EndFunc ;==>_Exit mixim 1 Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ Link to comment Share on other sites More sharing options...
mixim Posted August 26, 2020 Share Posted August 26, 2020 6 hours ago, UEZ said: You can do something like this here: You are awesome. You did exactly what I wanted. Thank you very very very much for help ❤️ Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now