Hotkeys for stop and pause?

Ask general questions here.
User avatar
Ciege
Posts: 1336
Joined: Thu Oct 16, 2008 6:46 pm
Location: Arizona, USA

Hotkeys for stop and pause?

Post by Ciege » Mon Jul 13, 2009 11:53 pm

Are there hotkeys or key combinations that Ranorex listens for to stop or pause playback?

If yes, can the stop be tied into a cleanup function that will successfully close the log so it is viewable?

Thanks...
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!

Ciege...

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Hotkeys for stop and pause?

Post by Support Team » Thu Jul 16, 2009 10:16 am

Hello ciege,
you can use "Keyboard.AbortKey" to stop a Ranorex Recording(only in code). After pressing the abort key a "ThreadAbortException" will be thrown (e.g. Web Test Sample). So you can do your cleanup there.

Regards,
Christian
Ranorex Support Team

User avatar
Ciege
Posts: 1336
Joined: Thu Oct 16, 2008 6:46 pm
Location: Arizona, USA

Re: Hotkeys for stop and pause?

Post by Ciege » Thu Jul 16, 2009 4:59 pm

Thanks for that. I actually saw the Keyboard.AbortKey in the thread you guys helped me out with the second Ranorex thread checking for AUT exceptions.

Thanks again!
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!

Ciege...