]> _ Git - vincent-scripts.git/commitdiff
.
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 20 Mar 2025 14:33:29 +0000 (15:33 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 20 Mar 2025 14:33:29 +0000 (15:33 +0100)
rdp/Cube.rdp [new file with mode: 0644]
rdp/cube.bat [new file with mode: 0644]
shortcuts/shortcuts-osohormiguero.ahk [new file with mode: 0644]

diff --git a/rdp/Cube.rdp b/rdp/Cube.rdp
new file mode 100644 (file)
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 (file)
index 0000000..b897188
--- /dev/null
@@ -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 (file)
index 0000000..fd282b8
--- /dev/null
@@ -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