AutoHotkey Community

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

All times are UTC [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: January 14th, 2010, 4:56 pm 
Offline

Joined: January 14th, 2010, 4:27 pm
Posts: 24
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 !


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 15th, 2010, 4:19 pm 
Offline

Joined: November 16th, 2009, 9:24 am
Posts: 114
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 ... Active.htm


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 15th, 2010, 4:22 pm 
Offline

Joined: January 14th, 2010, 4:27 pm
Posts: 24
Thanks for your answers. I have already done this.

This "special" button is just a LeftClick when I watch over..


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 15th, 2010, 6:47 pm 
Offline

Joined: November 16th, 2009, 9:24 am
Posts: 114
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 15th, 2010, 7:05 pm 
Offline

Joined: January 14th, 2010, 4:27 pm
Posts: 24
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 ?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 15th, 2010, 7:12 pm 
Offline

Joined: April 8th, 2009, 8:23 pm
Posts: 3036
Location: Rio de Janeiro - RJ - Brasil
You may adapt the code found here:
http://www.autohotkey.com/forum/viewtop ... 0925#90925

_________________
"Read the manual. Read it again. Search the forum.
Try something before asking. Show what you've tried.
"
Image
Antonio França
My stuff: Google Profile


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 15th, 2010, 9:06 pm 
Offline

Joined: November 16th, 2009, 9:24 am
Posts: 114
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?


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], bobbysoon, JSLover, Tipsy3000 and 20 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