Jump to content

Recommended Posts

Posted

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

Posted

While 1
Sleep(100)
Wend

Is about as good as it gets.


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

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
Posted

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


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

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
Posted

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 ?

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

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
  • Recently Browsing   0 members

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