ctrl+win+q flips a coin, +w flips a ternary coin (-1/0/1), +e a 6-sided die, +r a random digit from 0 to 9
thanks to a happy little accident, you can press multiple buttons in a row and they'll show up in the same window
default display time is 1 second, scroll down to edit
Code: Select all
^#q::
Random, coin, 0, 1
coincolor := "ffffff"
Gosub, coin
Return
^#w::
Random, coin, 0, 2
if (coin = 2)
coin := "T"
coincolor := "ffff00"
Gosub, coin
Return
^#e::
Random, coin, 1, 6
coincolor := "00ffff"
Gosub, coin
Return
^#r::
Random, coin, 0, 9
coincolor := "ff00ff"
Gosub, coin
Return
coin:
Gui, coin:+AlwaysOnTop -Caption +ToolWindow
Gui, coin:Color, 000000
Gui, coin:Margin, 10, 0
Gui, coin:Font, s40 bold c%coincolor% q4, Courier New
Winset, ExStyle, +0x20, coin ; this makes the window unclickable
Gui, coin:Add, Text, y5, %coin%
Gui, coin:Show, xCenter yCenter AutoSize NA
SetTimer, coindestroy, -1000 ; EDIT TIME IN MILLISECONDS
Return
coindestroy:
Gui, coin:Destroy
Return
Code: Select all
coin:
Gui, coin:+AlwaysOnTop -Caption +ToolWindow
Gui, coin:Color, 000000
Gui, coin:Margin, 10, 0
Gui, coin:Font, s40 c%coincolor% q3, Determination Mono
Winset, ExStyle, +0x20, coin
Gui, coin:Add, Text, y0 h68, %coin%
Gui, coin:Show, xCenter yCenter AutoSize NA
SetTimer, coindestroy, -1000
Return