Jump to content

ControlSend not working


Recommended Posts

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.

Link to comment
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.

Link to comment
Share on other sites

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
Link to comment
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?

Link to comment
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
 Share

  • Recently Browsing   0 members

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