Sign in to follow this  
Followers 0
blublub

idle and cpu

7 posts in this topic

how to make script idle and take ass less cpu as possible sleep takes over 10% and timerinit and timerdiff takes about 20-40 a Do...(nothing)...Until 1-1=1 takes 70-99

i just have some keybinds and i need it to idle and wait keys that are hotkeyset

Share this post


Link to post
Share on other sites



While 1
Sleep(100)
Wend

Is about as good as it gets.



Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

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

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

k its not so bad anyway but whats with the script HotKeySet if i press the button again it wont work even when i know the func of the hotkeyset ended becouse ive added a tooltip at the end

omg it so buggy some of the buttons wont even press when ill click the mouse when in the script...

shudl i use controlsend ?

Edited by blublub

Share this post


Link to post
Share on other sites

You need to show some code if you require answers to specific problems.



Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

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

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Global $howl
HotKeySet("{F1}", "howl")
Func howl()
    $howl = NOT $howl
    If $howl Then
        ControlSend("Pirate King Online 1.32 - 00005","","","{F2}")
        Sleep (100)
        ControlSend("Pirate King Online 1.32 - 00005","","","{INSERT}")
        Sleep(4900)
        ControlSend("Pirate King Online 1.32 - 00005","","","{INSERT}")
        sleep(1000)
        traytip("rdy","howl",100)
    EndIf
EndFunc

ahhh sry it was the game that wasnt allowing it only one problem left

why it dosnt work the 2 time i just have to click 2 times afther the first try and same happens even if i click along ago and it for sure ends it that time

eh i know now becouse hotkeyset works like on/off can you just auto off it when done that script ?

Edited by blublub

Share this post


Link to post
Share on other sites

the help in autoit tells to change like this but it dosnt work

Global $howl
HotKeySet("{F1}", "howl")
Func howl()
    $howl = NOT $howl
    If $howl Then
        ControlSend("Pirate King Online 1.32 - 00005","","","{F2}")
        Sleep (100)
        ControlSend("Pirate King Online 1.32 - 00005","","","{INSERT}")
        Sleep(4900)
        ControlSend("Pirate King Online 1.32 - 00005","","","{INSERT}")
        sleep(1000)
        traytip('rdy','howl',1)
    EndIf
    HotKeySet("{F1}")
    Send("{F1}")
    HotKeySet("{F1}", "howl")
EndFunc

what im i doing wrong ?

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

it works with _Ispressed() fine so nvm too bad i dont know how to check alt+key or ctr,shift +key

thx for help BigDod

Edited by blublub

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