Jump to content
Sign in to follow this  
thickwick

Help with a simple command

Recommended Posts

thickwick

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
Generator

ControlSetTex()

Share this post


Link to post
Share on other sites
Nahuel

Send("text") ??

Share this post


Link to post
Share on other sites
thickwick

no working =(

Share this post


Link to post
Share on other sites
meekaah

try:

Send(texthere)

Send("{ENTER}")

:)

Share this post


Link to post
Share on other sites
thickwick

thanks nah works the above post was for

gen's

Share this post


Link to post
Share on other sites
Generator

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
thickwick

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
Generator

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
thickwick

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  

×