Jump to content
Sign in to follow this  
autoitty

Speeding up Autoit scripts? Or a faster language?

Recommended Posts

autoitty

Autoit seems to be running a bit slower than I'd ideally like it to. When it comes to integrating the graphical functions, Autoit seems to slow down a whole lot every iteration such graphical functions are called.

Is there any way to sort of inherently "boost" the execution speeds of autoit? Or is there another scripting language that executes more quickly?

Share this post


Link to post
Share on other sites
Tomb

nope.

autoit is slow.

Share this post


Link to post
Share on other sites
Swift

Maybe give us a sample thats slow...? AutoIt is fast.

Share this post


Link to post
Share on other sites
Tomb

Maybe give us a sample thats slow...? AutoIt is fast.

not fast graphically. :)

Share this post


Link to post
Share on other sites
Swift

not fast graphically. :)

Shh...Ur not fast graphically!

Share this post


Link to post
Share on other sites
Tomb

Shh...Ur not fast graphically!

yeah i know :)

Share this post


Link to post
Share on other sites
autoitty

I mean such as loops containing pixelgetcolor or things of that nature (graphical functions). If I need to use such functions in an area of high-density graphics data, I tend to find that my functions aren't going fast enough and it's missing things of value.

For instance, I wrote a program to count a number of cars that go by a few given spots. However, sometimes my program misses cars that are going to fast (I am basically constantly rechecking certain pixels for certain changes), and so I basically need something that is fast enough to catch everything.

Share this post


Link to post
Share on other sites
SIone

I mean such as loops containing pixelgetcolor or things of that nature (graphical functions). If I need to use such functions in an area of high-density graphics data, I tend to find that my functions aren't going fast enough and it's missing things of value.

For instance, I wrote a program to count a number of cars that go by a few given spots. However, sometimes my program misses cars that are going to fast (I am basically constantly rechecking certain pixels for certain changes), and so I basically need something that is fast enough to catch everything.

Just a suggestion, but why not link a cheap motion sensor to a wireless doorbell sender, and connect the reciever to your parallel port: synchonise the real world to your snap shots!

(this is a five minute job with your soldering iron....)

All the best,

si


Perilous to all of us are the devices of an art deeper than we ourselves possess.

Share this post


Link to post
Share on other sites
monoceres

I mean such as loops containing pixelgetcolor or things of that nature (graphical functions). If I need to use such functions in an area of high-density graphics data, I tend to find that my functions aren't going fast enough and it's missing things of value.

For instance, I wrote a program to count a number of cars that go by a few given spots. However, sometimes my program misses cars that are going to fast (I am basically constantly rechecking certain pixels for certain changes), and so I basically need something that is fast enough to catch everything.

It's actually not autoit who is the bottleneck here, but the API calls that are performed during PixelGetColor() (Especially under Vista and aero theme)

Broken link? PM me and I'll send you the file!

Share this post


Link to post
Share on other sites
autoitty

I am using a laptop, no parallel port :)

Is there a faster scripting language? Or a faster way to receive more pixel color iteration input over time?

EDIT: I use XP, btw.

Edited by autoitty

Share this post


Link to post
Share on other sites
SIone

It's actually not autoit who is the bottleneck here, but the API calls that are performed during PixelGetColor() (Especially under Vista and aero theme)

I agree.

It wont be an easy problem to solve if the goal is to capture usable data from a camera.

What do you think of my suggestion with the sensor on the parrallel port?

Si.


Perilous to all of us are the devices of an art deeper than we ourselves possess.

Share this post


Link to post
Share on other sites
autoitty

I don't have the resources for that sort of thing

Share this post


Link to post
Share on other sites
SIone

I am using a laptop, no parallel port :)

Is there a faster scripting language? Or a faster way to receive more pixel color iteration input over time?

EDIT: I use XP, btw.

The swines! :)

Have they dropped that from the newer machines! Who voted for that?

Si.


Perilous to all of us are the devices of an art deeper than we ourselves possess.

Share this post


Link to post
Share on other sites
Swift

C++, C#, VB, are all fast!

Share this post


Link to post
Share on other sites
autoitty

Is there any simple sample code that would show how I'd do a pixelgetcolor function with C++/C# or VB?

Share this post


Link to post
Share on other sites
Swift

Is there any simple sample code that would show how I'd do a pixelgetcolor function with C++/C# or VB?

Um...Maybe..I don't know those langauges! :)

Share this post


Link to post
Share on other sites
SmOke_N

Is there any simple sample code that would show how I'd do a pixelgetcolor function with C++/C# or VB?

You can use Google to find these answers. The API call for PixelGetColor is GetPixel <-- Look that up in Google, and you'll find more examples then you really want to read :) ...

Edit:

Sorry, I gave you the wrong API GetPixel is what you want :)

Edited by SmOke_N

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
autoitty

Is Python similar to autoit?

Share this post


Link to post
Share on other sites
weaponx

Is Python similar to autoit?

No. Well if you consider any scripting language to be similar, then yes.

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  

×