Rickname Posted February 23, 2013 Posted February 23, 2013 (edited) Hi,Im wondering how the function "SendKeepActive" does really work - and I mean not how to use the function, but instead what's the C/C++ code behind this function ?I'm asking because I want to create a very fast program that keeps a specific window active whenever looses focus, and activate it back. Tried a While loop with WinActivate but is not even close as fast as SendKeepActive . So how can SendKeepActive keep a window focused that fast ? ? Edited February 23, 2013 by Rickname
Developers Jos Posted February 23, 2013 Developers Posted February 23, 2013 It saves the Handle of the window you want to SendKeepActive and performs an SetForegroundWindow() before each Send after checking whether or not it still exists. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Rickname Posted February 23, 2013 Author Posted February 23, 2013 (edited) It saves the Handle of the window you want to SendKeepActive and performs an SetForegroundWindow() before each Send after checking whether or not it still exists.Ok Thanks alot Jos ! Edited February 23, 2013 by Rickname
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