Torchlight II

Torchlight II

View Stats:
Simpler AHK Script WASD movement Prototype
#SingleInstance force Offset := 70 W:: if GetKeyState("A") MouseMove, (Offset * -1), (Offset * -1), 0, R else if GetKeyState("D") MouseMove, Offset, (Offset * -1), 0, R else MouseMove, 0, (Offset * -1), 0, R Sleep 50 Click CenterMouse() return S:: if GetKeyState("A") MouseMove, (Offset * -1), (Offset + 50), 0, R else if GetKeyState("D") MouseMove, Offset, (Offset + 50), 0, R else MouseMove, 0, (Offset + 50), 0, R Sleep 50 Click CenterMouse() return A:: if GetKeyState("W") MouseMove, (Offset * -1), (Offset * -1), 0, R else if GetKeyState("S") MouseMove, (Offset * -1), Offset, 0, R else MouseMove, (Offset * -1), 0, 0, R Sleep 50 Click CenterMouse() return D:: if GetKeyState("W") MouseMove, Offset, (Offset * -1), 0, R else if GetKeyState("S") MouseMove, Offset, Offset, 0, R else MouseMove, Offset, 0, 0, R Sleep 50 Click CenterMouse() return ^.::Click right ; Questo permette di premere e tenere premuto il pulsante sinistro del mouse invece di fare solo un clic singolo. È utile per le operazioni di trascinamento. ^,:: if (A_PriorHotKey = A_ThisHotKey) return Click down return ^, up::Click up CenterMouse() { CoordMode, Mouse, Screen x := A_ScreenWidth / 2 y := A_ScreenHeight / 2 MouseMove, x, y }

This script will allow WASD key movement, and would pe easier to use this with a gamepad as well using Xpadder.

The mouse will return to the center each time a direction i press unfortunaly i would like the mouse to stay while the key is pressed but I am not expierence enogh.

This is a less advance script trying to improve and simplefy movement.

Pressing S will sliglty return the coursor 50 pixel down from cencer to avoid getting stuck by the player model other direction will return to the center as normal.
Last edited by 𓅃 スノ 𓅃; Jul 8, 2023 @ 6:00pm
< >
Showing 1-3 of 3 comments
Great news for players who prefer WASD movement controls! Thank you so much for sharing this @スノ !
𓅃 スノ 𓅃 Jul 9, 2023 @ 7:44am 
Originally posted by T☢rchM☢dders:
Great news for players who prefer WASD movement controls! Thank you so much for sharing this @スノ !

https://steamcommunity.com/sharedfiles/filedetails/?id=3001338799
Hey I have re-written the script:
the updated version works way better v0.3 i will add extra option in future for now the new script works as intented.
Last edited by 𓅃 スノ 𓅃; Jul 9, 2023 @ 7:45am
< >
Showing 1-3 of 3 comments
Per page: 1530 50