This repository has been archived by the owner on Dec 23, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 271
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added custom desktop names. Added tooltips. Added switching desktops …
…by scrolling over the taskbar.
- Loading branch information
Showing
5 changed files
with
224 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
; Credits to engunneer (http://www.autohotkey.com/board/topic/21510-toaster-popups/#entry140824) | ||
|
||
Toast(params:=0) { | ||
|
||
message := params.message ? params.message : "" | ||
lifespan := params.lifespan ? params.lifespan : 1500 | ||
position := params.position ? params.position : 0 | ||
doWait := params.doWait ? params.doWait : 0 | ||
fontSize := params.fontSize ? params.fontSize : 11 | ||
fontWeight := params.fontWeight ? params.fontWeight : 700 | ||
fontColor := params.fontColor ? params.fontColor : "0xFFFFFF" | ||
backgroundColor := params.backgroundColor ? params.backgroundColor : "0x1F1F1F" | ||
|
||
Global TP_GUI_ID | ||
DetectHiddenWindows, On | ||
SysGet, Workspace, MonitorWorkArea | ||
Gui, 89:Destroy | ||
Gui, 89:-Caption +ToolWindow +LastFound +AlwaysOnTop | ||
Gui, 89:Color, %backgroundColor% | ||
Gui, 89:Font, s%fontSize% c%fontColor% w%fontWeight%, Segoe UI | ||
Gui, 89:Add, Text, xp+25 yp+20 gTP_Fade, %message% | ||
Gui, 89:Show, Hide | ||
TP_GUI_ID := WinExist() | ||
WinGetPos, GUIX, GUIY, GUIWidth, GUIHeight, ahk_id %TP_GUI_ID% | ||
|
||
GUIWidth += 20 | ||
GUIHeight += 15 | ||
|
||
if (position==0) { | ||
NewX := WorkSpaceRight-GUIWidth | ||
NewY := WorkspaceBottom-GUIHeight-12 | ||
} | ||
else { | ||
NewX := (WorkSpaceRight-GUIWidth)/2 | ||
NewY := (WorkspaceBottom-GUIHeight)/2 | ||
} | ||
|
||
Gui, 89:Show, Hide x%NewX% y%NewY% w%GUIWidth% h%GUIHeight% | ||
|
||
DllCall("AnimateWindow","UInt",TP_GUI_ID,"Int",1,"UInt","0x00080000") ; TOAST! | ||
if (lifespan) { | ||
SetTimer, TP_Fade, % lifespan | ||
if(doWait == 1) { | ||
Sleep % lifespan | ||
} | ||
} | ||
Return | ||
} | ||
|
||
TP_Wait() { | ||
Global TP_GUI_ID | ||
WinWaitClose, ahk_id %TP_GUI_ID% | ||
} | ||
|
||
TP_Fade() { | ||
DllCall("AnimateWindow","UInt",TP_GUI_ID,"Int",100,"UInt","0x00090000") ; Fade out when clicked | ||
Gui, 89:Destroy | ||
Return | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.