Jump to content

Help Programming Keyboard Remapping


Recommended Posts

hey guys so I am trying to remap my WASD keys to my arrows keys. Im writing this myself because i want to be able to quickly turn it on and off without rebooting my computer (I didn't see any software that does that). I have two problems with my script right now. 

1. While holding the keys my laptop track pad wont move. (I need to be able to use the mouse simultaneously)

2. It responds Very choppily. Im going for like a hold till I release button but it seems to be rapidly pressing the key.

 

here is my code any help would be appreciated.

 

#include <Misc.au3>

HotKeySet("w", "remapW")
HotKeySet("a", "remapA")
HotKeySet("s", "remapS")
HotKeySet("d", "remapD")
while 1

WEnd
Func RemapW()
   While _IsPressed(57)
   Send("{UP}")
   WEnd
EndFunc

Func RemapA()
      While _IsPressed(41)
    Send("{LEFT}")
    WEnd
EndFunc

Func RemapS()
      While _IsPressed(53)
    Send("{DOWN}")
    WEnd
EndFunc

Func RemapD()
   While _IsPressed(44)
   Send("{RIGHT}")
   WEnd
EndFunc

 

Edited by giants115
Link to comment
Share on other sites

Welcome to AutoIt and the forum!

Seems you have missed to read the forum rules on your way in. Please do so now!
Especially the part about game automation - which isn't allowed here.
That's why you won't get any help on this subject.

Hope to see you soon with a legitimate question :)

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...