Hocus Pocus

Hocus Pocus

Nedostatek hodnocení
Auto-fire script
Vytvořil: Nilex
Standalone AutoHotkey script that fires 8/sec when Ctrl is held in DOSBox.
   
Ocenit
Přidat do oblíbených
Oblíbeno
Odebrat z oblíbených
What it does, what is it, and Installation
Script presses Ctrl (default fire button) 8/sec whenever Ctrl is held. Works only when "DOSBox" window is active. I arbitrarily chose fire rate since it felt human but you will regardless be limited by bullets on screen the game permits (1, 2 with upgrade, 3 in one level). Functionally there is no benefit except saving you a surgeon visit after your little pinky inevitably falls off.

Essentially it's a .txt file in .ahk format (AutoHotkey script), compiled into standalone executable so it can work without having AHK installed.
Installation
  1. Download standalone executable[1drv.ms]
  2. Run executable when playing HP
  3. Re-define Fire & Jump controls to Ctrl & Space
    (Change game options > Define key controls)
To terminate script execution simply shut it down.
Last step aligns controls with default ones fresh off the original disk, for sake of compatibility.
Raw script content
; Auto-fire 8 bullets/second when Ctrl is held #IfWinActive DOSBox ~$Control:: While GetKeyState("Ctrl", "P") { Send {Ctrl} Sleep 125 } return
Increased size is because it also contains AutoHotkey interpreter.
Troubleshooting and Disclaimer
If it still doesn't work, rename "dosbox.exe" to "DOSBox.exe". Detection is case sensitive.
Believe me I tired to get around that but manual is hostile to noobs (my 1st AHK script ever).

Tested only on 64-bit Windows OS. No clue if this works on Linux or Mac. Sorry.
You can try re-compiling it in OS-specific AutoHotkey with content directly above.

VirusTotal scan for concerned Paranoid Androids: HERE[www.virustotal.com].
There are 5 false-positives as you can see. Probably a medical cartel conspiracy.
Počet komentářů: 2
Nilex  [autor] 25. čvn. 2022 v 1.27 
Glad to hear it works, and that someone still plays this old gem :)

AHK actually has its own tool built-in so I used that one. There should be an option somewhere. My memory is a bit foggy but try to create ordinary .ahk with script text I posted (replace Ctrl with Alt) and save it. Then right-click on it and context menu should give an option to convert, I think. If not then dig around in AHK while script is opened. It has to be in some obvious place but alas I forgot where.
AinsleyHarriot.exe 25. čvn. 2022 v 0.03 
Thanks for providing this, worked like a charm!!

Although my pinky still gets tired holding down "Ctrl" :')

What did you use to compile the script into an executable? I'm thinking of rolling my own, but with the Steam default key layout (ctrl=Jump, alt=Fire) which I find a bit easier ergonomically.