Jump to content

Recommended Posts

Posted

:( 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 the

not working

and

$text = "^bAutoIt^b sends characters to the active window{ENTER}"

working with ControlSend

The 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.

Posted (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 window

ControlSend Line 2 - AutoIt sends characters to the active window

ControlSend Line 3 - AutoIt

ControlSend Line 4 - AutoIt

ControlSend Line 5 - AutoIt sends characters to the active window

ControlSend Line 6 - AutoIt sends characters to the active window

Tried some other commands also, italics etc... ControlSend seems to be working for me. Edited 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.

 

Posted

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 :(

Posted

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 both

Thanks :(

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
  • Recently Browsing   0 members

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