Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
SaifAqqad committed Jun 14, 2020
0 parents commit 1cb6426
Show file tree
Hide file tree
Showing 11 changed files with 1,083 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

*.exe
*.gif
*.zip
.vscode
24 changes: 24 additions & 0 deletions Lib/OSD.ahk
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Global OSD_state:= 0 ;0 -> closed ;1 -> open
Global OSD_txt:=
OSD_spawn(txt, OSD_Accent ){
if (OSD_state = 0){
SetFormat, integer, d
Gui, Color, 191919, %OSD_Accent%
Gui, +AlwaysOnTop -SysMenu +ToolWindow -caption -Border
WinSet, Transparent, 230, ahk_class AutoHotkeyGUI
Gui, Font, s11, Segoe UI
Gui, Add, Text, c%OSD_Accent% vOSD_txt W165 Center, %txt%
SysGet, MonitorWorkArea, MonitorWorkArea, 0
OSD_yPos:= MonitorWorkAreaBottom * 0.95
Gui, Show, AutoSize NoActivate xCenter y%OSD_yPos%
OSD_state:= 1
}else{
GuiControl, Text, OSD_txt, %txt%
}
SetTimer, OSD_destroy, 700
}
OSD_destroy(){
Gui, Destroy
OSD_state := 0
SetTimer, OSD_destroy, Off
}
Loading

0 comments on commit 1cb6426

Please sign in to comment.