AutoHotkey Community

It is currently May 27th, 2012, 1:17 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: November 19th, 2009, 2:51 am 
Offline

Joined: July 29th, 2009, 5:28 pm
Posts: 8
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 November 19th, 2009, 2:56 am, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 19th, 2009, 2:55 am 
Offline

Joined: June 12th, 2009, 11:36 pm
Posts: 1173
Location: Indianapolis IN, USA
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.

_________________
www.AutoHotkey.net/~Eedis
I love my wife and daughter so much.
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 19th, 2009, 2:59 am 
Offline

Joined: July 29th, 2009, 5:28 pm
Posts: 8
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?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 19th, 2009, 3:08 am 
Offline

Joined: June 12th, 2009, 11:36 pm
Posts: 1173
Location: Indianapolis IN, USA
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.

_________________
www.AutoHotkey.net/~Eedis
I love my wife and daughter so much.
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 19th, 2009, 3:33 am 
Offline

Joined: July 29th, 2009, 5:28 pm
Posts: 8
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 19th, 2009, 3:48 am 
Offline

Joined: June 12th, 2009, 11:36 pm
Posts: 1173
Location: Indianapolis IN, USA
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

_________________
www.AutoHotkey.net/~Eedis
I love my wife and daughter so much.
Image


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: iDrug, Ohnitiel and 22 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