Sign in to follow this  
Followers 0
dmbech

Send Command And Win9x

9 posts in this topic

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?

Share this post


Link to post
Share on other sites



Does the script use BlockInput? AutoIt can simulate input on 2000/XP with BlockInput on, but it can't on Windows 98.

Share this post


Link to post
Share on other sites

Nope, no BlockInput used at all. Just the normal mouse and send commands. No special options set or specified in script.

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

Yeah, the ! is a no-no. That is sending an Alt keystroke, NOT the character literal !. You need to use {!} for !.

Edited by Valik

Share this post


Link to post
Share on other sites

Dang, so obvious too! Shoulda picked up on that one. Sorry... :iamstupid:

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0