Skip to content

Commit 5f47c19

Browse files
committed
Random Changes
1 parent 09e3221 commit 5f47c19

5 files changed

+39
-15
lines changed

AHK.code-workspace

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,9 @@
44
"path": "."
55
}
66
],
7-
"settings": {}
7+
"settings": {
8+
"docwriter.custom.template": "; {{summary}}\n{{#params}}\n; @param {{name}} ({{type}}) - {{paramExplained}}\n{{/params}}\n{{#returnExplained}}\n; @returns {{.}}\n{{/returnExplained}}\n\n; Generated on {{date}}",
9+
"docwriter.custom.author": "github.com/ggoodwin",
10+
"docwriter.style": "Custom"
11+
}
812
}

EncryptedTextFile.ahk

+32-11
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,19 @@ if not A_IsAdmin
33
Run *RunAs "%A_ScriptFullPath%"
44
ExitApp
55
}
6+
#NoEnv
67

78
SendMode Input
89
SetWorkingDir, %A_ScriptDir%
910

1011
#SingleInstance, Force
1112

13+
#IfWinActive ahk_class CabinetWClass
14+
^+p::
15+
pwshHere()
16+
return
17+
#IfWinActive
18+
1219
^+t::
1320

1421
InputBox, userInput, Enter file name, , , 150, 100
@@ -23,32 +30,46 @@ SetWorkingDir, %A_ScriptDir%
2330

2431
Exit
2532

26-
^+m::
33+
^+d::
2734

2835
InputBox, userInput, Enter file name, , , 150, 100
2936

30-
FileAppend, Secure File, *E:\Github\octocrypto\markdown\%userInput%.md
37+
FileAppend, Secure File, *C:\Users\gregg\Documents\MEGAsync\Documents\%userInput%.docx
3138

32-
; RunWait, powershell.exe -File "Encrypt.ps1" "C:\Users\gregg\Documents\MEGAsync\Markdown\%userInput%.md", , Hide
39+
RunWait, powershell.exe -File "Encrypt.ps1" "C:\Users\gregg\Documents\MEGAsync\Documents\%userInput%.docx", , Hide
3340

3441
Sleep, 5000
3542

36-
; Run, C:\Users\gregg\Documents\MEGAsync\Markdown\%userInput%-md.axx
37-
38-
Run, E:\Github\octocrypto\markdown\%userInput%.md
43+
Run, C:\Users\gregg\Documents\MEGAsync\Documents\%userInput%-docx.axx
3944

4045
Exit
4146

42-
^+c::
47+
^+f::
4348

4449
InputBox, userInput, Enter file name, , , 150, 100
4550

46-
FileAppend, Secure File, *C:\Users\gregg\Documents\MEGAsync\Crypto\%userInput%.txt
51+
FileAppend, Secure File, *C:\Users\gregg\Documents\MEGAsync\Documents\%userInput%.pdf
4752

48-
RunWait, powershell.exe -File "Encrypt.ps1" "C:\Users\gregg\Documents\MEGAsync\Crypto\%userInput%.txt", , Hide
53+
RunWait, powershell.exe -File "Encrypt.ps1" "C:\Users\gregg\Documents\MEGAsync\Documents\%userInput%.pdf", , Hide
4954

5055
Sleep, 5000
5156

52-
Run, C:\Users\gregg\Documents\MEGAsync\Crypto\%userInput%-txt.axx
57+
Run, C:\Users\gregg\Documents\MEGAsync\Documents\%userInput%-pdf.axx
5358

54-
Exit
59+
Exit
60+
61+
pwshHere(){
62+
If WinActive("ahk_class CabinetWClass") || WinActive("ahk_class ExploreWClass") {
63+
If WinActive("ahk_class CabinetWClass") || WinActive("ahk_class ExploreWClass") {
64+
WinHWND := WinActive()
65+
For win in ComObjCreate("Shell.Application").Windows
66+
If (win.HWND = WinHWND) {
67+
dir := SubStr(win.LocationURL, 9) ; remove "file:///"
68+
dir := RegExReplace(dir, "%20", " ")
69+
Break
70+
}
71+
}
72+
Run, pwsh, % dir ? dir : A_Desktop
73+
WinActivate, "Administrator: C:\Program Files\PowerShell\7\pwsh.exe"
74+
}
75+
}

OpenShell.ahk

-1
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,4 @@ If WinActive("ahk_class CabinetWClass") || WinActive("ahk_class ExploreWClass")
3535
Run, pwsh, % dir ? dir : A_Desktop
3636
WinActivate, "Administrator: C:\Program Files\PowerShell\7\pwsh.exe"
3737
}
38-
3938
}

OpenVPN.ahk

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ SetTimer, OpenVMWare, 300000
1818
Return
1919

2020
OpenVMWare:
21-
WinRestore, vk1478129
21+
WinRestore, vk1524599
2222
Sleep 1000
2323
Click, 2139, 949
2424
Sleep 1000
25-
WinMinimize, vk1478129
25+
WinMinimize, vk1524599
2626
Return
2727

2828
; This is the function that gets called when the hotkey is pressed

ankhbotdata_botnamehere.xlsx

23.3 KB
Binary file not shown.

0 commit comments

Comments
 (0)