Jump to content

Recommended Posts

Posted (edited)

While 1
Run(@AutoItExe & " /AutoIt3ExecuteScript this.au3") ;replace this.au3 with the filename.au3
PixelSearch(0, 0, 500, 500, 0x000000)
If Not @Error Then 
Run(@AutoItExe & " /AutoIt3ExecuteScript this.au3")
Else
Run(@AutoItExe & " /AutoIt3ExecuteScript this.au3")
WEnd

:lmao:

In theory that *should* work.

Edited by AzKay
# MY LOVE FOR YOU... IS LIKE A TRUCK- #
Posted

Thanks,

I get an error when I run this"

Line 8 WEnd If statement has not matching EndIf statment.

While 1
Run(@AutoItExe & " /AutoIt3ExecuteScript this.au3") ;replace this.au3 with the filename.au3
PixelSearch(0, 0, 500, 500, 0x000000)
If Not @Error Then 
Run(@AutoItExe & " /AutoIt3ExecuteScript this.au3")
Else
Run(@AutoItExe & " /AutoIt3ExecuteScript this.au3")
EndIf
WEnd

My little company: Evotec (PL version: Evotec)

Posted

Yeah sorry, Forgot the endif, Oh and, Just a warning, if you run it, itll probly, lag... Very much xD

# MY LOVE FOR YOU... IS LIKE A TRUCK- #
Posted (edited)

...generate RAM usage...

If by usage you mean load RAM then see this old thread:

http://www.autoitscript.com/forum/index.ph...st&p=128212

The first script in that post will load RAM very fast as the variable doubles the variable kept in RAM with each loop... but the second script is closer to what I thought the OP wanted, it will take a while to max out the RAM and swap file.

You might want to read the entire thread first.

Edited by herewasplato

[size="1"][font="Arial"].[u].[/u][/font][/size]

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
×
×
  • Create New...