lefv2ma Posted June 29, 2021 Share Posted June 29, 2021 I have a batch script that is 99% automated but at the end requires you to click finish. I am trying to use AutoIT to click finish or send 3 tab presses and enter but it isn't working. This is what I have. I have the mouse click commented out because I was testing to see which would work but neither do. I did also have the send command as all one string but I think it was pressing all of those keys at the same time. #RequireAdmin Run('\\vhalowebapp\d$\HAInstalls\_InstallBatches\xSideCar SECR Install.bat') ;AutoItSetOption('MouseCoordMode' ,0) WinWait ( 'HA.HALo.SideCar.Client') WinActivate ('HA.HALo.SideCar.Client') ;Sleep(15000) ;MouseClick ('primary', 1155,704, 1, 1) Send ("{TAB}") Sleep (300) Send ("{TAB}") Sleep (300) Send ("{TAB}") Sleep (300) Send ("{ENTER}") Exit Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted June 29, 2021 Moderators Share Posted June 29, 2021 @lefv2ma What application are you trying to automate? Is there not a silent install? "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 More sharing options...
lefv2ma Posted June 29, 2021 Author Share Posted June 29, 2021 It is a casino based application called sidecar. There is no silent install option it always pops up with the window at the end. Link to comment Share on other sites More sharing options...
Nine Posted June 29, 2021 Share Posted June 29, 2021 If Send and MouseClick do not work, it probably means that there is a discrepancy in the elevation level between the script and the actual exe contained in the batch file. You may want to run a shell instead of running the batch file directly : Run(@ComSpec & " /c \\vhalowebapp\d$\HAInstalls\_InstallBatches\xSideCar SECR Install.bat") “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...
Moderators JLogan3o13 Posted June 30, 2021 Moderators Share Posted June 30, 2021 @lefv2ma please provide a link to the app (via PM if you need to). The only casino based sidecar app I find in a search states it is a "crack app". Please see, too, our forum rules to ensure you are adhering to them. ======In case you missed it, this is a Mod stepping into a thread. Please stay out until told otherwise.====== "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 More sharing options...
lefv2ma Posted June 30, 2021 Author Share Posted June 30, 2021 I don't have a link for it because it is something developed specifically for the company I work for. I did try the suggestion of running shell instead of the batch and it won't run at all that way. Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted June 30, 2021 Moderators Share Posted June 30, 2021 Well the only mention of sidecar for casino apps is not something we would support. If you're unable to provide any evidence that this is not that app, we are unfortunately unable to assist. "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 More sharing options...
Recommended Posts