dmbech Posted March 23, 2004 Posted March 23, 2004 Hi, I just did a search and came up empty to decided to post this. Has anyone seen an anamoly when using a Ver3 script on Win9x with regards to the mouse and Send commands? It seems the mouse won't click and the Send commands aren't accepted? Same script works fine on a WinXP or Win2k box. Any ideas?
Valik Posted March 23, 2004 Posted March 23, 2004 Does the script use BlockInput? AutoIt can simulate input on 2000/XP with BlockInput on, but it can't on Windows 98.
dmbech Posted March 23, 2004 Author Posted March 23, 2004 Nope, no BlockInput used at all. Just the normal mouse and send commands. No special options set or specified in script.
Administrators Jon Posted March 23, 2004 Administrators Posted March 23, 2004 No reports of any problems like this with 98. And a few of the yahoo list regulars still run 98 too. I'll have a quick check on my 98 test system in a mo. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/
Administrators Jon Posted March 23, 2004 Administrators Posted March 23, 2004 Seems fine on vanilla 98 here. Ran the example scripts and a few of my own with no problems. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/
dmbech Posted March 23, 2004 Author Posted March 23, 2004 For instance I just did a quick test using the following: Send("Hello world!") Send("{F5}") I used Notepad as the active window for this test. The expected result would have been: Hello world!2:13 PM 3/23/04 However all I got was: Hello world! I then tried this: Send("Hello world!{ENTER}") Send("{F5}") Expected result: Hello world! 2:13 PM 3/23/04 However the actual result was: Hello world!2:13 PM 3/23/04 So as you can see something is not quite right here! Any ideas?
Valik Posted March 23, 2004 Posted March 23, 2004 (edited) Yeah, the ! is a no-no. That is sending an Alt keystroke, NOT the character literal !. You need to use {!} for !. Edited March 23, 2004 by Valik
dmbech Posted March 23, 2004 Author Posted March 23, 2004 Dang, so obvious too! Shoulda picked up on that one. Sorry... :iamstupid:
scriptkitty Posted March 23, 2004 Posted March 23, 2004 or Send("Hello world!",1) Send("{F5}",0) Send -------------------------------------------------------------------------------- Sends simulated keystrokes to the active window. Send ( "keys" [, flag]) Parameters keys The sequence of keys to send. flag [optional] Changes how "keys" is processed: flag = 0 (default), Text contains special characters like + and ! to indicate SHIFT and ALT key presses. flag = 1, keys are sent raw. AutoIt3, the MACGYVER Pocket Knife for computers.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now