Jump to content

Trying to automate the end of a batch script


Recommended Posts

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 post
Share on other sites

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")

 

Link to post
Share on other sites
  • Moderators

@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 post
Share on other sites

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 post
Share on other sites
  • Moderators

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 post
Share on other sites
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...