Jump to content

AUTOIt script paused


shabana
 Share

Recommended Posts

Hi team ,

I recorded the exe (of GUI ) through au3 . BUt immediately it says scrpt paused in task mangaer . tried to uncheck it . but still goes as script paused . Below is the script  . Please help me

#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 ---


Run('C:VSM-healthcareReferenceDesignsADIVSMLibLabview applicationDevelopmentExecutablesv1_36ADPD1xx Eval Platform v1_36.exe')
_WinWaitActivate("LinkSelectionType.vi","")
MouseClick("left",114,131,1)
_WinWaitActivate("classname=LVDChild","")
MouseMove(240,149)
MouseDown("left")
MouseMove(236,150)
MouseUp("left")
MouseClick("left",194,185,1)
MouseClick("left",190,228,1)
_WinWaitActivate("DCFG Select","")
MouseClick("left",220,127,1)
MouseClick("left",174,155,1)
MouseMove(200,156)
MouseDown("left")
MouseMove(201,156)
MouseUp("left")
_WinWaitActivate("LCFG Select","")
MouseMove(241,137)
MouseDown("left")
MouseMove(242,137)
MouseUp("left")
MouseClick("left",186,177,1)
MouseClick("left",191,178,1)
_WinWaitActivate("ADPD1xx PPG Evaluation Platform V1.3","")
MouseMove(93,11)
MouseDown("left")
MouseMove(-1009,-252)
MouseUp("left")
MouseMove(30,291)
MouseDown("left")
MouseMove(30,292)
MouseUp("left")
MouseClick("left",72,173,1)
#endregion --- Au3Recorder generated code End ---
 

Link to comment
Share on other sites

  • Moderators

At the very top of your script, put the following line: Opt("TrayIconDebug", 1)

Then hover over the icon in the tray and see what line it is stuck at. I'm willing to bet it is stuck waiting for a window it doesn't see.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

At the very top of your script, put the following line: Opt("TrayIconDebug", 1)

Then hover over the icon in the tray and see what line it is stuck at. I'm willing to bet it is stuck waiting for a window it doesn't see.

Thanks very much . I have added the line and script is stopped at line 19

 WinWait($title,$text,$timeout)    it has strucked . how to solve this.

Link to comment
Share on other sites

  • Moderators

It means it is waiting for that Window to appear, and it doesn't see it. So make sure the window's title, and text match what the script is looking for.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...