blublub Posted November 25, 2006 Posted November 25, 2006 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
BigDod Posted November 25, 2006 Posted November 25, 2006 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
blublub Posted November 25, 2006 Author Posted November 25, 2006 (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 November 25, 2006 by blublub
BigDod Posted November 25, 2006 Posted November 25, 2006 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
blublub Posted November 25, 2006 Author Posted November 25, 2006 (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 November 25, 2006 by blublub
blublub Posted November 25, 2006 Author Posted November 25, 2006 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 ?
blublub Posted November 25, 2006 Author Posted November 25, 2006 (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 November 25, 2006 by blublub
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now