summaryrefslogtreecommitdiffstats
path: root/borders.ahk
diff options
context:
space:
mode:
authorbreadcat2015-11-21 08:50:14 +0000
committerbreadcat2015-11-21 08:50:14 +0000
commitdfc109b34b1edacde23267cc4740489daecfc972 (patch)
treee318db28a36621d54204220288ec05580cd3c935 /borders.ahk
parent12b05bbc72643b2c3a03b287c88f45f43d177934 (diff)
downloadahka-dfc109b34b1edacde23267cc4740489daecfc972.tar.gz
ahka-dfc109b34b1edacde23267cc4740489daecfc972.tar.bz2
ahka-dfc109b34b1edacde23267cc4740489daecfc972.zip
General improvements
Remove unreliable RDP reload Alter timers Casing and whitespace changes Move unused borders script
Diffstat (limited to 'borders.ahk')
-rw-r--r--borders.ahk117
1 files changed, 0 insertions, 117 deletions
diff --git a/borders.ahk b/borders.ahk
deleted file mode 100644
index a603798..0000000
--- a/borders.ahk
+++ /dev/null
@@ -1,117 +0,0 @@
-
-;doesn't work via include, must run standalone
-
-GoSub, HookWindow
-
-HookWindow:
- ; New Window Hook
- Gui +LastFound
- hWnd := WinExist()
-
- DllCall( "RegisterShellHookWindow", UInt,hWnd )
- MsgNum := DllCall( "RegisterWindowMessage", Str,"SHELLHOOK" )
- OnMessage( MsgNum, "ShellMessage" )
-
- ShellMessage(wParam,lParam) {
- If (wParam = 1) ; HSHELL_WINDOWCREATED := 1
- {
- Sleep, 10
- AdjustWindow(lParam)
- }
- }
-Return
-
-AdjustWindow(id)
-{
- WinId := id
- WinTitle := id = "A" ? "A" : "ahk_id " . id
-
- ; This is to check if the window is shown in the alt-tab menu, you don't want to do it on every single frame
- WinGet, WinExStyle, ExStyle, %WinTitle%
- If (WinExStyle & 0x80)
- {
- Return
- }
-
- WinGetClass, WinClass, %WinTitle%
- WinGet, WinProcess, ProcessName, %WinTitle%
-
- If WinClass In % "CabinetWClass"
- If WinProcess In % "explorer.exe"
- {
- WinSet, Style, -0xC00000, %WinTitle%
- }
- If WinClass In % "ShImgVw:CPreviewWnd" ;windows xp image viewer
- {
- WinSet, Style, -0xC00000, %WinTitle%
- }
- If WinClass In % "MMCMainFrame" ;windows xp mmc panes
- {
- WinSet, Style, -0xC00000, %WinTitle%
- }
- If WinClass In % "MozillaWindowClass" ;firefox
- {
- WinSet, Style, -0xC00000, %WinTitle%
- }
- If WinClass In % "#32770" ;windows xp date/time picker, amongst many other things
- {
- WinSet, Style, -0xC00000, %WinTitle%
- }
- If WinProcess In % "Photoshop.exe"
- {
- WinSet, Style, -0xC00000, %WinTitle%
- }
- If WinProcess In % "sumatrapdf.exe"
- {
- WinSet, Style, -0xC00000, %WinTitle%
- }
- If WinProcess In % "mintty.exe"
- {
- WinSet, Style, -0xC00000, %WinTitle%
- }
- If WinProcess In % "7zFM.exe" ;7zip
- {
- WinSet, Style, -0xC00000, %WinTitle%
- }
- If WinProcess In % "msaccess.exe"
- {
- WinSet, Style, -0xC00000, %WinTitle%
- }
- If WinProcess In % "excel.exe"
- {
- WinSet, Style, -0xC00000, %WinTitle%
- }
- If WinProcess In % "Notepad2.exe"
- {
- WinSet, Style, -0xC00000, %WinTitle%
- }
- If WinProcess In % "outlook.exe"
- {
- WinSet, Style, -0xC00000, %WinTitle%
- }
- If WinProcess In % "winword.exe"
- {
- WinSet, Style, -0xC00000, %WinTitle%
- }
- If WinClass In % "Qt5QWindowIcon" ;owncloud client
- {
- WinSet, Style, -0xC00000, %WinTitle%
- }
- If WinProcess In % "charmap.exe"
- {
- WinSet, Style, -0xC00000, %WinTitle%
- }
- If WinClass In % "mpv"
- {
- WinSet, Style, -0xC00000, %WinTitle%
- }
- If WinClass In % "AutoHotkeyGUI"
- {
- WinSet, Style, -0xC00000, %WinTitle%
- }
- If WinClass In % "RegEdit_RegEdit"
- {
- WinSet, Style, -0xC00000, %WinTitle%
- }
-
-} \ No newline at end of file