Sign in to follow this  
Followers 0
eddo9696

Execute script while workstation logged off

2 posts in this topic

Hello,

I made a script which works perfectly with a pc that is logged in. When logged off the script does not execute. I read in the faq that I should use ControlClick rather than WinWaitActive & WinActivate. However this does not work even if logged in. Any suggestions? I want to deploy a package through a domain using group policy. Thanks.

http://www.autoitscript.com/forum/index.php?showtopic=37289&st=0&p=571221&#entry571221

Original Script

Run("gemsignplus9.exe")

WinWaitActive ("Topaz GemSignPlus Installation for Acrobat 9")

WinActivate("Topaz GemSignPlus Installation for Acrobat 9")

Send("{ENTER}")

WinWaitActive ("Select Destination Directory")

WinActivate("Select Destination Directory")

Send("{ENTER}")

WinWaitActive ("Install")

WinActivate("Install")

Send("{ENTER}")

WinWaitActive ("License Agreement")

WinActivate("License Agreement")

Send("{ENTER}")

WinWaitActive ("PLEASE NOTE:")

WinActivate("PLEASE NOTE:")

Send("{ENTER}")

New Script

Run("gemsignplus9.exe")

ControlClick ("Topaz GemSignPlus Installation for Acrobat 9", "Welcome to the GemSignPlus 9", "[CLASS:Button; INSTANCE:1]")

ControlClick ("Select Destination Directory", "support files will be", "[CLASS:Button; INSTANCE:2]")

ControlClick ("Install", "would you like to", "[CLASS:Button; INSTANCE:1]")

ControlClick ("License Agreement", "Click OK To", "[CLASS:Button; INSTANCE:1]")

ControlClick ("PLEASE NOTE:", "After installation", "[CLASS:Button; INSTANCE:1]")

Share this post


Link to post
Share on other sites



I made a script which works perfectly with a pc that is logged in. When logged off the script does not execute. I read in the faq that I should use ControlClick rather than WinWaitActive & WinActivate. However this does not work even if logged in. Any suggestions? I want to deploy a package through a domain using group policy. Thanks.Run("gemsignplus9.exe")

Actually, you would use WinWait instead of WinWaitActive, and ControlClick/ControlSend instead of WinActivate+Send.

In your example, you're not waiting for the appropriate windows to appear.

Try this:

WinWait("Topaz GemSignPlus Installation for Acrobat 9", "Welcome to the GemSignPlus 9")
ControlClick("Topaz GemSignPlus Installation for Acrobat 9", "Welcome to the GemSignPlus 9", "[CLASS:Button; INSTANCE:1]")
WinWait("Select Destination Directory", "support files will be")
ControlClick("Select Destination Directory", "support files will be", "[CLASS:Button; INSTANCE:2]")
WinWait("Install", "would you like to")
ControlClick("Install", "would you like to", "[CLASS:Button; INSTANCE:1]")
WinWait("License Agreement", "Click OK To")
ControlClick("License Agreement", "Click OK To", "[CLASS:Button; INSTANCE:1]")
WinWait("PLEASE NOTE:", "After installation")
ControlClick("PLEASE NOTE:", "After installation", "[CLASS:Button; INSTANCE:1]")

[font="Tahoma"]"Tougher than the toughies and smarter than the smarties"[/font]

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
Sign in to follow this  
Followers 0