Sign in to follow this  
Followers 0
Paton

some questions (need help plz)

2 posts in this topic

I was using some older version of AutoIt for quite some time and switched to 3.1 like 6-7 weeks ago. I like the new GUI and got some questions about it and about the Send command.

1. The Send command does send text to slow :) I made a simple script like:

Send("hello{ENTER}")
Sleep(2000)
Send("test test{ENTER}")
Sleep(2000)
Send("test test test{ENTER}")

I let this run for example in notepad window and the String gets sent to slow, letter by letter.. I even have set SendKeyDelay to 1, but it didnt help. I want that each line gets sent instantly quick. Is there a way to achieve this ?

2. GUIs: Can i run a GUI, active another window, run a script there and reopen the GUI ?

3. GUIs: Can I run a GUI and keep it on the top, while i active another window and let a script run there ?

4. If 2. and 3. is possible, could someone point me to the right functions to use for that ? I will find out myself how to do it :evil:

Thanks for all the help in advance.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

A1. Put the string into the clip board first :).

ClipPut("hello")
Send(ClipGet() & "{ENTER}")
Sleep(2000)
ClipPut("test test")
Send(ClipGet() & "{ENTER}")
Sleep(2000)
ClipPut("test test test")
Send(ClipGet() & "{ENTER}")

A2& 3. Not sure what you meant but mabye trying look and WinActive() > Win Activate() > GUISetState().

A4. Above.

Edited by Burrup

[u]Old Projects:[/u]A3MORGB2Hex[u]Old Functions:[/u]_TimeAdd/_TimeSub_AddComma_BubbleSort _RippleSort "He who does not understand your silence will probably not understand your words." - Elbert Hubbard.

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