Jump to content

XEyE

Members
  • Posts

    6
  • Joined

  • Last visited

XEyE's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Sorry about that. Im just thinking if that can work, that will be great! ^^ And i got my new code design. Thanks. #Include <HotKey.au3> Global Const $VK_ESCAPE = 0x1B Global Const $VK_F12 = 0x7B Global Const $VK_F11 = 0x7A _HotKeyAssign($VK_F12, 'Start') _HotKeyAssign($VK_F11, 'Pause') ; Assign "CTRL-ESC" with Quit() _HotKeyAssign(BitOR($CK_CONTROL, $VK_ESCAPE), 'Quit') Global $flag = False Global $counter = 1 While 1 if $flag then MainFunc() Else Sleep(10) EndIf WEnd Func Pause() $flag = False EndFunc Func Start() ;init() $flag = true EndFunc Func MainFunc() Sleep(100) $counter=$counter+1 ToolTip($counter) EndFunc ;==>Message Func Quit() exit EndFunc ;==>Quit
  2. Thank you. But the hotkeys do not work when they meet a loop in a funtion. Just simply try this: #Include <HotKey.au3> Global Const $VK_ESCAPE = 0x1B Global Const $VK_F12 = 0x7B ; Assign "F12" with Message() and set extended function call _HotKeyAssign($VK_F12, 'Message', BitOR($HK_FLAG_DEFAULT, $HK_FLAG_EXTENDEDCALL)) ; Assign "CTRL-ESC" with Quit() _HotKeyAssign(BitOR($CK_CONTROL, $VK_ESCAPE), 'Quit') While 1 Sleep(10) WEnd Func Message($iKey) MsgBox(0, 'Hot key Test Message', 'F12 (0x' & Hex($iKey, 4) & ') has been pressed!') while 1 Sleep(100) WEnd EndFunc ;==>Message Func Quit() Exit EndFunc ;==>Quit
  3. Thank you! But when I put your script in Autoit Editor, a couple of errors showed up. How about not cheating and playing the game as it was intended? Why do you think "Apollo Antihack System" is in place? It is to prevent you from attempting what you are now trying to do. Cheating sucks. It isn't nice, it isn't fair, and it most certainly doesn't make you liked by others when they find out you cheated against them.
  4. Thank you so much about this. It works perfectly.
  5. Thank you for your answer. But, to be more direct, im playing an online-game which is protected by "Apollo Antihack System" The HotKeySet in my script works on basicly every window exceipt that game. I guess the game has higher priority. if i still want to do so, does it mean i have to catch the every keyboard event? if so, what should i do in AutoIt?
  6. I want to set a hotkey that can start a function whenever and wherever i want to. (like during games) im sorry if it has been asked before Anyone can help? THANKS!!!!
×
×
  • Create New...