ZeroRanger

ZeroRanger

Not enough ratings
Mouse Control with AHK!
By Kuriboh
Small Script made in AHKv2 that lets you control the fighters with mouse movements also remapped the fire buttons to mouse buttons for convinience
   
Award
Favorite
Favorited
Unfavorite
Intro (you can skip this)
Hello,

My first shoot 'em up was Platypus. And in that game you can move your ship with the mouse, so i got used to this and i have no accuracy with arrows.

I know this is a skill issue, but i don't want to learn to move with arrows. It feels unnatural to me. So perhaps there are others like me that have the same ♥♥♥♥♥♥ fingers and prefer to ♥♥♥♥ up their wrist instead :D

So I made this script and decided to share it
Step1: Download AHKv2
First thing to do is download AHK[www.autohotkey.com]and install it.
DOWNLOAD THE V2.0! it does not work with v1

You installed programs b4 you know how to do it
Step2: Make the Script
Next make a new Text Document on ur Desktop paste the code provided here and save the file as a .ahk file




Here is the code:
; ZeroRanger mouse control #Requires AutoHotkey v2.0 #SingleInstance Force ; ─── SETTINGS PollRateHz := 60 pollIntervalMs := 1000 / PollRateHz centerX := 960 centerY := 540 CoordMode("Mouse", "Screen") isActive := false ; ─── TOGGLE SCRIPT +!r:: { global isActive, pollIntervalMs, centerX, centerY isActive := !isActive if isActive { MouseMove centerX, centerY, 0 SetTimer(PollMouse, pollIntervalMs) ShowTip("Mouse control: ON") } else { SetTimer(PollMouse, 0) ShowTip("Mouse control: OFF") } return } ShowTip(text) { ToolTip(text, 10, 10) SetTimer(() => ToolTip("", 10, 10), -900) } ; ─── MOUSE TO ARROWS PollMouse() { global centerX, centerY MouseGetPos &x, &y dx := x - centerX dy := y - centerY if dx > 0 Send("{Right down}") else Send("{Right up}") if dx < 0 Send("{Left down}") else Send("{Left up}") if dy > 0 Send("{Down down}") else Send("{Down up}") if dy < 0 Send("{Up down}") else Send("{Up up}") MouseMove centerX, centerY, 0 } ; ─── FIRE BUTTONS #HotIf (isActive && WinActive("ZeroRanger")) *LButton::{ Send("{z down}") KeyWait("LButton") Send("{z up}") return } *RButton::{ Send("{x down}") KeyWait("RButton") Send("{x up}") return } *XButton1::{ Send("{c down}") KeyWait("XButton1") Send("{c up}") return } *XButton2::{ Send("{Ctrl down}") KeyWait("XButton2") Send("{Ctrl up}") return } #HotIf
Step3: How to use
  • Double click the .ahk file you just made
    *It will live in your system tray so if you wanna close it right click it and then click exit to completely deactivate the script

  • Launch the game!

  • ALT+SHIFT+R to activate the script.
    *once you are ready to control ur chosen Type-B or Type-C warrior press the shortcut! :D

    *a little popup should show up in the corner to inform u that its active like this:


  • Go reach Samsara!
Other
Oh nyo I Alt+F4'd and now my cursor is stuck!!!!

Press the shortcut to deactivate the script Alt+Shift+R

*The script hijacks your cursor to be stuck in the middle of the screen so u don't accidentally move it to your second screen and call your crush on discord (well technically its the middle only if you have a 1920x1080 monitor)

IF ALL FAILS AND IT STILL STUCK RESTART PC

Yes! You can click to shoot!

Mouse button 1 is normal shooty and Mouse button 2 is the other shoory
The side mouse buttons also do the rest of the shooty options

Annoying cursor on my screen jitters while I play

Go Fullscreen
Yes, I don't know how to hide the cursor with the script. If you play in windowed mode the cursor is visible but in fullscreen the game hides ur cursor so do that.

♥♥♥♥♥♥♥♥♥ i lost control in the menus

Yep, the mouse is now your arrow keys.
I would recommend removing ur hand from the mouse when you try to navigate the menu.

Happy Clicking!