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 

Remap XButtons to ALT and CTRL

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Randomscrub
Guest





PostPosted: Tue Sep 02, 2008 5:49 pm    Post subject: Remap XButtons to ALT and CTRL Reply with quote

Okay, so I have this Logitech mouse, but the software is really buggy if you are forced to reformat or reinstall windows..or some other way lose all drivers.

Even reinstalling doesn't let you remap the mouse keys, its a known bug on the logitech forums.

But I used to use this program to use Multiple Windows of a video game, and I was curious...is there a simple way to make :

XButton1::Alt
XButton2::Ctrl

I tried that code, and it didn't work for me...Any help?

[ Moderator!: Original subject line "Help." changed]
Back to top
PurloinedHeart



Joined: 04 Apr 2008
Posts: 209
Location: Canada

PostPosted: Tue Sep 02, 2008 11:17 pm    Post subject: Reply with quote

Try
Code:

Alt::XButton1
Ctrl::XButton2
Back to top
View user's profile Send private message
[VxE]



Joined: 07 Oct 2006
Posts: 1496

PostPosted: Wed Sep 03, 2008 12:28 am    Post subject: Reply with quote

If those buttons do not show anything in AHK's keyhistory, then you can try using Micha's HID support to at least detect when the buttons are pressed.

For most logitech mice, the 4th and 5th buttons will work OK just using the regular old windows pointing device drivers.
Code:
$LButton up:: ; to access the key history with the mouse hook installed
Hotkey, $LButton up, off
Keyhistory
WinWaitClose, %A_ScriptFullPath%
exitapp
return

_________________
My Home Thread
More Common Answers: [1]. It's in the FAQ [2]. Ternary ( a ? b : c ) guide [3]. Post code inside [code][/code] tags !
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   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