Sign in to follow this  
Followers 0
Rickname

How SendKeepActive does really work ?

3 posts in this topic

#1 ·  Posted (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 :blink:. So how can SendKeepActive keep a window focused that fast ? ?

Edited by Rickname

Share this post


Link to post
Share on other sites



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.


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#3 ·  Posted (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 by Rickname

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  
Followers 0