Jump to content

ControlSend Alt no A yes


Recommended Posts

You should read.

ControlSend: Sends a string of characters to a control

Send: Sends simulated keystrokes to the active window.

Edited by Danyfirex
Link to comment
Share on other sites

Sorry, I don't get why the difference between control and active window is important. Also, ControlSend('!') works with notepad. Extrapolate? I've read.

(I tried to use winspector with my telnet but nothing? I'm guessing I have to find some other way of sending commands.)

Edited by Leomund
Link to comment
Share on other sites

difference is that control can be anything inside of a windows. maybe a textbox,listbox. do you understand? Edited by Danyfirex
Link to comment
Share on other sites

look this example ;)

Run(@WindowsDir & "notepad.exe", "", @SW_MAXIMIZE)
WinWaitActive("[CLASS:Notepad]")
Send("Today's time/date is {F5} {ENTER}") ; here I simulate the key "f5" if you lock in notepad-edition-f5 return the time/date
ControlSend("[CLASS:Notepad]", "", "Edit1", "This is a line of text in the notepad window F5 ENTER") ;here I use controlsend to send string of characters.
Link to comment
Share on other sites

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