AHK script : mouse click -> F8

General discussion about software packages and releases, new software you've found, and threads by programmers and script writers.

Moderator: peterZ

Post Reply
bartek158
Posts: 40
Joined: 02 Dec 2016, 04:47
Number of books owned: 0
Country: Poland

AHK script : mouse click -> F8

Post by bartek158 »

Hello
I try to make scanning more quickly. Instead of turning mouse whell by hand I try to do it by foot ( I put mouse on the floor). It will be more comfortable to trigger making photo not by turning mouse whell but just by mouse click. I write simple code in AHK but it doest't work:

Click
send, {F8}
return

How to correct this code ?

Best regards
bartek158
Posts: 40
Joined: 02 Dec 2016, 04:47
Number of books owned: 0
Country: Poland

Re: AHK script : mouse click -> F8

Post by bartek158 »

The perfect will be if it will be Right Click
duerig
Posts: 388
Joined: 01 Jun 2014, 17:04
Number of books owned: 1000
Country: United States of America

Re: AHK script : mouse click -> F8

Post by duerig »

I'm not sure how to do exactly what you want. But you might give a USB foot pedal a try. They are fairly cheap and they act as a programmable one-key 'keyboard' that can send any key or even a mouse click to your computer. It might be a good way to trigger things for you.

-D
dtic
Posts: 464
Joined: 06 Mar 2010, 18:03

Re: AHK script : mouse click -> F8

Post by dtic »

bartek158 wrote: 12 Feb 2017, 07:52 I write simple code in AHK but it doest't work

Code: Select all

Rbutton::
send {F8}
return
If you instead want left button change "Rbutton" to "Lbutton". Reference page https://autohotkey.com/docs/KeyList.htm
Post Reply