Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i m playing poker on a couple of pokersites with the help of several ahk scripts to send hotkeys to table (window) under mouse.

one pokerroom (carbon poker) though, keeps stealing focus and activates the window when its my turn, so the keystroke, even when i m over another table ( program ) gets send to this table which causes unwanted bets or folds :)

i was searching the interweb for a solution to prevent focus stealing in windows 7 but couldnt find anything.

so i guess the best solution is an additional program that insures that keystrokes are send to window under cursor.

would sb pls help me find or write such an app/script

thx in advane


found help in the community:


SetTimer, CheckActive, 5

  WinActivate, ahk_id %window%
share|improve this question
found help in the community: – markus Aug 2 '12 at 0:40
Why a separate script; why not just spawn a thread from your main script? – Synetech Aug 2 '12 at 0:56

The Microsoft power toy Tweak UI implements this.

Under the mouse section Activation follows mouse (X-Mouse), it has a default timer of 1000ms which you can change.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .