Jump to content

How to proceed to next step after an exe is run and it's minimized


Recommended Posts

I have a clean wipe tool to remove an application. I need to run it in background or minimized state, but the problem is when it's minimized it's not going to the next step. I need help in there, anyone can let me know. Thanks in advanced.

 

Run(@ScriptDir & "\CleanWipe.exe", "", @SW_MINIMIZE)
WinGetState("CleanWipe")
WinWait("CleanWipe")
 WinActivate("NOTE: CleanWipe may remove data associated with products that you select to remove, including log files.Please do the following before you start:")
 Send ("{Enter}")

Link to comment
Share on other sites

Run(@ScriptDir & "\CleanWipe.exe", "", @SW_MINIMIZE)
WinGetState("CleanWipe")
WinWait("CleanWipe")
 WinActivate("NOTE: CleanWipe may remove data associated with products that you select to remove, including log files.Please do the following before you start:")
 Send ("{Enter}")

here, thanks for letting me know that, I am new to this forum. so in the code if I use control send even if the application is minimized it'll work. could you please give me an example on this. 

Link to comment
Share on other sites

Run(@ScriptDir & "\CleanWipe.exe", "", @SW_MINIMIZE)
WinGetState("CleanWipe")
WinWait("CleanWipe")
    WinActivate("NOTE: CleanWipe may remove data associated with products that you select to remove, including log files.Please do the following before you start:")
    ControlSend("CleanWipe","&Next >", 12324, "{ENTER}", 0)


    Sleep (10)

    ;Sending a click to check the SLA
    WinActivate("CleanWipe")
    ControlClick("CleanWipe", "I &accept the terms in the license agreement", "Button1")

I got it , how to use control send, but now I am wondering if we can use controlsend to check box the EULA . Can we do that as well ??

Link to comment
Share on other sites

I don't know, I do not have that application, you will need to play with it.  If Au3info tool tells you that you have access to the control, you should be able to click the check box.  Also take a look at ControlCommand.  Good luck.

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