Good day all,
I have the following script that is working great when run locally, but when I execute it with PSEXC (After compiling the script to an executable) the Script never exit's which causes the PSEXC command window to never close
; Open the Brother Control Centre run("C:\Support\AutoScan\controlcentre.bat", "C:\Program Files\ControlCenter4") WinWait("ControlCenter4") ; Click the Scan Image button and wait for the Reading from Device Window sleep(300) ControlClick("ControlCenter4", "", "[CLASS:Button; INSTANCE:14]") WinWait("Image - ControlCenter4") Send("{Enter}") ; End Script Exit 0
Any help would be appreciated, thanks heaps!