Jump to content

ControlSend a variable


Recommended Posts

My GUI has some text boxes that the user can input a Key into.

At the moment i use

Send(GUICtrlRead($key1))

which if the user had input "A" into the text box would send "A" to the Active Window

How can i do the same using ControlSend so that the window doesn't need to be Active?

ControlSend($window, "", "", "{A}")
sends "A" correctly but i want {A} to be the Value entered in $key1 text box from the GUI
Link to comment
Share on other sites

ControlSend($window, "", "", GUICtrlRead($key1))

OMG LOL

Thank you i think iv been looking at code to long today my brain must be fried i'd tried multiple variations of what you put but with quotes and brackets and the like.

Iv also been using Au3Info.exe to get Information from my GUI for the last hour trying all sorts of things like

ControlSend($window, "", "[ID:15]")

Once again Thank You

Link to comment
Share on other sites

ControlSend($window, "", "", GUICtrlRead($key1))

is that code working..???it is possible to use that??

[font="Arial Black"]Looking for a partner in making Perfect Bot for DEKARONPm me if you wanna join.....[/font]
Link to comment
Share on other sites

it is possible to use that??

Yes.
Certifications: A+, Network+, Security+, Linux+, LPIC-1, MCSA | Languages: AutoIt, C, SQL, .NETBooks: AutoIt v3: Your Quick Guide - $7.99 - O'Reilly Media - September 2007-------->[u]AutoIt v3 Development - newbie to g33k[/u] - Coming Soon - Fate Publishing - Spring 2013UDF Libraries: SkypeCOM UDF Library | ADUC Computers OU Cleanup | Find PixelChecksumExamples: Skype COM Examples - Skype4COMLib Examples converted from VBS to AutoIt
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...