Jump to content

Recommended Posts

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
  • Developers
Posted

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.
  :)

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

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
×
×
  • Create New...