-
Notifications
You must be signed in to change notification settings - Fork 0
/
fallguys_injector.ps1
executable file
·35 lines (34 loc) · 1.1 KB
/
fallguys_injector.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Add-Type -AssemblyName System.Windows.Forms;
Add-Type @"
using System;
using System.Runtime.InteropServices;
public class WindowHandler {
[DllImport("user32.dll")]
public static extern IntPtr GetForegroundWindow();
}
"@
try {
$ActiveHandle = [WindowHandler]::GetForegroundWindow();
$fallguys = Get-Process -Name FallGuys_client_game;
echo $fallguys
if ($ActiveHandle -ne $fallguys.MainWindowHandle) {
echo failed
exit 1
}
$command = ""
switch ($args[0]) {
"dive" { $command = "^" }
"jump" { $command = " " }
"up" { $command = $("wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww" * 20) }
"down" { $command = $("ssssssssssssssssssssssssssssssssssssss" * 20) }
"left" { $command = $("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" * 20) }
"right" { $command = $("dddddddddddddddddddddddddddddddddddddd" * 20) }
"emote1" { $command = "1" }
"emote2" { $command = "2" }
"emote3" { $command = "3" }
"emote4" { $command = "4" }
default { exit }
}
[System.Windows.Forms.SendKeys]::SendWait($command)
} catch {
}