I just bought the software and use it to create a little bit complicate script.
This script can work perfectly in my computer which installed macro scheduler.
But after I compile my script to exe file and let it be used by my colleauges, the script cannot work properly in their computer.
It seems that some commands in my script didn't execute or be accepted in their computer correctly.
The script is running for some actions in adobe acrobet. I have checked the acrobat version and the setting. It's the same as mime.
Is there any suggestion for me to modify my script? Is there any debug mode in exe file?
Script EXE file cannot perform correctly in another computer
Moderators: JRL, Dorian (MJT support)
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Most likely screen resolutions, window placements, paths, timing and other system-specific stuff hasn't been taken into account. You need to write the script in such a way that it works generically - e.g. use WaitWindowOpen rather than static Waits, avoid using mouse events, use keyboard commands, always use SetFocus before sending keys, etc etc.
If you post your script here you'll no doubt receive lots of useful advice on how to make it more generic and reliable.
If you post your script here you'll no doubt receive lots of useful advice on how to make it more generic and reliable.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
Thanks for your prompt reply!
Dear mtettmar,
First of all, very thanks for your prompt response.
I will try to modify my script according to your suggestion to see if it's workable or not.
Here is my script for your reference(Most of commands are only keyboard input functions). The main purpose of my script is to put watermark and date on the PDF file then convert it into encrypted file.
===================================
SetFocus>Adobe Acrobat*
Press ALT
Release ALT
Send Character/Text>db
Press ALT
Send Character/Text>wb
Release ALT
Wait>3
WaitWindowClosed>¶}±Ò
Wait>3
Press ALT
Send Character/Text>n
Release ALT
Send Character/Text>1
Press ALT
Send Character/Text>a
Release ALT
Press Enter
Press ALT
Release ALT
Send Character/Text>db
Press ALT
Send Character/Text>w
Release ALT
Press ALT
Send Character/Text>n
Release ALT
Send Character/Text>2
Press ALT
Send Character/Text>s
Release ALT
Press Tab
Press Tab
Send Character/Text>1
Press Enter
Press ALT
Release ALT
Send Character/Text>dh
Press Down
Press ALT
Send Character/Text>mmmz
Release ALT
Press Tab
Press Tab
Press Tab
Send Character/Text>
Press ALT
Send Character/Text>n
Release ALT
Press Home
Press End
Press Page Up
Press Page Up
Press Page Up
Press Up
Press ALT
Send Character/Text>s
Release ALT
Press Down
Press Down
Press Down
Press Down
Press ALT
Send Character/Text>i
Release ALT
Press Enter
Press ALT
Send Character/Text>f
Release ALT
Send Character/Text>d
Press Home
Press Down
Press Down
Press Down
Press ALT
Send Character/Text>m
Release ALT
Press Down
Press Tab
Send Character/Text>
Send Character/Text>xxx
Press Tab
Send Character/Text>
Send Character/Text>xxxxxxxx
Press Tab
Press Down
Press Down
Press ALT
Send Character/Text>v
Release ALT
Press Enter
Send Character/Text>xxx
Press Enter
Send Character/Text>xxxxxxxx
Press Enter
Press Enter
Press ALT
Send Character/Text>fs
Release ALT
========================================
First of all, very thanks for your prompt response.
I will try to modify my script according to your suggestion to see if it's workable or not.
Here is my script for your reference(Most of commands are only keyboard input functions). The main purpose of my script is to put watermark and date on the PDF file then convert it into encrypted file.
===================================
SetFocus>Adobe Acrobat*
Press ALT
Release ALT
Send Character/Text>db
Press ALT
Send Character/Text>wb
Release ALT
Wait>3
WaitWindowClosed>¶}±Ò
Wait>3
Press ALT
Send Character/Text>n
Release ALT
Send Character/Text>1
Press ALT
Send Character/Text>a
Release ALT
Press Enter
Press ALT
Release ALT
Send Character/Text>db
Press ALT
Send Character/Text>w
Release ALT
Press ALT
Send Character/Text>n
Release ALT
Send Character/Text>2
Press ALT
Send Character/Text>s
Release ALT
Press Tab
Press Tab
Send Character/Text>1
Press Enter
Press ALT
Release ALT
Send Character/Text>dh
Press Down
Press ALT
Send Character/Text>mmmz
Release ALT
Press Tab
Press Tab
Press Tab
Send Character/Text>
Press ALT
Send Character/Text>n
Release ALT
Press Home
Press End
Press Page Up
Press Page Up
Press Page Up
Press Up
Press ALT
Send Character/Text>s
Release ALT
Press Down
Press Down
Press Down
Press Down
Press ALT
Send Character/Text>i
Release ALT
Press Enter
Press ALT
Send Character/Text>f
Release ALT
Send Character/Text>d
Press Home
Press Down
Press Down
Press Down
Press ALT
Send Character/Text>m
Release ALT
Press Down
Press Tab
Send Character/Text>
Send Character/Text>xxx
Press Tab
Send Character/Text>
Send Character/Text>xxxxxxxx
Press Tab
Press Down
Press Down
Press ALT
Send Character/Text>v
Release ALT
Press Enter
Send Character/Text>xxx
Press Enter
Send Character/Text>xxxxxxxx
Press Enter
Press Enter
Press ALT
Send Character/Text>fs
Release ALT
========================================