Author Topic: AutoHotKey + JoyStick + Imgur  (Read 2101 times)

http://www.youtube.com/watch?v=ylqGB8cmG5U&feature=youtu.be

Figured out I have a Genius Joystick laying around in my house, and I have lots of experience with AutoHotKey and love using it to customize my keyboard's and mouse's crap buttons nobody uses. Plugged in my Joystick, seen it's working, and seen AutoHotKey had JoyStick button inputs. Imgur, a website I frequent when looking at pictures of cats and stuff, has keyboard shortcuts so was easily modable.

Code: [Select]

joy1::
send {Right}
return

joy2::
send {Left}
return

joy3::
send {PgUp}
return

joy4::
send {PgDn}
return

joy5::
send {NumpadAdd}
return

joy8::
send {NumpadSub}
return

joy6::
send {Numpad0}
return

joy7::
send {Alt Down}
send {Tab}
send {Alt Up}
return


Joy 1: Next image.
Joy 2: Previous image.
Joy 3: Page up.
Joy 4: Page down.
Joy 5: Upvote.
Joy 8: Downvote
Joy 6: Favourite
Joy 7: Alt-Tab, for when Steam events start and gain focus and I am too lazy to get out of bed and everything.

The hat switch was also scripted to act as scrollwheel, but the script is a bit bigger so you'll have to Google that.
This is also possible with Gamepads.

If you don't have the same joystick as me you will most likely have different inputs. Use this Unity online app http://dal-acm.ca/~dice/joytest/joystick test.html to see what is what. Add +1 to the joy value because there's no such thing as "joy0" in AHK.

The point of this is that I can just plug my JoyStick at the front of my computer and lay in bed (which is right in front of the computer) and just browse image and vote if needed and stuff, without going to the PC if I get a Steam Event.

Planning on buying a gamepad soon because it has more buttons, and I can add other functions to it, like also switching between Steam chat windows (Alt+left/right for the record) if I receive a message then see if it's worth responding or not.



Has anyone else had experience with AutoHotKey? What do you use it for?

Except for this I also made my mouse have auto-save and auto-ctrl-w on the side, for 1 handed fapping... browsing. Previously also made chat inserters, a gui for emoticons and some Minecraft auto-mine scripts (for instance I toggled a button to make it keep LMB pressed and walk forward, though highly impractical if lava or caves.)

I use Autohotkey for several things. It's so handy.
My mouse3/mouse4 are used to toggle rapid left/right clicking. I also used it to evade Planetside's afk detection but it failed. (essentially i made a bot that jumped and looked around; i think it died)

There is also a part in the final mission of GTA 4 where you have to tap space really fast. I made a script that did just that but it didn't work either. It seems to be that the requirement for pressing space is based on frame rate; so with my great computer, it was impossible to press space fast enough.

<3 ahk

As for your auto mining, you could just have your bot crouch. In order to avoid getting stuck above cliffs, you could have it perform random turns. Of course, if it mined into lava above or at it's level, you would be boned.

I use Autohotkey for several things. It's so handy.
My mouse3/mouse4 are used to toggle rapid left/right clicking. I also used it to evade Planetside's afk detection but it failed. (essentially i made a bot that jumped and looked around; i think it died)

There is also a part in the final mission of GTA 4 where you have to tap space really fast. I made a script that did just that but it didn't work either. It seems to be that the requirement for pressing space is based on frame rate; so with my great computer, it was impossible to press space fast enough.

<3 ahk

As for your auto mining, you could just have your bot crouch. In order to avoid getting stuck above cliffs, you could have it perform random turns. Of course, if it mined into lava above or at it's level, you would be boned.

Certain game have that kind of non-intentional (it's just lag) detection.
I managed to usually avoid it using a Sleep timer between actions, and keys instead of being tapped (which is what send/sendinput does) I have them send being pressed down, a tiny sleep timer then the next is them being released.

Code: [Select]
send {Space Down}
sleep 50
send {Space Up}

Certain game have that kind of non-intentional (it's just lag) detection.
I managed to usually avoid it using a Sleep timer between actions, and keys instead of being tapped (which is what send/sendinput does) I have them send being pressed down, a tiny sleep timer then the next is them being released.

Code: [Select]
send {Space Down}
sleep 50
send {Space Up}
yeah i just did space. that's probably why.