Sign in to follow this  
Followers 0
IKilledBambi

Looking for a way to make AI go to the next command faster.

12 posts in this topic

SendKeyDelay isn't what I'm looking for.

Send("frank")

MouseMove(4, 124)

Send("Frank has a sister")

I'm trying to decrease the time it takes for AI to go to the next line of code.

Share this post


Link to post
Share on other sites



SendKeyDelay isn't what I'm looking for.

Send("frank")

MouseMove(4, 124)

Send("Frank has a sister")

I'm trying to decrease the time it takes for AI to go to the next line of code.

Perhaps:
MouseMove(4, 124, 0); 0 Speed = instantly

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

@ psalty, not what I'm looking for, @jos I didn't think having a faster computer would change that at all. Is that the only thing to try? :)

Share this post


Link to post
Share on other sites

Candy is Dandy, But. Send("Liquor") iT'S QUICKER!!!

:)

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

lol

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

Actually, I have found that Send() is very slow.

ControlSetText() is much faster, however it will remove the last text and a control ID is required

8)

Edited by Valuater

NEWHeader1.png

Share this post


Link to post
Share on other sites

I'm not trying to increase how fast it sends the letters, I'm trying to increase how fast it goes from one command to another.

Share this post


Link to post
Share on other sites

I'm not trying to increase how fast it sends the letters, I'm trying to increase how fast it goes from one command to another.

What is the difference?

Isn't it the case that when a line is completed faster that the next line is executed sooner ?

Maybe you could explain what you mean with your question because you are pretty vague up till now.

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

I'm moving the mouse to the left, and at the same time pressing the a key. then I let go of the a key and at the same time i press the d key and move the mouse right, but its not nearly close enough to pressing the d key and moving the mouse right at the same time.

Share this post


Link to post
Share on other sites

Keep in mind that AutoIt won't go to the next line of code until the line it is currently on is done.

So in your example, SendKeyDelay does make a difference, as well as setting the speed to MouseMove() to zero or 1. The faster the settings, and ultimately the speed of the PC, will help in faster execution of code.


Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites

@SmOke_N

yes :)

Opt("SendKeyDelay", 0)
Opt("SendKeyDownDelay", 0)
Send("Im sent very fast !")

Cheers, FireFox.


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

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