Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 10/22/2024 in all areas

  1. That works for me : #include <Constants.au3> #include <InetConstants.au3> Local $sSite = BinaryToString(InetRead("https://www.aida64.com/downloads/latesta64ee", $INET_FORCERELOAD)) ConsoleWrite(StringRegExp($sSite, "Request Trial Download AIDA64 Engineer ([^ ]+)", 1)[0] & @CRLF) 7.40.7100
    2 points
  2. Some site have security against excessive access. Maybe you have tried too many time that site. Give it a 24h cooldown.
    1 point
  3. Melba23

    ComboBox Questions

    Split from a 2 year old topic in Examples. M23
    1 point
  4. @Danp2, @SOLVE-SMART and @gmmg Felt I needed to give everyone an update.... The problem I had, turned out to be timing related. Doing a _WD_LoadWait ($sSession,1000) after navigating to the website does not seems enough delay to always fully load the page. And thus not all elements are alway available on slower computers or if other processes are slowing the computer down. For future versions of my scripts, I am gonna research this _WD_LoadWait, to see how I can tweak it with the paramters, to just wait enough time to "fully" load the page. But timeout after say 5 seconds. My solution and how I fixed this for now was as following: 1. (re)check all elements I needed and note 100% the order they are appearing 2. determine which elements are required and which one are optional. (I categorized pop-ups as being optional). 3. Do a _WD_WaitElement for the elements I am waiting for. 4. If the element is required and not found exit/stop the script with a clear error message. When expected optional elements (pop-ups) are not found, then just continue the script. With the above I seem to have fixed the script and I am getting the same results 99% of the time. (I might have to experiment with the _WD_WaitElement timeouts more to go to 100% 🙂) Special thanks to @gmmg for the URL, to remind me to think out of the box and not just use my own url because it is! Also a special thanks to @SOLVE-SMART for your link to better use webdriver capabilities and showing me to use other selectors than just id and class.😉 And a very very special thanks to @Danp2 the webdriver wizard. for helping me, others and for creating and maintaining the webdriver UDF.🙂
    1 point
  5. Maybe something like this? $str = "This is my string, i love it so much" $out = "" For $i = 1 To 10 $str &= "!" $out &= $str & @CRLF Next ConsoleWrite($out & @CRLF) Br, UEZ
    1 point
  6. In case of using GUICtrlRegisterListViewSort() there is very simple way for "manual" sorting: Func DoSort() $struct_NMLISTVIEW = DllStructCreate("hwnd;uint;uint;int;int;uint;uint;uint;int;int;int") DllStructSetData($struct_NMLISTVIEW,1,GUICtrlGetHandle($ListView1)) DllStructSetData($struct_NMLISTVIEW,2,$ListView1) DllStructSetData($struct_NMLISTVIEW,3,$LVN_COLUMNCLICK) DllStructSetData($struct_NMLISTVIEW,4,-1) ; item = -1 DllStructSetData($struct_NMLISTVIEW,5,0) ; subitem=0 --> first column _SendMessage($Form1, $WM_NOTIFY, $ListView1, DllStructGetPtr($struct_NMLISTVIEW)) $struct_NMLISTVIEW = 0 EndFunc EDIT: As you can see this function simulates click on column of ListView This function can be parametrized to be more general, I used it this way in my script for sorting by first column only
    1 point
×
×
  • Create New...