Skip to content

Commit

Permalink
Update launchpad.ahk
Browse files Browse the repository at this point in the history
Update to Launchpad 1.337 BETA. added tipping hotkey. expect bugs
  • Loading branch information
5k1ttl3 committed Feb 15, 2014
1 parent a3168ec commit a4e57c0
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions launchpad.ahk
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
gui, Color, F2EDE0
Gui, Add, Picture, x73 y0 w300 h300 , doge.png

Gui, Add, Picture, x0 y0 w430 h150 , doge.png
Gui, Add, Edit, x12 y160 w200 h30 vTipAmmountEdit
Gui, Add, Text, x215 y160 w150 h30 , Set Default Tip Ammount in DOGE
Gui, Add, Button, x220 y330 w60 h30 , datadir
Gui, Add, Text, x280 y330 w150 h30 , Set your Data Directory Here
Gui, Add, Button, x220 y370 w60 h30 , exedir
Expand All @@ -21,7 +22,6 @@ Gui, Show




;-----------------------------------------Read config.txt file into memory
FileReadLine, line, config.txt, 1
if ErrorLevel {
Expand All @@ -36,6 +36,17 @@ msgbox Looks like its your first time using DogeCoin Launchpad! (That, or someth
}
exedir=%line%
GuiControl,, ExeDirEdit, %exedir%
FileReadLine, line, config.txt, 3
if ErrorLevel {
msgbox Looks like its your first time using DogeCoin Launchpad! (That, or something went horribly wrong)
}
tipammount=%line%
GuiControl,, TipAmmountEdit, %tipammount%
Return

;---------------------------------------Code to insert Tip Ammount - escape chars around PLUS and slashes necessary
~^LButton::
send {+}`/u`/dogetipbot %tipammount% doge
Return


Expand Down Expand Up @@ -86,6 +97,7 @@ return


ButtonSaveSettings:

Gui, Submit, NoHide ;this command submits the guis' datas' state

;--------------------------------------remove old config.txt
Expand All @@ -95,7 +107,7 @@ FileAppend,
(
%datadir%
%exedir%

%TipAmmountEdit%
), config.txt
return

Expand Down

0 comments on commit a4e57c0

Please sign in to comment.