misterdanzey Posted May 29, 2012 Share Posted May 29, 2012 I am a newbie and simply just not good with coding... That being said, I am trying to get an active program to follow some steps: Program startup Script 1: Run ("C:\CoRRedactionApp\CoRRedactionApp.exe") WinWaitActive("InputAccel Server Login", "OK") Send("{Enter}") WinWaitActive("CoRRedaction", "Start") Send("!S") This works like a charm. Program Shutdown Script 2: ;ControlSend("C:\CoRRedactionApp\CoRRedactionApp.exe") ControlClick( ”[CLASS:WindowsForms10.BUTTON.app.0.2004eee2]”, “”, 917724) WinWaitActive("CoRRedaction", "Stop") Send("!t") ;WinWaitActive("CoRRedaction", "Close") ;Send("!C") It seems that no matter what I have tried I have not been able to get a button click sequence to stop and then close the running app. Any suggestion would be welcomed, I have tried controlsend, mouseclicks and more but maybe I am missing something simple I always seem to get a syntax error of some sort. Link to comment Share on other sites More sharing options...
Zedna Posted May 29, 2012 Share Posted May 29, 2012 ControlClick("CoRRedaction", "", "[TEXT:S&top]") Resources UDF ResourcesEx UDF AutoIt Forum Search 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