Home » MODDING HQ 1.13 » v1.13 General Development Talk » Using WASD keys for scrolling (With ahk script)
Using WASD keys for scrolling[message #359152] Sun, 08 March 2020 03:20 Go to next message
battlesquid is currently offline battlesquid

 
Messages:5
Registered:March 2020
Hey!

New guys here, first thanks a lot for v1.13 that makes ja2 possible for me to enjoy.

As years in almost every game I played it's become a standard with WASD for moving around in FPS, and this has also become pretty standard for scrolling maps in games. The arrow keys are too far away and makes me have to move my hand every time I need to scroll, which in JA2 is pretty often! So I need my WASD keys to work as arrow keys to not feel encumbered...

Anyway I did not find this possible after searching around in these forums/looking through config files etc. I did find others using autohotkey scripts for other things, and I tried to do this for WASD..


#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
#SingleInstance force
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.

; Scroll the tactical screen using the typical WASD keys
w::Send {Up}
a::Send {Left}
s::Send {Down}
d::Send {Right}


While this works in the strategic view, it does not work where I need it, in the tactical view... The existing actions tied to the w,a,s and d keys are not triggered, but neither is the scrolling. The arrow keys work as usual though. I've tried playing around with the alternative methods like SendInput and using virtual keys etc. but to no avail. Anyone has a clue what I can do to make this work as I want to?

Report message to a moderator

Private
Re: Using WASD keys for scrolling[message #359153 is a reply to message #359152] Sun, 08 March 2020 12:26 Go to previous message
silversurfer

 
Messages:2793
Registered:May 2009
You can use the mouse for scrolling too or you could click on the minimap and move the tactical window there.


Wildfire Maps Mod 6.07 on SVN: https://ja2svn.mooo.com/source/ja2/branches/Wanne/JA2%201.13%20Wildfire%206.06%20-%20Maps%20MOD

Report message to a moderator

Lieutenant
Previous Topic: Update via SVN the german dir
Next Topic: ja2MapTool
Goto Forum:
  


Current Time: Fri Mar 29 06:37:53 GMT+2 2024

Total time taken to generate the page: 0.01093 seconds