[Other] AutoHotkey

Discussion in 'Programming' started by disturbedno0b, Dec 5, 2010.

Thread Status:
Not open for further replies.
  1. disturbedno0b

    disturbedno0b Well-Known Member

    I found this program: AutoHotkey and it seems its pretty awesome.
    I'm trying to make hotkey for DotA using complete script, but i came to problem:

    Code:
    #SingleInstance force ;force a single instance
    #HotkeyInterval 0 ;disable the warning dialog if a key is held down
    #InstallKeybdHook ;Forces the unconditional installation of the keyboard hook
    #UseHook On ;might increase responsiveness of hotkeys
    #MaxThreads 20 ;use 20 (the max) instead of 10 threads
    SetBatchLines, -1 ;makes the script run at max speed
    SetKeyDelay , -1, -1 ;faster response (might be better with -1, 0)
    ;Thread, Interrupt , -1, -1 ;not sure what this does, could be bad for timers
    
    ;; Make the icon the TFT icon
    regread, war, HKEY_CURRENT_USER, Software\Blizzard Entertainment\Warcraft III, ProgramX
    menu, tray, icon, %war%, 1, 1
    
    
    
    #ifWinActive ahk_class Warcraft III
    {
    Send {Space}::send, {Numpad1}
    }
    !w::send, {Numpad2}
    !e::send, {Numpad3}
    !r:send, {Numpad4}
    !t::send, {Numpad5}
    !f::send, {Numpad6}
    return
    WheelDown::
    {
    Send {Enter}Button MISSING{Enter}'
    }
    return
    MButton::
    {
    Send {Enter}MIddle MISSING{Enter}'
    }
    return
    WheelUp::
    {
    Send {Enter}Top MISSING{Enter}'
    }
    return

    Warcraft for some reason doesn't read the 'Clicked Space' which will activate Inventory slot 1, also i tried with CapsLock neither it is read too. Anyone can help?
     
  2. disturbedno0b

    disturbedno0b Well-Known Member

  3. disturbedno0b

    disturbedno0b Well-Known Member

    Someone close/remove this, it seems i fixed it... sorry!
     
  4. XaTrIxX

    XaTrIxX Moderator

    Closed on request.
     
Thread Status:
Not open for further replies.