 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
lordliquid
Joined: 29 Jul 2009 Posts: 8
|
Posted: Thu Nov 19, 2009 1:51 am Post subject: Hotkey for one program disables its default for others.. |
|
|
Like the topic says, I use it fine in the game (Fullscreen) then alt tab and try to wheel mouse or use tab alone and it doesn't work as its default.
I have tried using the Control Send and #IfWinActive for this macro..
I have also tried using a toggle key for Suspending the hotkeys which isnt working.
Here is what I have so far.
| Code: |
-::Suspend, Toggle
WheelUp::
ControlSend,, {LAlt down}, ahk_ class Darkfall Online
ControlSend,, {3}, ahk_ class Darkfall Online
ControlSend,, {LAlt Up}, ahk_ class Darkfall Online
return
WheelDown::
ControlSend,, {LAlt down}, ahk_ class Darkfall Online
ControlSend,, {1}, ahk_ class Darkfall Online
ControlSend,, {LAlt Up}, ahk_ class Darkfall Online
return
Tab::
ControlSend,, {RCtrl down}, ahk_ class Darkfall Online
ControlSend,, {Numpad1}, ahk_ class Darkfall Online
ControlSend,, {RCtrl Up}, ahk_ class Darkfall Online
ControlSend,, {RCtrl down}, ahk_ class Darkfall Online
ControlSend,, {Numpad2}, ahk_ class Darkfall Online
ControlSend,, {RCtrl Up}, ahk_ class Darkfall Online
ControlSend,, {RCtrl down}, ahk_ class Darkfall Online
ControlSend,, {Numpad3}, ahk_ class Darkfall Online
ControlSend,, {RCtrl Up}, ahk_ class Darkfall Online
ControlSend,, {RCtrl down}, ahk_ class Darkfall Online
ControlSend,, {Numpad4}, ahk_ class Darkfall Online
ControlSend,, {RCtrl Up}, ahk_ class Darkfall Online
return
!WheelUp::
ControlSend,, {RCtrl down}, ahk_ class Darkfall Online
ControlSend,, {[}, ahk_ class Darkfall Online
ControlSend,, {RCtrl up}, ahk_ class Darkfall Online
return
!WheelDown::
ControlSend,, {RCtrl down}, ahk_ class Darkfall Online
ControlSend,, {]}, ahk_ class Darkfall Online
ControlSend,, {RCtrl up}, ahk_ class Darkfall Online
return
|
Any ideas?
EDIT: Just read another post about a user having problems with #IfWinActive in Windows 7. I am also using Windows 7 so maybe there is a fix?
Last edited by lordliquid on Thu Nov 19, 2009 1:56 am; edited 1 time in total |
|
| Back to top |
|
 |
Eedis
Joined: 12 Jun 2009 Posts: 389
|
Posted: Thu Nov 19, 2009 1:55 am Post subject: |
|
|
| Code: | ~-::Suspend, Toggle
~WheelUp::
ControlSend,, {LAlt down}, ahk_ class Darkfall Online
ControlSend,, {3}, ahk_ class Darkfall Online
ControlSend,, {LAlt Up}, ahk_ class Darkfall Online
return
~WheelDown::
ControlSend,, {LAlt down}, ahk_ class Darkfall Online
ControlSend,, {1}, ahk_ class Darkfall Online
ControlSend,, {LAlt Up}, ahk_ class Darkfall Online
return
~Tab::
ControlSend,, {RCtrl down}, ahk_ class Darkfall Online
ControlSend,, {Numpad1}, ahk_ class Darkfall Online
ControlSend,, {RCtrl Up}, ahk_ class Darkfall Online
ControlSend,, {RCtrl down}, ahk_ class Darkfall Online
ControlSend,, {Numpad2}, ahk_ class Darkfall Online
ControlSend,, {RCtrl Up}, ahk_ class Darkfall Online
ControlSend,, {RCtrl down}, ahk_ class Darkfall Online
ControlSend,, {Numpad3}, ahk_ class Darkfall Online
ControlSend,, {RCtrl Up}, ahk_ class Darkfall Online
ControlSend,, {RCtrl down}, ahk_ class Darkfall Online
ControlSend,, {Numpad4}, ahk_ class Darkfall Online
ControlSend,, {RCtrl Up}, ahk_ class Darkfall Online
return
~!WheelUp::
ControlSend,, {RCtrl down}, ahk_ class Darkfall Online
ControlSend,, {[}, ahk_ class Darkfall Online
ControlSend,, {RCtrl up}, ahk_ class Darkfall Online
return
~!WheelDown::
ControlSend,, {RCtrl down}, ahk_ class Darkfall Online
ControlSend,, {]}, ahk_ class Darkfall Online
ControlSend,, {RCtrl up}, ahk_ class Darkfall Online
return | Try that. _________________ Pylons Are Trapped Balls.
http://www.autohotkey.net/~Eedis/
 |
|
| Back to top |
|
 |
lordliquid
Joined: 29 Jul 2009 Posts: 8
|
Posted: Thu Nov 19, 2009 1:59 am Post subject: |
|
|
| No that did not work.. I even tried chaning which key was being used for the hotkey from "-" to "l" did not help. Thanks for trying.. any other ideas? |
|
| Back to top |
|
 |
Eedis
Joined: 12 Jun 2009 Posts: 389
|
Posted: Thu Nov 19, 2009 2:08 am Post subject: |
|
|
Well, explain your problem more thoroughly. What I'm getting from your very little description is that when you run this script, it won't let you use other hotkeys that involve those hotkeys. For instance, you couldn't use Control+Wheelup while this runs.
I don't fully understand your problem. _________________ Pylons Are Trapped Balls.
http://www.autohotkey.net/~Eedis/
 |
|
| Back to top |
|
 |
lordliquid
Joined: 29 Jul 2009 Posts: 8
|
Posted: Thu Nov 19, 2009 2:33 am Post subject: |
|
|
Okay sure, I am trying to use hotkeys (Wheel Up and Wheel Down ect..) for this game, Darkfall. They work great. However if I alt tab, for instance, into Internet Explorer. I try to scroll using the wheel mouse and it does not scroll the page as its default use. If I manually suspend hotkeys it turns them off and I am able to use the default keys. So I was hoping to have a Hotkey that I could use for when I alt tab so That it does not inturupt my normal computer hotkeys.
Hope that makes sense. |
|
| Back to top |
|
 |
Eedis
Joined: 12 Jun 2009 Posts: 389
|
Posted: Thu Nov 19, 2009 2:48 am Post subject: |
|
|
| Code: | -::Suspend, Toggle
WheelUp::
IfWinActive, Darkfall Online
Sendinput {LAlt down}3{LAlt Up}
return
WheelDown::
IfWinActive, Darkfall Online
Sendinput {LAlt down}1{LAlt Up}
return
Tab::
IfWinActive, Darkfall Online
Sendinput {rctrl down}{numpad1}{Numpad2}{Numpad3}{Numpad4}{rctrl Up}
return
!WheelUp::
IfWinActive, Darkfall Online
Sendinput {rctrl down}{[}{rctrl Up}
return
!WheelDown::
IfWinActive, Darkfall Online
Sendinput {rctrl down}{]}{rctrl Up}
return |
_________________ Pylons Are Trapped Balls.
http://www.autohotkey.net/~Eedis/
 |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|