99 Bottles of Beer/Shell: Difference between revisions

Content added Content deleted
m (added whitespace before the TOC (table of contents).)
Line 66: Line 66:
<lang AutoHotkey>99bottles()
<lang AutoHotkey>99bottles()
esc::exitapp
esc::exitapp

99bottles(x:=99) {
99bottles(x=99) {
ToolTip, % Format("{1:} {2:} of beer on the wall, {1:L} {2:} of beer.{4:}{3:} {2:} of beer on the wall!"
ToolTip, % Format("{1:} {2:} of beer on the wall, {1:L} {2:} of beer.{4:}{3:} {2:} of beer on the wall!"
,(x=0?"No more":x)
,(x?x:"No more")
,(x=1?"bottle":"bottles")
,(x=1?"bottle":"bottles")
,(x=1?"no more":x=0?99:x-1)
,(x=1?"no more":x=0?99:x-1)
,(x=0 ?"`nGo to the store and buy some more, ":"`nYou take one down pass it around, ")), 500, 300
,(x?"`nYou take one down pass it around, ":"`nGo to the store and buy some more, ")),500,300
sleep 99
sleep 99
x>0?99bottles(x-1):return
x?99bottles(x-1):return
}</lang>
}</lang>