Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Reactivating window and text cursor location
#1
I have created an executable of the following script:
Code:
Copy      Help
str s.getclip
Speak s 1


I select text from a target application and then run the executable. It reads out the text correctly. But when it's done reading the target application does not regain focus.

How do I regain focus of that application? A Windows activation command for a specific application is not going to work because my utility needs to work in any application (browser, text editor etc.).

I tried a mouse center command. 
It works to reactivate the application, however it changes (doesn't restore) the text cursor location.

Any ideas would be welcome.



Nevermind, already figured it out Wink . A simple:
Code:
Copy      Help
act

was enough to activate the target window again.


Forum Jump:


Users browsing this thread: 1 Guest(s)