Desktop shortcut to 'Scan to PDF'
This subject has come up in this Support Community earlier (Aug 2019), Then jkastanje shared a vbs-script to send the necessary keystrokes to Acrobat 7. But that discussion died within two comments that focused on the fact that v7 had been superseded ('old and unsupported').
I came across his script when looking for a desktop-shortcut to kick off Scanning via Acrobat 2017 and would love to adapt jkastanje’s script for Acrobat 2017. But it’s many many moons ago that I did any program coding, Leave alone that that was long before Basic, leave alone Basic Sscripting.
Can anybody help explaining what jkastanje’s script does? Which key-strokes are sent actually sent?
My understanding:
- Acrobat is called, I obviously need to provide the actual path to my version of Acrobat.
Why the three-fold double quotes in the call instruction? - The script then pauses (half a second?)
- Then it sends a series of shortcut-keys to Acrobat:
What does actually get sent? Why the "%"? What does "ffss" do? - Then another moment of waiting (0.1 seconds?)
- Then it sends the "~" character. Why "~", what does it do?
And, also important: what are the keystrokes that will lead to the Scan-Tool page in Acrobat 2017?
Thanks and greetings from sunny Amsterdam
LeonW
jkastanje’s script for Acrobat-7:
CODE:
Dim objShell
Set objShell = WScript.CreateObject( "WScript.Shell" )
objShell.Run("""C:\Program Files (x86)\Adobe\Acrobat 9.0\Acrobat\Acrobat.exe""")
WScript.Sleep 500
objShell.SendKeys "%(ffss)"
WScript.Sleep 100
objShell.SendKeys "~"
