From: Vincent Vanwaelscappel Date: Thu, 20 Mar 2025 14:33:29 +0000 (+0100) Subject: . X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=1a619fd22180799e376911a96e25cb3178995195;p=vincent-scripts.git . --- diff --git a/rdp/Cube.rdp b/rdp/Cube.rdp new file mode 100644 index 0000000..a7cc733 Binary files /dev/null and b/rdp/Cube.rdp differ diff --git a/rdp/cube.bat b/rdp/cube.bat new file mode 100644 index 0000000..b897188 --- /dev/null +++ b/rdp/cube.bat @@ -0,0 +1,9 @@ +@echo off +cd .. +php -f .\bitwarden\bitwarden.php -- tmp "Microsoft (vincent@cubedesigners.com)" +set /p PASSWORD= < .\bitwarden\tmp +del /Q .\bitwarden\tmp +cmdkey /generic:TERMSRV/192.168.10.10 /user:"vincent@cubedesigners.com" /pass:%PASSWORD% +START /B mstsc .\rdp\Cube.rdp +timeout 10 /nobreak +cmdkey /delete:TERMSRV/192.168.10.10 \ No newline at end of file diff --git a/shortcuts/shortcuts-osohormiguero.ahk b/shortcuts/shortcuts-osohormiguero.ahk new file mode 100644 index 0000000..fd282b8 --- /dev/null +++ b/shortcuts/shortcuts-osohormiguero.ahk @@ -0,0 +1,19 @@ +#+v:: +Run "..\\rdp\\Vincent.bat" +return + +#+c:: +Run "..\\rdp\\Cube.bat" +return + +^+":: +Send {U+00AB}{Space}{Space}{U+00BB}{Left}{Left} + +RunWaitOne(command) { + ; WshShell object: http://msdn.microsoft.com/en-us/library/aew9yb99 + shell := ComObjCreate("WScript.Shell") + ; Execute a single command via cmd.exe + exec := shell.Exec(ComSpec " /C " command) + ; Read and return the command's output + return exec.StdOut.ReadAll() +} \ No newline at end of file