Two Plus Two Newer Archives  

Go Back   Two Plus Two Newer Archives > Internet Gambling > Software
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 07-30-2007, 05:50 PM
greg nice greg nice is offline
Senior Member
 
Join Date: Aug 2004
Location: whenever, wherever
Posts: 2,881
Default simple ahk request

would like to bind right and left mouseclicks to keyboard keys. that way i can hover the mouse where i want and use my other hand to press a key on the keyboard to right or left click. can this be done?
Reply With Quote
  #2  
Old 07-30-2007, 06:11 PM
TheIrishThug TheIrishThug is offline
Senior Member
 
Join Date: Jan 2005
Location: Belligerent and numerous
Posts: 1,819
Default Re: simple ahk request

l and r can be changed to any key you want. The documentation on Hotkey in the AutoHotkey help can help if you want to do things with shift, alt, etc.

<font class="small">Code:</font><hr /><pre>l::send, {LButton}
r::send, {RButton}</pre><hr />
Reply With Quote
  #3  
Old 07-30-2007, 06:12 PM
_dave_ _dave_ is offline
Senior Member
 
Join Date: Feb 2005
Location: UK
Posts: 2,628
Default Re: simple ahk request

Sure, this should work

(change F1, F2 and F3 to whatever you prefer)

KeyboardClick.ahk
<font class="small">Code:</font><hr /><pre>
#SingleInstance, Force
SendMode Input
#NoEnv

F1:: ; Left click
Click
return

F2:: ; Double Left click
Click 2
return

F3:: ; Right click
Click right
return
</pre><hr />

many examples here http://www.autohotkey.com/docs/commands/Click.htm

dave.

EDIT: damn, I type slow [img]/images/graemlins/smile.gif[/img]
Reply With Quote
  #4  
Old 07-30-2007, 10:00 PM
TheIrishThug TheIrishThug is offline
Senior Member
 
Join Date: Jan 2005
Location: Belligerent and numerous
Posts: 1,819
Default Re: simple ahk request

Don't feel too bad Dave, It was just the double left click that pushed you into a close second.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:17 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.