Abaddon Posted May 3, 2007 Share Posted May 3, 2007 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 More sharing options...
Helge Posted May 3, 2007 Share Posted May 3, 2007 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. Link to comment Share on other sites More sharing options...
Eric1 Posted May 3, 2007 Share Posted May 3, 2007 (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 May 3, 2007 by Eric1 Link to comment Share on other sites More sharing options...
Helge Posted May 3, 2007 Share Posted May 3, 2007 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 More sharing options...
Eric1 Posted May 3, 2007 Share Posted May 3, 2007 (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 May 3, 2007 by Eric1 Link to comment Share on other sites More sharing options...
Zedna Posted May 3, 2007 Share Posted May 3, 2007 ControlSend("Untitled","","Edit1",Chr($a)) note: missing quotes Resources UDF Â ResourcesEx UDF Â AutoIt Forum Search Link to comment Share on other sites More sharing options...
Eric1 Posted May 3, 2007 Share Posted May 3, 2007 ControlSend("Untitled","","Edit1",Chr($a)) note: missing quotes Omg... I feel so stupid Link to comment Share on other sites More sharing options...
Abaddon Posted May 4, 2007 Author Share Posted May 4, 2007 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 More sharing options...
Abaddon Posted May 4, 2007 Author Share Posted May 4, 2007 Man that really sucks. I wasted so much time... Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now