Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SteamTinkerLaunch on Linux #30

Closed
dillacorn opened this issue Jul 25, 2024 · 2 comments
Closed

SteamTinkerLaunch on Linux #30

dillacorn opened this issue Jul 25, 2024 · 2 comments

Comments

@dillacorn
Copy link

Hey I just wanted to let you know it's possible to install AutoHotkey with SteamTinkerLauncher and run it with "use custom command" and "Fork custom command" checked + "socd.ahk" for allowing socd cleaning on WASD keys.

I got a working .ahk script for a & d keys

#InstallKeybdhook
#UseHook On
#MaxHotkeysPerInterval 200

;; * Pressing both Left & Right buttons cancels each other.
;; ?  Left: a
;; ? Right: d

~a::
    if(GetKeyState("d", "p"))
        SendInput {d up}{f up}
Return

~d::
    if(GetKeyState("a", "p"))
        SendInput {a up}{f up}
Return

~a up::
    if(GetKeyState("d", "p"))
        SendInput {d down}
Return

~d up::
    if(GetKeyState("a", "p"))
        SendInput {a down}
Return

;; ! BSDK

Does your socd app rely on any dependencies I need to install with winetricks? Reason why it can't grab config file when I try to launch it in the same manor? Same issue with "SnapKey" by "cafali" here on github.

I also tried socd application forked for Linux by "it0946" but I think it may only work with native Linux applications?...not sure I've only been testing in a vm so far so that might be my issue.

Please look into this! I'd much rather run your script with Wine/Proton games than AutoHotkey... Worried about anti-cheats primarily.

@dillacorn dillacorn closed this as not planned Won't fix, can't repro, duplicate, stale Jul 26, 2024
@valignatev
Copy link
Owner

Hey! socd doesn't use any 3rd party dependencies apart from pure win32 calls and some libc (for opening and reading config files). It might not be able to grab the config file if wine fucks with current working directories, because exe only looks for the config file right next to it. Forked project for linux should theoretically work with wine as well, because it works directly on the input device, but there are a couple caveats:

  1. It needs to be run under sudo
  2. it creates a new virtual keyboard that it then sends inputs to, and if a particular game listens to one of existing keyboards instead then it won't see inputs from a new device.

I'm currently rewriting my program to also support Linux natively, and hopefully I'll handle that.

@dillacorn
Copy link
Author

cafali/SnapKey#4 (comment)

I found a solution using SnapKey.

Your app may also work with steamtinkerlaunch but I have not tested it in the same manor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants