Jump to content
Sign in to follow this  
Archman

ControlSend a variable

Recommended Posts

Archman

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

Share this post


Link to post
Share on other sites
Archman

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

Share this post


Link to post
Share on other sites
jerwin

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]

Share this post


Link to post
Share on other sites
Airwolf

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

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.