jpm Posted June 1, 2005 Posted June 1, 2005 I hope JON can have a look to it because it is confusing to have$text = "{CTRLDOWN}b{CTRLUP}AutoIt{CTRLDOWN}b{CTRLUP} sends characters to thenot workingand$text = "^bAutoIt^b sends characters to the active window{ENTER}"working with ControlSendThe expressions being equivalent i term of the keyboard action<{POST_SNAPBACK}>Can every body verify that this intended correction is working in their environment?A lot of checking with { } will be appreciate.
GaryFrost Posted June 1, 2005 Posted June 1, 2005 (edited) changed the beginning of the text so i could make sure i was looking at correct sends and ControlSends and added another send and controlsend$text = "Send Line 1 - {CTRLDOWN}b{CTRLUP}AutoIt{CTRLDOWN}b{CTRLUP} {ENTER}" Send( $text ) $text = "Send Line 2 - {CTRLDOWN}b{CTRLUP}AutoIt{CTRLDOWN}b{CTRLUP} sends characters to the active window{ENTER}" Send( $text ) ; ; now do it with controlsend, this does NOT work ; $text = "Control" & $text ControlSend( $wpHwnd, "", 'RICHEDIT50W1', $text, 0 ) ; ; but curiously this works OK ; $text = "ControlSend Line 3 - ^bAutoIt^b {ENTER}" ControlSend( $wpHwnd, "", 'RICHEDIT50W1', $text, 0 ) $text = "ControlSend Line 4 - {CTRLDOWN}b{CTRLUP}AutoIt{CTRLDOWN}b{CTRLUP} {ENTER}" ControlSend( $wpHwnd, "", 'RICHEDIT50W1', $text, 0 ) $text = "ControlSend Line 5 - ^bAutoIt^b sends characters to the active window{ENTER}" ControlSend( $wpHwnd, "", 'RICHEDIT50W1', $text, 0 ) $text = "ControlSend Line 6 - {CTRLDOWN}b{CTRLUP}AutoIt{CTRLDOWN}b{CTRLUP} sends characters to the active window{ENTER}" ControlSend( $wpHwnd, "", 'RICHEDIT50W1', $text, 0 )Results:Send Line 1 - AutoIt Send Line 2 - AutoIt sends characters to the active windowControlSend Line 2 - AutoIt sends characters to the active windowControlSend Line 3 - AutoIt ControlSend Line 4 - AutoIt ControlSend Line 5 - AutoIt sends characters to the active windowControlSend Line 6 - AutoIt sends characters to the active windowTried some other commands also, italics etc... ControlSend seems to be working for me. Edited June 1, 2005 by gafrost SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
jpm Posted June 1, 2005 Author Posted June 1, 2005 Thanks Gafrost. test more combination of {CAPSLOCK on} with {x 20} {a down} ... with the Opt("SendAttachMode",1) or Opt("SendCapslockMode",0) I want to be sure that the modification I did does not bring big regression. Thanks for your help
GaryFrost Posted June 1, 2005 Posted June 1, 2005 (edited) Tried all of those, don't use controlsend much myself, not sure what else to be looking for. Edit: and seemed to work fine. Edited June 1, 2005 by gafrost SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
jpm Posted June 1, 2005 Author Posted June 1, 2005 Tried all of those, don't use controlsend much myself, not sure what else to be looking for.Edit: and seemed to work fine.<{POST_SNAPBACK}>nonregression with send is OK the correction affect bothThanks
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