AutoHotkey Community

It is currently May 26th, 2012, 7:19 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Extra mouse buttons
PostPosted: May 23rd, 2008, 9:26 am 
Offline

Joined: May 23rd, 2008, 9:22 am
Posts: 7
First of all, I just wanted to apologize for posting another one of these topics. I've been searching this forum and google for the past hour but my brain is about to explode. I'm not the smartest when it comes to this stuff, and now I've just gotten confused.

Here's what I'm trying to do. I have a Logitech MX518 mouse and I'm trying to bind a keystroke to the side buttons. Easy enough, I can do that in the Setpoint settings. I want a different keystroke to be pressed when I hold shift then click, and a different one when I hold ctrl then click. So Shift + Mouse4 would press 1 as a keystroke, and Ctrl + Mouse4 could press 2. I have uberOptions installed but can't figure out if I set it through this. I also looked at XButton commands but couldn't figure it out. I have the scripts for the other mouse buttons, just not my side ones. Could anyone help me out?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 23rd, 2008, 11:11 am 
Offline
User avatar

Joined: October 7th, 2006, 8:45 am
Posts: 3328
Location: Simi Valley, CA
it's easy with uberoptions. just set the relevant buttons to the keys [F17] thru [F24] and define those as hotkeys in a script with the appropriate modifiers (!^+#).

_________________
Ternary (a ? b : c) guide     TSV Table Manipulation Library
Post code inside [code][/code] tags!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 23rd, 2008, 7:12 pm 
Offline

Joined: May 23rd, 2008, 9:22 am
Posts: 7
Alright, I've got the extra mouse buttons working now. For some reason the ctrl or alt modifiers aren't working.

My basics are:

MButton::1
F21::2
F22::3

Those work fine. But when I try:

^MButton::4
^F21::5
!F22::6

!F21::
Send, 4
return

None of those work. Where's my error? Once again, sorry for the total newbishness :p


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 23rd, 2008, 7:21 pm 
Offline
User avatar

Joined: August 30th, 2005, 8:43 pm
Posts: 8666
Location: Salem, MA
you may need a keywait in that last one.

_________________
Image
(Common Answers) - New Tutorials Forum - Humongous FAQ


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 23rd, 2008, 7:35 pm 
Offline

Joined: May 23rd, 2008, 9:22 am
Posts: 7
The keywait didn't seem to help. I got it to work with my middle mouse button, but not the others. Here's my current script:


MButton::1
F21::2
F22::3

^MButton::Send 4
#IfWinActive

^F21::Send 5
#IfWinActive

^F22::Send 6
#IfWinActive


Everything works except the stuff in bold. Why is it the ctrl + middle mouse works yet the other two buttons don't with ctrl?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 23rd, 2008, 8:10 pm 
Offline
User avatar

Joined: August 30th, 2005, 8:43 pm
Posts: 8666
Location: Salem, MA
what are you expecting the #IfWinActive to do here?

Code:
!F21::
KeyWait, Alt
Send, 4
return

_________________
Image
(Common Answers) - New Tutorials Forum - Humongous FAQ


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: bobbysoon, kkkddd1, tomL and 67 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