Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 09/20/2021 in all areas

  1. Nine

    Error in Wiki

    From evil
    2 points
  2. water

    Loop not exiting.

    Welcome to AutoIt and the forum! You have to reset $j when you start the inner loop again: WinActivate ("LMS — Mozilla Firefox") Global $j = 0, $k = 0 Do MouseClick("left", 415, 205, 1) Sleep(2000) $j = 0 Do MouseClick("left", 1271, 858, 1) Sleep(10000) $j = $j + 1 Until $j = 2 ; Increase the value of $j until it equals the value of 2. $k = $k + 1 Until $k = 2 ; Increase the value of $k until it equals the value of 2. Exit
    2 points
  3. water

    Loop not exiting.

    I would vote for multiple solutions. There is more than one way to skin a cat As a user I would like to select the most elegant/efficient code from a bunch of "solutions". Just my 2 cents worth
    1 point
  4. @wateris correct. Why not just: WinActivate ("LMS — Mozilla Firefox") For $k = 0 To 1 MouseClick("left", 415, 205, 1) Sleep(2000) For $j = 0 To 1 MouseClick("left", 1271, 858, 1) Sleep(10000) Next Next Exit
    1 point
  5. So finally I clean up it a little, changed function names, add function headers, and here they are: ;~ Core functions: _WD_CapabilitiesStartup() _WD_CapabilitiesAdd() _WD_CapabilitiesGet() ;~ Internal functions: __WD_CapabilitiesInitialize() __WD_CapabilitiesSwitch() __WD_CapabilitiesNotation() ;~ Helper functions: _WD_CapabilitiesDump() _WD_CapabilitiesDisplay() Check the attached version. Does it work for you? Do you have any questions at this stage? In your opinion, does this version deserve an official release? (of course, after separating the examples).
    1 point
  6. When using special characters in DOS console, you should embed it into double quotes : Notice that you should not use brackets {} for a simple o. See help file for proper use of the brackets...
    1 point
  7. As I promised, here it is: https://ulozto.net/file/f4RXDYHMtOcP/prospeed-zip https://ulozto.net/file/3UKjU2kfEQ66/prospeed-dll-zip https://ulozto.net/file/UKTdtv6AhY2G/demos-and-sourcecodes-autoit-zip
    1 point
  8. 10 years later and post is still helping people. Thanks!!!
    1 point
  9. Credits: Xenobiologist ( a little modified ) MsgBox(0,0, _getOSVersion()) Func _getOSVersion() Local $objWMIService = ObjGet("winmgmts:{impersonationLevel=impersonate}!\\.\root\cimv2") Local $colSettings = $objWMIService.ExecQuery("Select * from Win32_OperatingSystem") For $objOperatingSystem In $colSettings Return $objOperatingSystem.Caption Next EndFunc
    1 point
  10. With Switch you only have to define the expression once. With Select you have to do it every Case. And as far as I can see, only Switch can do $var TO $var2 But then again only Select, accouring to the help, seems the be the only one able to do: Edit: Darn, If I hadn't push 'back' by accident I had beaten PsaltyDS... ^^
    1 point
  11. Or we can go with the AutoIt solution... not really sure which would be faster in your case, but here we are. Dim $fileAll Dim $lastFile $lastFile = 10 ;This is the number that is on the last file. Ex. ;You have work1.txt thru work11.txt then $lastFile ;should be 11. $fileAll = FileOpen("all.txt", 1) ;Write mode = Append to end of file. For $i = 1 To $lastFile Step 1 FileWrite($fileAll, FileRead("work" & $i & ".txt")) Next FileClose($fileAll) I hope it helps, JS
    1 point
×
×
  • Create New...