

If WinActive("Titan Quest: Immortal Throne") || WinActive("Titan Quest") Decide which set of coordinates to use in the game. Click Down that comes at the end of the loop, or else the user would press a button and continue walking towards Torchlight) do not receive a single click and only register a Click Down. If WinActive("Titan Quest: Immortal Throne") || WinActive("Titan Quest") || WinActive("Torchlight") || WinActive("Diablo") || WinActive("Diablo 2") || WinActive("Diablo II") Wasn't quite sure of the Diablo window titles. S::Numpad2 Remaps intrusive keys to prevent then from opening the skill window and automap. Right_coord := x_axis_centre+round(total_width*0.08) Left_coord := x_axis_centre-round(total_width*0.08) Up_coord := y_axis_centre-round(total_height*0.13)ĭown_coord := y_axis_centre+round(total_height*0.1) Y_axis_centre := round(total_height*0.51) This is corrected for true horizontal movement. Right_coord := x_axis_centre+round(total_width*0.085) Left_coord := x_axis_centre-round(total_width*0.085) Up_coord := y_axis_centre-round(total_height*0.16)ĭown_coord := y_axis_centre+round(total_height*0.06) Y_axis_centre := round(total_height*0.575) This is corrected for true horizontal movement. WinGetPos, total_width, total_height, A In case of running in Windowed mode, or in a resolution not matching the Desktop's. SetWorkingDir %A_ScriptDir% Ensures a consistent starting directory. SendMode Input Recommended for new scripts due to its superior speed and reliability. #NoEnv Recommended for performance and compatibility with future AutoHotkey releases. You'd basically use WASD while exploring or travelling, and switch to normal mouse control when Sadly, the script *must* hijack your mouse because of user permission problems when trying to pass 'invisible' mouseclicks Does not mess up your typing outside the game. Works across all resolutions, and in both Ğnables WASD controls in popular top-down action RPGs like Titan Quest, Diablo et al. Code: Select all WASD Movement in top-down action RPGs v2
