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 

Hotkey Suspend

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



Joined: 30 Jul 2009
Posts: 36

PostPosted: Thu Aug 20, 2009 10:44 pm    Post subject: Hotkey Suspend Reply with quote

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
Back to top
View user's profile Send private message
randallf



Joined: 06 Jul 2009
Posts: 678

PostPosted: Thu Aug 20, 2009 11:39 pm    Post subject: Re: Hotkey Suspend Reply with quote

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?
Back to top
View user's profile Send private message
MasterFocus



Joined: 08 Apr 2009
Posts: 3035
Location: Rio de Janeiro - RJ - Brasil

PostPosted: Thu Aug 20, 2009 11:52 pm    Post subject: Re: Hotkey Suspend Reply with quote

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. Confused
_________________
"Read the manual. Read it again. Search the forum.
Try something before asking. Show what you've tried.
"

Antonio França
My stuff: Google Profile
Back to top
View user's profile Send private message Visit poster's website
Guest






PostPosted: Fri Aug 21, 2009 12:04 am    Post subject: Reply with quote

U need to send the f10 key too??

~f10::

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



Joined: 06 Jul 2009
Posts: 678

PostPosted: Fri Aug 21, 2009 4:56 am    Post subject: Re: Hotkey Suspend Reply with quote

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. Confused


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.
Back to top
View user's profile Send private message
emerysteele



Joined: 30 Jul 2009
Posts: 36

PostPosted: Fri Aug 21, 2009 7:45 am    Post subject: Thank You Reply with quote

Thank you randallf. This is exactly what i needed. Thank you again. Very Happy
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