RishabSaha Posted March 25, 2021 Share Posted March 25, 2021 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 More sharing options...
Nine Posted March 25, 2021 Share Posted March 25, 2021 You cannot Send keys to hidden or minimized window. Look at ControlSend instead. Please use this tool, when you post code. “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
RishabSaha Posted March 25, 2021 Author Share Posted March 25, 2021 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 More sharing options...
RishabSaha Posted March 25, 2021 Author Share Posted March 25, 2021 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 More sharing options...
Nine Posted March 25, 2021 Share Posted March 25, 2021 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. “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
RishabSaha Posted March 31, 2021 Author Share Posted March 31, 2021 thanks Nine, I got it worked out. using controlsend I was able to proceed with the next step and finally it's working Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now