Why doesn't my simple script work?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
ggre

Why doesn't my simple script work?

19 Sep 2017, 09:37

I'm an Autohotkey novice, but I do use some simple scripts. I'm trying to write one to use with Acrobat -- to tell it to scan a document.
Here's the whole script:

Code: Select all

;Starts scanning a document (when Acrobat is running)
;
#SingleInstance force
^!s::
Send !frs
Send {TAB 4}
return
edit: please use code tags

The problem is that the tabs are never sent. The script does "Send !frs" then stops. What am I doing wrong?
User avatar
Xtra
Posts: 2750
Joined: 02 Oct 2015, 12:15

Re: Why doesn't my simple script work?

19 Sep 2017, 12:22

Try with a sleep between sends. Could be the program is not ready to accept the tabs yet.

Code: Select all

;Starts scanning a document (when Acrobat is running)
;
#SingleInstance force
^!s::
Send !frs
Sleep 500
Send {TAB 4}
return

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: No registered users and 391 guests