Jump to content
Sign in to follow this  
Fuse

Text input, button select...

Recommended Posts

Fuse

Hey,

How can I input pre-defined text into a certain field, then for the script to click a button. To be more specfic: Once this application is open I would like to input "SET USERSTATUS AWAY" in the command line field then for the "Send Comand" button to be clicked (or just "Enter" keyboard input would do?)

AutoIT Window Info for command line field on API:

Basic Window Info

Title: Skype Protocol Tracer

Class: TFormViewer.UnicodeClass

Basic Ontrol Info

Call: Edit

Instance: 1

AutoIT Window Info for "Send Command" button

Basic Window Info

Title: Skype Protocol Tracer

Calss: TFormViewer.UnicodeClass

Basic Control Info

Class: TTntButton.UnicodeClass

Instance: 7

Hope you can help, I have had a look around to see how it can be done but unfortuantly my AutoIT scripting is VERY limited! Thanks! :graduated:

Share this post


Link to post
Share on other sites
kaotkbliss

3 main functions you will need to look into - WinActive (or WinExists), ControlSend and ControlClick

With that placed either in a Do... Until WinExists loop or a While 1... Wend loop.


010101000110100001101001011100110010000001101001011100110010000

001101101011110010010000001110011011010010110011100100001

My Android cat and mouse game
https://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek

We're gonna need another Timmy!

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.