;Remember to open macro using admin, or some macros may not work. #Persistent ;To keep a script running -- such as one that contains only timers #SingleInstance force ;Reloads macro if you try to open the macro twice ;#################################### USEFUL LITTLE MACROS ############################################ ^!r::reload ;Reloads the script Break:: ;suspends and pauses the script suspend pause return ^!e::edit ;Edit the script ^SPACE:: Winset, Alwaysontop, toggle, A ;Toggles the window to always be on top #g::Run http://www.google.com/search?q=%clipboard% ;Googles whatever is copied on your clipboard with your default browser. ;#################################### WC3 MACROS ############################################ ;Message macros: !9::Sendinput {enter}/w clan.enterprise {!}g island defense{Enter}{Enter}/whois entid{Enter} ;Does /whois and requests lobby status ^!+a::clipboard =  ;copies the apple to clipboard !2::clipboard = [ENT] island defense # ;copies partial game name to clipboard !4::sendinput ^{enter}take cover{enter} ;Sends "take cover" to allies !8::Sendinput {Enter}-cam 180{Enter}{Enter}/fps{Enter} ;Turns on FPS counter + cam macro #f12:: ;Make borderless window bordered, works for all windows WinGetTitle, currentWindow, A IfWinExist %currentWindow% { WinSet, Style, +0x800000 WinSet, Style, +0x40000 WinSet, Style, +0xC00000 WinMove, , , 0, 0, (A_ScreenWidth/2), A_ScreenHeight-42 ;resizes window to half screen width and screen heigh - 42 pixels. } return #f11:: ;Turn window into a borderless window WinGetTitle, currentWindow, A IfWinExist %currentWindow% { WinSet, Style, -0xC00000,a ; remove the titlebar and border(s) WinSet, Style, -0x40000,a ; remove sizing border WinMove, a, , 0, 0, A_ScreenWidth, A_ScreenHeight ; move the window to 0,0 } return #IfWinActive, Warcraft III ahk_class Warcraft III ;Anything under this will only work if you are on the war3 window. ;Inventory macros !q::Send {Numpad7} ;alt + q for inventory top left !w::Send {Numpad8} ;alt + w for inventory top right !a::Send {Numpad4} ;alt + a for inventory left !s::Send {Numpad5} ;alt + s for inventory right !z::Send {Numpad1} ;alt + z for inventory bottom left !x::Send {Numpad2} ;alt + x for inventory bottom right