Sign in to follow this  
Followers 0
thickwick

Help with a simple command

10 posts in this topic

Hey im Very new to auto it

and im wondering whats the funcion that enters text in any open window?

thanks so much in advance,

Thickwick

Share this post


Link to post
Share on other sites



ControlSetTex()

Share this post


Link to post
Share on other sites

Send("text") ??

Share this post


Link to post
Share on other sites

no working =(

Share this post


Link to post
Share on other sites

try:

Send(texthere)

Send("{ENTER}")

:)

Share this post


Link to post
Share on other sites

thanks nah works the above post was for

gen's

Share this post


Link to post
Share on other sites

You need to know what controlID you are sending text to, use AutoIt Windows Info to retrieve it, an example would be..From the help file

Run("notepad.exe")
WinWait("Untitled -")
ControlSetText("Untitled -", "", "Edit1", "New Text Here" )

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

Bellow is the current script im trying to get working

Global $Paused

HotKeySet("{END}", "TogglePause")

HotKeySet("{HOME}", "Terminate")

While 1

Sleep(100)

WEnd

Func TogglePause()

$Paused = NOT $Paused

While $Paused

sleep(100)

send("test")

send("{ENTER}")

WEnd

EndFunc

Func Terminate()

Exit 0

EndFunc

it types but makes ding sounds every time

Edited by thickwick

Share this post


Link to post
Share on other sites

Not sure what's causing the ding sound, but you should focus on a control that allows text to be inserted.

Share this post


Link to post
Share on other sites

nvm it seems to work right for what ill use it for =D thanks all

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