AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to Automatic Suspend the HotKey while I'm on the Firefox

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Yehey
Guest





PostPosted: Mon Mar 15, 2010 12:42 pm    Post subject: How to Automatic Suspend the HotKey while I'm on the Firefox Reply with quote

Guys, how to Automatic Suspend the HotKey while I'm on the Firefox? Then when I go back in game it will unsuspend back again? Please help!
Back to top
link4u
Guest





PostPosted: Mon Mar 15, 2010 1:00 pm    Post subject: Reply with quote

Have you tried #IfWinActive?
Back to top
HotKeyIt



Joined: 18 Jun 2008
Posts: 4652
Location: AHK Forum

PostPosted: Mon Mar 15, 2010 1:04 pm    Post subject: Reply with quote

You will need #IfWinNotActive Exclamation
_________________
AHK_H (2alpha) AHF TT _Struct WatchDir Yaml _Input ObjTree RapidHotkey DynaRun Wink
Back to top
View user's profile Send private message
Yehey
Guest





PostPosted: Mon Mar 15, 2010 1:11 pm    Post subject: Reply with quote

Please can you put the code?
Back to top
HotKeyIt



Joined: 18 Jun 2008
Posts: 4652
Location: AHK Forum

PostPosted: Mon Mar 15, 2010 1:17 pm    Post subject: Reply with quote

Example
Code:
#IfWinNotActive ahk_class Notepad
 a::MsgBox
#IfWinNotActive

_________________
AHK_H (2alpha) AHF TT _Struct WatchDir Yaml _Input ObjTree RapidHotkey DynaRun Wink
Back to top
View user's profile Send private message
Yehey
Guest





PostPosted: Mon Mar 15, 2010 1:53 pm    Post subject: Reply with quote

Damn, I still need to review the Codes, I don't know what that code do. Really!
Back to top
Yehey
Guest





PostPosted: Sat Mar 20, 2010 4:07 pm    Post subject: Reply with quote

Please help, give me the correct Code please.
Back to top
SoLong&Thx4AllTheFish



Joined: 27 May 2007
Posts: 4999

PostPosted: Sat Mar 20, 2010 4:20 pm    Post subject: Reply with quote

Dude, 5 days and you haven't tried anything? Hotkeyit already posted the correct code, read the documentation with the examples, what more do you need?
_________________
AHK Wiki FAQ
TF : Text files & strings lib, TF Forum
Back to top
View user's profile Send private message
None



Joined: 28 Nov 2009
Posts: 3086

PostPosted: Sat Mar 20, 2010 4:20 pm    Post subject: Reply with quote

Yehey wrote:
Please help, give me the correct Code please.

HotKeyIt Did all you have to do is put the ahk_class of FireFox in instead of Notepads (determined with windows spy). Then the hotkeys you don't want to work in FireFox go between the #IfWinNotActives.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group