Custom Query
Results (58 - 60 of 3870)
Ticket | Resolution | Summary | Owner | Reporter |
---|---|---|---|---|
#3907 | Fixed | #AutoIt3Wrapper_Res_File_Add not supporting UNC path for ICO file | Jos | mychaelsoft |
Description |
Thank you for this amazing community! I have been able to make #AutoIt3Wrapper_Res_File_Add work using a local path, but not a network path. By contrast, #AutoIt3Wrapper_Res_Icon_Add seems fine with UNC paths, though not shown in the sample below. #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_UseUpx=y #AutoIt3Wrapper_Res_Icon_Add=\\FILESERVER\Scripts\Resources\DCL_53x53_16.ico,8 ;works fine #AutoIt3Wrapper_Res_File_Add=\\FILESERVER\Scripts\Resources\DCL_53x53_16.ico, rt_rcdata, DCL_LOGO_ICON ; does not work ;#AutoIt3Wrapper_Res_File_Add=C:\Users\mike\OneDrive - Dav Ctl\Pictures\DCL_53x53_16.ico, rt_rcdata, DCL_LOGO_ICON ; works fine #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** #include-once #include "\\FILESERVER\Scripts\Include\ResourcesEx.au3" #include <GuiConstants.au3> #include <WinAPIConstants.au3> Global $hSplashlogoImage = 0 If @Compiled Then $hSplashlogoImage = _Resource_GetAsImage("DCL_LOGO_ICON") ; If exe, use Resource. Otherwise, refer to _GDIPlus_BitmapCreateFromFile _SplashGUILogoButton(100, 100) Sleep (3000) Func _SplashGUILogoButton($LogoHorizontalPos, $LogoVerticalPos) _GDIPlus_Startup() $hSplashGUILogo = GUICreate("SplashGUILogo", 16, 16, $LogoHorizontalPos, $LogoVerticalPos, $WS_POPUP, BitOR($WS_EX_LAYERED, $WS_EX_TOOLWINDOW, $WS_EX_TOPMOST)) If Not @Compiled Then Local $hImage = _GDIPlus_BitmapCreateFromFile("C:\Users\mike\OneDrive - Dav Ctl\Pictures\DCL_53x53_16.BMP") $hSplashlogoImage = _GDIPlus_BitmapCreateHBITMAPFromBitmap($hImage) EndIf _SetBitmap($hSplashGUILogo, $hSplashlogoImage, 255, 16, 16) ; DCL dog icon $hBack = GUICtrlCreateLabel("", 0, 0, 16, 16) ; empty label control GUICtrlSetState(-1, $gui_disable) GUISetState(@SW_SHOWNA, $hSplashGUILogo) _GDIPlus_Shutdown() Return ($hSplashGUILogo) EndFunc ;==>_SplashGUILogoButton Func _SetBitmap($hGUI, $hImage, $iOpacity, $n_width = 200, $n_height = 200) ; To support _$hSplashGUILogo Local $hScrDC, $hMemDC, $hBitmap, $hOld, $pSize, $tSize, $pSource, $tSource, $pBlend, $tBlend $hScrDC = _WinAPI_GetDC(0) $hMemDC = _WinAPI_CreateCompatibleDC($hScrDC) If Not @Compiled Then $hImage = _GDIPlus_BitmapCreateFromFile("C:\Users\mike\OneDrive - Dav Ctl\Pictures\DCL_53x53_16.BMP") $hBitmap = _GDIPlus_BitmapCreateHBITMAPFromBitmap($hImage) $hOld = _WinAPI_SelectObject($hMemDC, $hBitmap) $tSize = DllStructCreate($tagSIZE) $pSize = DllStructGetPtr($tSize) DllStructSetData($tSize, "X", $n_width) DllStructSetData($tSize, "Y", $n_height) $tSource = DllStructCreate($tagPOINT) $pSource = DllStructGetPtr($tSource) $tBlend = DllStructCreate($tagBLENDFUNCTION) $pBlend = DllStructGetPtr($tBlend) DllStructSetData($tBlend, "Alpha", $iOpacity) DllStructSetData($tBlend, "Format", 1) _WinAPI_UpdateLayeredWindow($hGUI, $hScrDC, 0, $pSize, $hMemDC, $pSource, 0, $pBlend, $ULW_ALPHA) _WinAPI_ReleaseDC(0, $hScrDC) _WinAPI_SelectObject($hMemDC, $hOld) _WinAPI_DeleteObject($hBitmap) _WinAPI_DeleteDC($hMemDC) EndFunc ;==>_SetBitmap |
|||
#3906 | Completed | GUICtrlCreateXXX creation in example assign to $idXXX to reflect Ctrl type | Jpm | KaFu |
Description |
Hiho, again and again I stumble over this variable :). I often use the example 1 as a simple copy&paste starting point for testing. Now the button control is labeled $idOK, which is also used in <MsgBoxConstants.au3> as a return value. It's not a problem in local scope, but I often remove the function definition and then $idOK is suddenly in Global scope and collides with the messagebox const. I would like to propose to rename the variable in the GUICreate() example into something like $c_Button_OK. Best Regards |
|||
#3903 | Fixed | _GuiCtrlTab_GetItem() fails to retrieve Tab text in AutoIt 3.3.16.0 | Jpm | pixelsearch |
Description |
Issue reported by user Nop72 in this Forum link : https://www.autoitscript.com/forum/topic/208604-_guictrltab_getitem-fails-to-retrieve-item-text-since-autoit-version-33160/ Basically, it seems that these 2 lines were working fine in AutoIt 3.3.14.5 : GuiTab.au3 (3.3.14.5) Func _GUICtrlTab_GetItem($hWnd, $iIndex) ... Local $tagTCITEMEx = $tagTCITEM & ";ptr Filler" ; strange the Filler is erased by TCM_GETITEM : MS Bug!!! Local $tItem = DllStructCreate($tagTCITEMEx) ... EndFunc Now the changes made in AutoIt 3.3.16.0 creates an issue (tab text isn't retrieved any more) : GuiTab.au3 (3.3.16.0 , 3.3.16.1-rc1 , 3.3.16.1-rc2) Func _GUICtrlTab_GetItem($hWnd, $iIndex) ... ;~ Local $tagTCITEMEx = $tagTCITEM & ";ptr Filler" ; strange the Filler is erased by TCM_GETITEM : MS Bug!!! Local $tItem = DllStructCreate($tagTCITEM) ... EndFunc More details with full example and resulting pics in the Forum link indicated above. |