AutoHotKey question for controling image capture

A forum to ask questions, post setups, and generally discuss anything having to do with photomacrography and photomicroscopy.

Moderators: rjlittlefield, ChrisR, Chris S., Pau

Lou Jost
Posts: 5945
Joined: Fri Sep 04, 2015 7:03 am
Location: Ecuador
Contact:

AutoHotKey question for controling image capture

Post by Lou Jost »

[Edited to reflect continuing experiments]

I am currently trying to learn how to use AutoHotKey to run my camera. I am an old-time VB computer programmer but don't know anything about AutoHotKey scripts. I only need to do the simplest thing: click a mouse at the cursor's current position N times, with a time delay of t between each one. I read the help files and and wrote my first script, which seemed like it would work, but instead of giving me a time delay of t milliseconds between clicks, it gives me a time delay that is much longer. For example, I put t=2000 and N=9, and this took about 35s to run. Roughly twice as long as it should have. It does the same thing on both my desktop and my laptop. Anyone know what I could be doing wrong?

The script:
^w::
SetMouseDelay, t
Click, N
Return

Thanks in advance.

Post Reply Previous topicNext topic