Jump to content
Sign in to follow this  
misterdanzey

help with an active program

Recommended Posts

misterdanzey

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.

post-72984-0-65035500-1338329730_thumb.p

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×