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 

The 2x "Click once instead of twice" mousebutton

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
mindtricks1



Joined: 14 Jan 2010
Posts: 24

PostPosted: Thu Jan 14, 2010 3:56 pm    Post subject: The 2x "Click once instead of twice" mousebutton Reply with quote

Hello there!

I am using AutoHotKeys to help me playing DOTA.
So, I configured every mousebutton from my mouse to do certain simple actions, like this:
Code:
XButton1::send, {Numpad8}{Click}


The thing is that I want to configure the 2x click mousebutton too and it has no name.

Does anyone know some code that can help me configure it to do some similar simple actions ?

And how can I make this script run only when DOTA (war3.exe process) is running ?

Thanks !
Back to top
View user's profile Send private message
BoffinbraiN



Joined: 16 Nov 2009
Posts: 114

PostPosted: Fri Jan 15, 2010 3:19 pm    Post subject: Reply with quote

To find out how you may be able to find the trigger for your special mouse button, look at http://www.autohotkey.com/docs/KeyList.htm#SpecialKeys

For checking to see if a certain window is open, look at http://www.autohotkey.com/docs/commands/_IfWinActive.htm
Back to top
View user's profile Send private message Visit poster's website
mindtricks1



Joined: 14 Jan 2010
Posts: 24

PostPosted: Fri Jan 15, 2010 3:22 pm    Post subject: Reply with quote

Thanks for your answers. I have already done this.

This "special" button is just a LeftClick when I watch over..
Back to top
View user's profile Send private message
BoffinbraiN



Joined: 16 Nov 2009
Posts: 114

PostPosted: Fri Jan 15, 2010 5:47 pm    Post subject: Reply with quote

That may be due to your mouse drivers/software detecting the special key and converting it into a double-click. If it's a USB mouse, it should carry on working fine if you uninstall the drivers and software related to it, and restart. When you've done that, you might (possibly) get different results. But, if the double-clicking is implemented at the hardware level (i.e. the mouse itself physically sends a double-click to the computer) then you're out of luck.
Back to top
View user's profile Send private message Visit poster's website
mindtricks1



Joined: 14 Jan 2010
Posts: 24

PostPosted: Fri Jan 15, 2010 6:05 pm    Post subject: Reply with quote

Maybe it's hardware cause it stil doesn't show it as a special.

No way to detect this (hw) double click and remap it ?
Back to top
View user's profile Send private message
MasterFocus



Joined: 08 Apr 2009
Posts: 3035
Location: Rio de Janeiro - RJ - Brasil

PostPosted: Fri Jan 15, 2010 6:12 pm    Post subject: Reply with quote

You may adapt the code found here:
http://www.autohotkey.com/forum/viewtopic.php?p=90925#90925
_________________
"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
View user's profile Send private message Visit poster's website
BoffinbraiN



Joined: 16 Nov 2009
Posts: 114

PostPosted: Fri Jan 15, 2010 8:06 pm    Post subject: Reply with quote

Regarding sending hardware-level double-clicks, does anyone know whether a double-click can be a special hardware signal of its own, or is merely a sequence of two regular click signals?
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
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