Jump to content

Recommended Posts

Posted

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?

Posted

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

Posted

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

Posted

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?

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
Posted

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.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...