Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include UrlDownloadToVar.ahk
- #UseHook
- #Persistent
- #SingleInstance force
- #InstallKeybdHook
- wnTitle = Memberliste Example
- backgroundY := 10
- nameY := 20
- windowWidth := 479
- windowHeight := 0
- url =
- URLDownloadToVar(url, result)
- if(result != ""){
- Loop, Parse, result, ~
- {
- Gui, Add, Picture, x22 y%backgroundY% w430 h40 , %A_ScriptDir%/res/bar.png
- Gui, Font, cWhite
- Gui, Add, Text, x32 y%nameY% w410 h20 vText%A_LoopField%, %A_LoopField%
- GuiControl +BackgroundTrans, Text%A_LoopField%
- backgroundY += 45
- nameY += 45
- windowHeight += 45
- }
- }else{
- Gui, Add, Picture, x22 y%backgroundY% w430 h40 , %A_ScriptDir%/res/bar.png
- Gui, Font, cWhite
- Gui, Add, Text, x32 y%nameY% w410 h20 vText%A_LoopField%, Aktuell ist keiner in der Fraktion
- GuiControl +BackgroundTrans, Text%A_LoopField%
- windowHeight += 45
- }
- windowHeight += 15
- Gui, Show, w%windowWidth% h%windowHeight%, %winTitle%
- return
- GuiClose:
- ExitApp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement