Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

jin

found help in the autohotkey.com community:

#Persistent
#WinActivateForce

SetTimer, CheckActive, 5
return

CheckActive:
 MouseGetPos,,,window
  WinActivate, ahk_id %window%
Return
share|improve this question
    
found help in the autohotkey.com 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

1 Answer 1

The Microsoft power toy Tweak UI implements this.

https://en.wikipedia.org/wiki/Tweak_UI

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.