Skip to content
This repository has been archived by the owner on Dec 23, 2018. It is now read-only.

Commit

Permalink
Added option to enable/disable tooltips on eveyr monitor.
Browse files Browse the repository at this point in the history
  • Loading branch information
Giorgio Bonvicini authored and Giorgio Bonvicini committed May 13, 2017
1 parent 160ba10 commit 265b495
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
9 changes: 7 additions & 2 deletions libraries/tooltip.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,13 @@ Toast(params:=0) {

DetectHiddenWindows, On

; Get total number of monitors.
SysGet, monitorN, 80
if (TooltipsOnEveryMonitor == "1") {
; Get total number of monitors.
SysGet, monitorN, 80
} else {
; Consider just the primary monitor.
monitorN = 1
}

; For each monitor we need to create and draw the GUI of the toast.
Loop, %monitorN% {
Expand Down
1 change: 1 addition & 0 deletions settings.ini
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ BackgroundColor=0x1F1F1F
Lifespan=750
; Watch out! Long durations (> 500ms) could cause troubles as the program freezes during the animation.
FadeOutAnimationDuration=100
OnEveryMonitor=1

[KeyboardShortcutsCombinations]
TogglePinWindow=Win, Ctrl, Shift, Q
Expand Down
1 change: 1 addition & 0 deletions virtual-desktop-enhancer.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ global TooltipsLifespan := (TooltipsLifespan != "" and TooltipsLifespan ~= "^\d+
global TooltipsFadeOutAnimationDuration := (TooltipsFadeOutAnimationDuration != "" and TooltipsFadeOutAnimationDuration ~= "^\d+$") ? TooltipsFadeOutAnimationDuration : 100
global TooltipsPositionX := (TooltipsPositionX == "LEFT" or TooltipsPositionX == "CENTER" or TooltipsPositionX == "RIGHT") ? TooltipsPositionX : "CENTER"
global TooltipsPositionY := (TooltipsPositionY == "TOP" or TooltipsPositionY == "CENTER" or TooltipsPositionY == "BOTTOM") ? TooltipsPositionY : "CENTER"
global TooltipsOnEveryMonitor := (TooltipsOnEveryMonitor != "" and TooltipsOnEveryMonitor ~= "^[01]$") ? TooltipsOnEveryMonitor : 1
global TooltipsFontSize := (TooltipsFontSize != "" and TooltipsFontSize ~= "^\d+$") ? TooltipsFontSize : 11
global TooltipsFontInBold := (TooltipsFontInBold != "" and TooltipsFontInBold ~= "^[01]$") ? (TooltipsFontInBold ? 700 : 400) : 700
global TooltipsFontColor := (TooltipsFontColor != "" and TooltipsFontColor ~= "^0x[0-9A-Fa-f]{1,6}$") ? TooltipsFontColor : "0xFFFFFF"
Expand Down

0 comments on commit 265b495

Please sign in to comment.