Link to home
Start Free TrialLog in
Avatar of Mark_FreeSoftware
Mark_FreeSoftwareFlag for Netherlands

asked on

Return focus to prev app


the app i'm developing runs as an overlay (prints some text on the screen)

now when the user presses ctrl + alt + o they can edit the options.
whenever this options screen closes, focus should not be set to the text displayed on screen, but to the app that had focus before the options screen was opened.

how can i reach this goal?

mark
ASKER CERTIFIED SOLUTION
Avatar of nffvrxqgrcfqvvc
nffvrxqgrcfqvvc

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Mark_FreeSoftware

ASKER


that's one piece (the switching)

but how can i know what app had focus before mine?

example:

i am doing somthing in word,
than i decide i want to change somthing and i open the options screen.
i close it, and word doesnt get focus
however when i just close my app, word is getting focus


thanks for your help this far,

i'm going to reward you points for trying to help me