Smuz

Loop recorded AU3 script

1 post in this topic

I have created this recorded script and I want to run it 10 times to get an idea of performance.

Can anyone help with making this loop. I am unsure where to put the commands or what I should use.

Any help would be appreciated.

ⓣ#region --- Au3Recorder generated code Start (v3.3.9.5 KeyboardLayout=00000409)  ---

#region --- Internal functions Au3Recorder Start ---
Func _Au3RecordSetup()
Opt('WinWaitDelay',100)
Opt('WinDetectHiddenText',1)
Opt('MouseCoordMode',0)
Local $aResult = DllCall('User32.dll', 'int', 'GetKeyboardLayoutNameW', 'wstr', '')
If $aResult[1] <> '00000409' Then
  MsgBox(64, 'Warning', 'Recording has been done under a different Keyboard layout' & @CRLF & '(00000409->' & $aResult[1] & ')')
EndIf

EndFunc

Func _WinWaitActivate($title,$text,$timeout=0)
 WinWait($title,$text,$timeout)
 If Not WinActive($title,$text) Then WinActivate($title,$text)
 WinWaitActive($title,$text,$timeout)
EndFunc

_AU3RecordSetup()
#endregion --- Internal functions Au3Recorder End ---

_WinWaitActivate("Program Manager","")
MouseClick("left",360,817,1)
_WinWaitActivate("User Logon","")
Send("admins{TAB}password{ENTER}")
_WinWaitActivate("Grange Client Application","")
MouseClick("left",443,235,1)
_WinWaitActivate("CUI Menu","")
Send("{SHIFTDOWN}{TAB}{SHIFTUP}{TAB}")
MouseClick("left",47,54,1)
_WinWaitActivate("CSIS Main Menu","")
Send("{SHIFTDOWN}{TAB}{SHIFTUP}{TAB}")
MouseClick("left",92,38,1)
MouseClick("left",143,138,1)
_WinWaitActivate("Call Centre Enquiry","")
Send("{SHIFTDOWN}{TAB}{SHIFTUP}{TAB}")
MouseClick("left",911,63,1)
_WinWaitActivate("Select Account","")
Send("{SHIFTDOWN}{TAB}{SHIFTUP}{TAB}33")
MouseMove(660,142)
MouseDown("left")
MouseMove(659,142)
MouseUp("left")
MouseClick("left",186,185,1)
MouseClick("left",555,374,1)
_WinWaitActivate("Call Centre Enquiry","")
MouseClick("left",780,578,1)
_WinWaitActivate("Property Meter History List ","")
Send("{SHIFTDOWN}{TAB}{SHIFTUP}{TAB}")
MouseClick("left",239,155,1)
MouseClick("left",466,352,1)
_WinWaitActivate("Service Point Details","")
Send("{SHIFTDOWN}{TAB}{SHIFTUP}{TAB}")
MouseClick("left",236,413,1)
_WinWaitActivate("Property Meter History List ","")
MouseClick("left",656,347,1)
_WinWaitActivate("Call Centre Enquiry","")
MouseClick("left",893,572,1)
_WinWaitActivate("CSIS Main Menu","")
MouseClick("left",378,350,1)
_WinWaitActivate("CUI Menu","")
MouseClick("left",185,116,1)
#endregion --- Au3Recorder generated code End ---

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now