Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 05/03/2021 in all areas

  1. Here a discussion that may interested you : https://www.autoitscript.com/forum/topic/197004-listview-right-click-on-column-header/?tab=comments#comment-1413022
    2 points
  2. Nine

    WebDriver problem

    You need to update both WebDriver AND WinHTTP. See Danp2 signature to find latest versions.
    2 points
  3. 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
  4. 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
  5. 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
  6. According to official MSDN description https://docs.microsoft.com/cs-cz/windows/win32/winmsg/wm-getminmaxinfo
    1 point
  7. @Schmand That's a link element, not a button. Suggest that you try _WD_LinkClickByText.
    1 point
  8. 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
  9. @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
  10. @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
  11. Danp2

    WebDriver problem

    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
  12. Oh no, @Deye, now he can cross-check
    1 point
  13. 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
  14. Jos

    rumwait syntax

    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. Jos
    1 point
  15. Got one ! thanks for this unexpected proxy upvote
    1 point
  16. 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, M23
    1 point
  17. Jos

    Congrats to the New MVPs

    Welcome to " the other side" Jos
    1 point
  18. jguinch

    IniWrite gets ignored

    Try to specify the full path of the ini file : IniWrite(@ScriptDir & "\settings.ini", "General", "PathToConfig", $newPath)
    1 point
×
×
  • Create New...