Leaderboard
Popular Content
Showing content with the highest reputation on 05/03/2021 in all areas
-
Does a registered WM_GETMINMAXINFO function need a "Return"?
Professor_Bernd and one other reacted to Nine for a topic
Here a discussion that may interested you : https://www.autoitscript.com/forum/topic/197004-listview-right-click-on-column-header/?tab=comments#comment-14130222 points -
You need to update both WebDriver AND WinHTTP. See Danp2 signature to find latest versions.2 points
-
Referencing #AutoIt3Wrapper_Res_Fileversion within the script
argumentum reacted to Nine for a topic
Perfecterer #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Res_FileVersion=2.3.4.5 ; test #AutoIt3Wrapper_Outfile_type=a3x #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** #pragma compile(Out, Temp1.a3x) #pragma compile(Fileversion, 2.3.4.5) #include <Constants.au3> Const $VERSION = @Compiled ? FileGetVersion(@ScriptName) : StringRegExp(FileRead(@ScriptName),"(?i)#AutoIt3Wrapper_Res_Fileversion=(.*?)\h*[;|\v]", 1)[0] MsgBox ($MB_SYSTEMMODAL, "", $VERSION)1 point -
Does a registered WM_GETMINMAXINFO function need a "Return"?
Professor_Bernd reacted to argumentum for a topic
my way ... Global $__g_aGETMINMAXINFO[4] = [0, 0, 0, 0] ; for WM_GETMINMAXINFO() to limit GUI minimum and/or maximum size. Default of zero means disable. Func WM_GETMINMAXINFO($hWnd, $msg, $wParam, $lParam) Local $tagMINMAXINFO = DllStructCreate("struct;long;long;long;long;long;long;long MinTrackSizeX;long MinTrackSizeY;long MaxTrackSizeX;long MaxTrackSizeY;endstruct", $lParam) If $__g_aGETMINMAXINFO[0] Then $tagMINMAXINFO.MinTrackSizeX = $__g_aGETMINMAXINFO[0] ; DllStructSetData($tagMINMAXINFO, 7, $__g_aGETMINMAXINFO[0]) ; min X If $__g_aGETMINMAXINFO[1] Then $tagMINMAXINFO.MinTrackSizeY = $__g_aGETMINMAXINFO[1] If $__g_aGETMINMAXINFO[2] Then $tagMINMAXINFO.MaxTrackSizeX = $__g_aGETMINMAXINFO[2] If $__g_aGETMINMAXINFO[3] Then $tagMINMAXINFO.MaxTrackSizeY = $__g_aGETMINMAXINFO[3] Return $GUI_RUNDEFMSG EndFunc ;==>WM_GETMINMAXINFO ... is not about the return but ... my usage. It may give you ideas.1 point -
Does a registered WM_GETMINMAXINFO function need a "Return"?
argumentum reacted to Professor_Bernd for a topic
And I was beginning to think it was a simple question. Thanks to your info, it's starting to make sense. Here's how I understood it: ; Set minimum and maximum for height and width of GUI. Func MY_WM_GETMINMAXINFO($hWnd, $iMsg, $wParam, $lParam) #forceref $iMsg, $wParam, $lParam ; Gui-1 If $hWnd = $hGui_1 Then $minmaxinfo = DllStructCreate("int;int;int;int;int;int;int;int;int;int", $lParam) DllStructSetData($minmaxinfo, 7, 400) ; min width DllStructSetData($minmaxinfo, 8, $iGUI_1_Height) ; min height ; DllStructSetData($minmaxinfo, 9, 2000) ; max width ; <== If a value is NOT specified, it is NOT restricted. DllStructSetData($minmaxinfo, 10, $iGUI_1_Height) ; max height Return 0 ; <== EndIf ; Gui-2 If $hWnd = $hGui_2 Then $minmaxinfo = DllStructCreate("int;int;int;int;int;int;int;int;int;int", $lParam) DllStructSetData($minmaxinfo, 3, 1200) ; width of the maximized window DllStructSetData($minmaxinfo, 4, 800) ; height of the maximized window DllStructSetData($minmaxinfo, 5, 20) ; left of the maximized window DllStructSetData($minmaxinfo, 6, 40) ; top of the maximized window DllStructSetData($minmaxinfo, 7, 400) ; min width DllStructSetData($minmaxinfo, 8, 200) ; min height Return 0 ; <== EndIf Return $GUI_RUNDEFMSG ; or nothing <== EndFunc ;==>MY_WM_GETMINMAXINFO Thank you all for your quick reply and competent opinion/info! 👍1 point -
Does a registered WM_GETMINMAXINFO function need a "Return"?
Professor_Bernd reacted to Zedna for a topic
According to official MSDN description https://docs.microsoft.com/cs-cz/windows/win32/winmsg/wm-getminmaxinfo1 point -
@Schmand That's a link element, not a button. Suggest that you try _WD_LinkClickByText.1 point
-
That class belongs to the button, not the paragraph element. What you want would be something like one of these -- "//p/button[@class='buttonbar Anmeldung']" "//button[@class='buttonbar Anmeldung']" "//button[@type='submit']" Another option would be to use the button's text as a selector. Lots of ways to skin a cat. 😅1 point
-
WebDriver UDF - Help & Support (III)
Schmand reacted to seadoggie01 for a topic
@Schmand That's not how to make an XPath If you want to easily get an XPath, you can right click in the developer window on the element and select Copy -> Copy XPath / Copy Full XPath or you can install ChroPath that will help you build an XPath.1 point -
@Schmand You save the result of that command to a variable. Then you can use it in commands like _WD_ElementAction or _WD_SetElementValue. Here's a short example -- Local $sPassElement = _WD_GetElementByName($sSession,"password") _WD_SetElementValue($sSession, $sPassElement, 'mypassword') You would obviously need to add error checking. 😉1 point
-
As @Nine pointed out, a fix in the latest UDF version should resolve the issue with _WD_ElementActionEx. It's important that you update WinHTTP source as well.1 point
-
extract a sentence containing word in text file
Deye reacted to JockoDundee for a topic
Oh no, @Deye, now he can cross-check1 point -
Get the first explicit row with numbers, don't have to mention any respective previous row. $ION = StringRegExpReplace($s, "[^\w\d].*|\D{0,}", "")1 point
-
rumwait syntax
JockoDundee reacted to Jos for a topic
As that simulates running the command from the cmd prompt, which often works better with commandline utilities. For it makes life simpler as I asked what works from the commandline and then you simply "should be able to " run it this way. Jos1 point -
extract a sentence containing word in text file
JockoDundee reacted to mikell for a topic
Got one ! thanks for this unexpected proxy upvote1 point -
Hi everyone, Some good news for you among all the gloom of these virus-ridden times: Nine, Subz and Danyfirex have accepted the invitation to become MVPs. Please join me in congratulating them on their new status in our community. Keep safe out there, M231 point
-
1 point
-
Try to specify the full path of the ini file : IniWrite(@ScriptDir & "\settings.ini", "General", "PathToConfig", $newPath)1 point