| View previous topic :: View next topic |
| Author |
Message |
emerysteele
Joined: 30 Jul 2009 Posts: 36
|
Posted: Thu Aug 20, 2009 10:44 pm Post subject: Hotkey Suspend |
|
|
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 |
|
 |
randallf
Joined: 06 Jul 2009 Posts: 678
|
Posted: Thu Aug 20, 2009 11:39 pm Post subject: Re: Hotkey Suspend |
|
|
| 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 |
|
 |
MasterFocus
Joined: 08 Apr 2009 Posts: 3035 Location: Rio de Janeiro - RJ - Brasil
|
Posted: Thu Aug 20, 2009 11:52 pm Post subject: Re: Hotkey Suspend |
|
|
| 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."
Antonio França
My stuff: Google Profile |
|
| Back to top |
|
 |
Guest
|
Posted: Fri Aug 21, 2009 12:04 am Post subject: |
|
|
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
|
Posted: Fri Aug 21, 2009 4:56 am Post subject: Re: Hotkey Suspend |
|
|
| 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. |
|
| Back to top |
|
 |
emerysteele
Joined: 30 Jul 2009 Posts: 36
|
Posted: Fri Aug 21, 2009 7:45 am Post subject: Thank You |
|
|
Thank you randallf. This is exactly what i needed. Thank you again.  |
|
| Back to top |
|
 |
|