Sign in to follow this  
Followers 0
Abaddon

ControlSend not working

9 posts in this topic

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.

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

#3 ·  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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

#5 ·  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

Share this post


Link to post
Share on other sites

ControlSend("Untitled","","Edit1",Chr($a))

note: missing quotes

:) Omg... I feel so stupid :D

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

Man that really sucks. I wasted so much time...

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