AutoHotkey Community

It is currently May 27th, 2012, 3:05 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 9 posts ] 
Author Message
PostPosted: March 15th, 2010, 1:42 pm 
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!


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 15th, 2010, 2:00 pm 
Have you tried #IfWinActive?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 15th, 2010, 2:04 pm 
Offline

Joined: June 18th, 2008, 8:36 am
Posts: 4923
Location: AHK Forum
You will need #IfWinNotActive :!:

_________________
AHK_H (2alpha) AHF TT _Struct WatchDir Yaml _Input ObjTree RapidHotkey DynaRun :wink:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 15th, 2010, 2:11 pm 
Please can you put the code?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 15th, 2010, 2:17 pm 
Offline

Joined: June 18th, 2008, 8:36 am
Posts: 4923
Location: AHK Forum
Example
Code:
#IfWinNotActive ahk_class Notepad
 a::MsgBox
#IfWinNotActive

_________________
AHK_H (2alpha) AHF TT _Struct WatchDir Yaml _Input ObjTree RapidHotkey DynaRun :wink:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 15th, 2010, 2:53 pm 
Damn, I still need to review the Codes, I don't know what that code do. Really!


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 20th, 2010, 5:07 pm 
Please help, give me the correct Code please.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 20th, 2010, 5:20 pm 
Offline

Joined: May 27th, 2007, 9:41 am
Posts: 4999
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 FAQ
TF : Text files & strings lib, TF Forum


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 20th, 2010, 5:20 pm 
Offline

Joined: November 28th, 2009, 4:45 am
Posts: 3089
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.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google Feedfetcher, rbrtryn, Yahoo [Bot] and 29 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group