Jump to content

Recommended Posts

Posted

ControlSend isn't working for me.

Example: ControlSend ( "Diablo II", "", "", "{ENTER}" ) doesn't work. It sends it just like Send does.

I need some tips or a solution please I'm stuck I've looked through the help file.

Posted (edited)

What version are you running ?

MsgBox(64, "", @AutoItVersion)

ControlSend was tweaked in one of the latest betas so try updating to the latest one.

The newest at the moment is 3.2.3.12.

Ok, but will if work with
("Notepad","",Edit1,Chr($a),0)
??? Edited by Eric1
Posted

Ok, but will if work with

("Notepad","",Edit1,Chr($a),0)
???
Yes, but that's not same though....he used a blank controlID (you didn't), which there was some problems with some versions ago.

Seems like 3.2.3.0 is where the fix was added :

- Fixed: ControlSend() to empty "" ctrl fixed for inactive window. Also shift state behavior.

Posted (edited)

Sorry, but you're wrong. I have the latest Autoit version, and I'm still getting an error for:

WinWaitActive("Untitled")
$a=1
While $a<5
ControlSend("Untitled","",Edit1,Chr($a))
$a=$a+1
WEnd

Here's the error:

C:\Documents and Settings\Nunyobiznez\Desktop\sdfgjksdffjkghrjkl.au3(4,32) : ERROR: syntax error
ControlSend("Untitled","",Edit1,
Edited by Eric1
Posted

Hey thanks the beta thing worked. But one small problem... if I am typing something and I use capslock while the code is running, it will use capslock in the control send. Is there any way around this?

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...