Sign in to follow this  
Followers 0
demonsc

How would I?

5 posts in this topic

Hi, I'm new to Autoit, and i'm trying my best to understand this.

I'm starting to understand how Auto-It works since i know a little bit of Java, just the basics

I want to be able to use an option where i can send

Text to another Window, in a specific Edit Field...

I think you would use the

ControlSend option... I have the AutoIt Window Info.. I got the Information on where i want to send the Text to:

here it is

Class Edit

Instance 1

Classname NN Edit1

ID 1001

Text

Position 308,148

Size 108,20

ControlClick Coords 43,7

Style 0x58010080

ExStyle 0x00000204

If you guys would also help me with what statement i would type of i wanted to Change the title of another window...

If theres a Dictionary for Autoit statements could you please refer me to one,

Thanks alot! :)

Share this post


Link to post
Share on other sites

The help file is always a good place to find AutoIt statements. I assume you have it?

ControlSetText would actually be more reliable than ControlSend though.

Share this post


Link to post
Share on other sites

Well can you write me an example of how it would look like?

I'll try on my own though

Share this post


Link to post
Share on other sites

Being it is a standard edit control you could also use the GuiEdit UDFs in the Beta, for example:

#include <GuiEdit.au3>

Run("notepad")
WinWaitActive("Untitled -")

$handle = ControlGetHandle("Untitled -", "", "Edit1")

_GUICtrlEdit_AppendText($handle, "This is a test of the edit functions" & @CRLF & "This is only a test")
MsgBox(0,"Test", _GUICtrlEdit_GetText($handle))

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Oh My god!! Thx it worked... Now How Do i rename another window.

For example This window.. The WebBrowser Window is currently named

How would I?-AutoIt Forums...

If i wanted to change it too

Explorer,

How would i do that?

Edited by demonsc

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  
Followers 0