Jump to content
  • 0

[Guide] How to have REAL Keybindings


Heffernan

Question

Hello,

 

as many have noticed Keybinding doesnt work in SP as its a Console Port, so i wrote a simple guide to have Auto-It use the Arrow Buttons.

 

Download and Install: http://ahkscript.org/download/1.1/AutoHotkey111403_Install.exe

 

its a simple tool that lets you redifine what is done on a button press

 

now load the programm, click on "File > Edit Script" and insert the following

#InstallKeybdHook
#InstallMouseHook
#Persistent
#SingleInstance force
SetBatchLines, -1

#UseHook On
settimer, hookCheck, 1000
return

; these are just test hotkeys which will make
; Douchebag fart 
; replace with your own.
Up::w
Down::s
Left::a
Right::d 
Delete::Space
RShift::LShift
send {click R}
return 

; This hotkey will fire if AHKs hook is still
; positioned before south parks
$vkFF::
lastTick := A_TickCount 
return 

hookCheck:
; Raise send level so will activate AHKs own hotkeys
sendlevel 1
; send a non-existent key which will do nothing
; must be sendEvent - sendInput removes the hook during the send
; command, thereby preventing us from detecting it
SendEvent {VKFF}
sleep 200
; If AHK hasn't detected the sent key,
; then AHK's hook is now after SP:SoT and hotkeys wont work
; either reload the script or perform a sendInput
; sendInput removes and then reinstalls AHKS low 
; level hook.
if (A_TickCount - lastTick > 1500)
	sendInput {VKFF}{click 0} ; could replace this with a reload
	;reload
return

simple save the Textfile, and use "File > Reload Script"

 

there u have it

 

W = UP

S = DOWN

A = LEFT

D = RIGHT

DELETE = ACTION

SHiFT RIGHT = SHIFT LEFT

 

Done.

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

It's generally considered bad practice to link directly to downloads instead of to the download page. One of those established Internet etiquette things (I hate the term netiquette :p), better to acknowledge the author of the software by linking to their homepage instead. This also ensures the other party can get the link to the current version of the software, instead of an archived version.

 

It's not uncommon for forums and other communities to have blanket bans on hotlinks like that, and indeed some ban the use of URL shorteners completely (a stance I support totally). Sure both can be said to be safe more often than not, but it only takes one exception.

 

I'd further point out that pointing out that it's a legitimate piece of software is not a meaningful method of protection since trojans by their very nature masquerade as legitimate software.

 

I'm not accusing you of foul play, nor was the other poster necessarily, indeed I know that particular site is fine. It's just bad security practice.

L I E S T R O N G
L I V E W R O N G

Link to comment
Share on other sites

×
×
  • Create New...