AutoHotkey Community

It is currently May 26th, 2012, 8:31 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Hotkey Suspend
PostPosted: August 20th, 2009, 11:44 pm 
Offline

Joined: July 30th, 2009, 4:15 am
Posts: 36
I have made an autohotkey script that allows me to mute my system audio with the F10 key and play/pause music in itunes with the F8 key. Some programs that i use have hotkeys that use the F10 key so what i want to do is be able to suspend the F10 hotkey but not the F10 hotkey. My code is below.

Code:
F8::
IfWinExist, ahk_class iTunes
ControlSend, ahk_parent, {SPACE}  ; play/pause toggle
return

F10::
Send {Volume_Mute}  ; vol master mute.
return


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: Hotkey Suspend
PostPosted: August 21st, 2009, 12:39 am 
Offline

Joined: July 6th, 2009, 9:58 pm
Posts: 678
emerysteele wrote:
I have made an autohotkey script that allows me to mute my system audio with the F10 key and play/pause music in itunes with the F8 key. Some programs that i use have hotkeys that use the F10 key so what i want to do is be able to suspend the F10 hotkey but not the F10 hotkey. My code is below.

Code:
F8::
IfWinExist, ahk_class iTunes
ControlSend, ahk_parent, {SPACE}  ; play/pause toggle
return

F10::
Send {Volume_Mute}  ; vol master mute.
return


oh no computer is about to force me to update XD

try #IfWinNotActive?


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: Hotkey Suspend
PostPosted: August 21st, 2009, 12:52 am 
Offline

Joined: April 8th, 2009, 8:23 pm
Posts: 3036
Location: Rio de Janeiro - RJ - Brasil
emerysteele wrote:
what i want to do is be able to suspend the F10 hotkey but not the F10 hotkey

What? I didn't get it. :?

_________________
"Read the manual. Read it again. Search the forum.
Try something before asking. Show what you've tried.
"
Image
Antonio França
My stuff: Google Profile


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 21st, 2009, 1:04 am 
U need to send the f10 key too??

~f10::

~ -> this allows u to send the original key too.


Report this post
Top
  
Reply with quote  
 Post subject: Re: Hotkey Suspend
PostPosted: August 21st, 2009, 5:56 am 
Offline

Joined: July 6th, 2009, 9:58 pm
Posts: 678
MasterFocus wrote:
emerysteele wrote:
what i want to do is be able to suspend the F10 hotkey but not the F10 hotkey

What? I didn't get it. :?


Sorry!!! Update client at work forces after so long, and I am easily distracted, anyhow!

If you don't want your script to be active for certain programs try things like

#IfWinNotActive Left4Dead
#IfWinNotActive Warhammer Online
#IfWinNotActive Thermonuclear Warfare

and then if those windows are active the script shouldn't work in them.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Thank You
PostPosted: August 21st, 2009, 8:45 am 
Offline

Joined: July 30th, 2009, 4:15 am
Posts: 36
Thank you randallf. This is exactly what i needed. Thank you again. :D


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey, Mickers, Pulover, tomoe_uehara and 56 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