Jump to content

CPU usage


Recommended Posts

Hello,

A couple minutes ago I fnished a program, but when I try it my cpu usage goes to 51% is there something wrong? I have been searching in the process list and from then on I knew that it was my program that uses 51% of my CPU. Can somebody please help me?

Kind Regards,

PcExpert

P.S. No errors showed up when I compiled the program

Link to comment
Share on other sites

Hello,

A couple minutes ago I fnished a program, but when I try it my cpu usage goes to 51% is there something wrong? I have been searching in the process list and from then on I knew that it was my program that uses 51% of my CPU. Can somebody please help me?

Kind Regards,

PcExpert

P.S. No errors showed up when I compiled the program

Post your script so that we can see what is wrong.


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Link to comment
Share on other sites

Ok, here it is:

Opt("TrayIconHide", 1)

Run ("Auto Clicker.exe")

WinWaitActive("Auto Clicker")

MouseClick("left", 559, 390, 1)

Send ("{HOME}")

Send ("{RIGHT}")

Send ("7")

MouseClick("left", 472, 431, 1)

MouseClick("left", 271, 754, 1)

Do

$x = 833

$y = 652

$Color = 0x392010

If (PixelGetColor($x, $y) == $Color) Then

MyFunction()

EndIf

Until PixelGetColor($x, $y) == $Color

Func MyFunction()

MsgBox(0, 'Found', 'The color was found at those coords')

EndFunc

MouseClick("left", 774, 222, 1)

MouseClick("left", 751, 224, 1)

MouseClick("left", 787, 223, 1)

MouseClick("left", 824, 247, 1)

MouseClick("left", 777, 239, 1)

Link to comment
Share on other sites

It returns errors. So I woul'd like to ask you (w0uter) a question: Woul'd you like to place the script you edited in my script? Then I can be sure that it works

Opt("TrayIconHide", 1)
Run ("Auto Clicker.exe")
WinWaitActive("Auto Clicker")
MouseClick("left", 559, 390, 1)
Send ("{HOME}{RIGHT}7")
MouseClick("left", 472, 431, 1)
MouseClick("left", 271, 754, 1)

$x = 833
$y = 652
$Color = 0x392010

While 1
If PixelGetColor($x, $y) = $Color Then exitloop
sleep(10)
Wend

MyFunction()


MouseClick("left", 774, 222, 1)
MouseClick("left", 751, 224, 1)
MouseClick("left", 787, 223, 1)
MouseClick("left", 824, 247, 1)
MouseClick("left", 777, 239, 1)

Func MyFunction()
    MsgBox(0, 'Found', 'The color was found at those coords')
EndFunc

My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...