MasonMill Posted December 11, 2010 Posted December 11, 2010 Why doesn't this work? Am I missing something? It doesn't highlight yellow like it normally does. I just want to send w down when i assign $w as w. Send("{"& $w &" down}") Thanks!
wakillon Posted December 11, 2010 Posted December 11, 2010 Your send command seems to be good for hold a key down... But have you activate the gui or windows before ? AutoIt 3.3.18.0 X86 - SciTE 4.4.6.0 - WIN 11 24H2 X64 - Other Examples Scripts
MasonMill Posted December 11, 2010 Author Posted December 11, 2010 I'll go take a look again, it didn't seem to work. Ya I activated it. Thanks for the input!
whim Posted December 11, 2010 Posted December 11, 2010 Maybe force string concat before Send ? Local $keydown = "{"& $w &" down}" Send($keydown)
wakillon Posted December 11, 2010 Posted December 11, 2010 (edited) Maybe force string concat before Send ? Local $keydown = "{"& $w &" down}" Send($keydown) I don't think so... MasonMill, wich type of window do you activate ? Tried your send command on notepad... Run ( 'notepad' ) Sleep ( 1000 ) $w = 'w' WinActivate ( "[CLASS:Notepad]", "" ) Send ( "{" & $w & " down}" ) Send ( "{a down}" ) and it works ! Edited December 11, 2010 by wakillon AutoIt 3.3.18.0 X86 - SciTE 4.4.6.0 - WIN 11 24H2 X64 - Other Examples Scripts
MasonMill Posted December 11, 2010 Author Posted December 11, 2010 ya thanks for the help guys, just threw me off when i didnt see the yellow and i didnt cut and paste so long story short lost in translation! Thanks for the help, and learned a couple things along the way!
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