
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <ListViewConstants.au3>





If Not FileExists("C:/Windows/avatar.jpg") & FileExists("C:/Windows/icon.jpg") & FileExists("C:/Windows/icon2.jpg") Then
FileCopy("avatar.jpg", "C:/Windows")
FileCopy("icon.jpg", "C:/Windows")
FileCopy("icon2.jpg", "C:/Windows")
EndIf

If FileExists("C:/Windows/avatar.jpg") & FileExists("C:/Windows/icon.jpg") & FileExists("C:/Windows/icon2.jpg") Then
FileDelete("avatar.jpg")
FileDelete("icon.jpg")
FileDelete("icon2.jpg")
EndIf

$frmSplash = GUICreate("", 200, 125, @DesktopWidth / 2 - 150, @DesktopHeight / 2 - 75, BitOR($WS_SYSMENU,$WS_POPUP), 0)
$picSplash = GUICtrlCreatePic("C:/Windows/icon.jpg", 0, 0, 200, 125, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
$proSplash = GUICtrlCreateProgress(2, 98, 196, 25)
GUISetState(@SW_SHOW,$frmSplash)



For $i = 10 to 100 Step 10
	GUICtrlSetData($proSplash,$i)
	Sleep(250)
Next
GUISetState(@SW_HIDE,$frmSplash)



$GUI = GUICreate("MultiLinker .:::by.Teare:::.", 222, 315, 202, 136)
$MenuItem1 = GUICtrlCreateMenu("&Menu")
$userlist = GUICtrlCreateMenuItem("User List", $MenuItem1)
$About = GUICtrlCreateMenuItem("About", $MenuItem1)
GUISetBkColor(0xFFFFFF)
$Label1 = GUICtrlCreateLabel("Lade Links", 80, 120, 52, 17)
$spenden = GUICtrlCreateButton("Spenden", 8, 168, 97, 25)
$espenden = GUICtrlCreateButton("ESpenden", 112, 168, 97, 25)
$linkadd = GUICtrlCreateButton("Add your Link", 64, 224, 89, 17)
$proSplash2 = GUICtrlCreateProgress(16, 144, 185, 17)
$Pic1 = GUICtrlCreatePic("C:\Windows\icon2.jpg", 8, 8, 204, 96)
$exitbutton = GUICtrlCreateButton("Exit", 80, 272, 57, 17)
$reloadlinks = GUICtrlCreateButton("Reload Links", 72, 248, 73, 17)
Dim $GUI_1_AccelTable[1][2] = [["8", $About]]
GUISetAccelerators($GUI_1_AccelTable)
GUISetState(@SW_SHOW)

$GUI2 = GUICreate("About", 218, 362, 196, 119, -1, BitOR($WS_EX_TOOLWINDOW,$WS_EX_WINDOWEDGE))
GUISetBkColor(0xFFFFFF)
$GroupBox1 = GUICtrlCreateGroup("", 8, 8, 201, 345)
$Teare = GUICtrlCreateLabel("Coded by Teare", 24, 256, 80, 17)
$Version = GUICtrlCreateLabel("Version 1.1", 24, 232, 63, 17)
$Coyright = GUICtrlCreateLabel("Copyright (c) Teare", 24, 280, 114, 17)
$Lizenz = GUICtrlCreateLabel("Free License", 24, 304, 82, 17)
$Pic1 = GUICtrlCreatePic("C:\Windows\avatar.jpg", 24, 32, 126, 155)
$Label1 = GUICtrlCreateLabel("Teare's Multilinker", 24, 200, 153, 28)
GUICtrlSetFont(-1, 14, 400, 0, "MS Sans Serif")
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUISetState(@SW_HIDE)


$GUI3 = GUICreate("Form1", 137, 270, 228, 149, -1, BitOR($WS_EX_TOOLWINDOW,$WS_EX_WINDOWEDGE))
GUISetBkColor(0xFFFFFF)
$Label1 = GUICtrlCreateLabel("Userlist", 0, 0, 104, 40)
GUICtrlSetFont(-1, 22, 800, 0, "Adobe Gothic Std B")
GUICtrlSetColor(-1, 0x000000)
$Label2 = GUICtrlCreateLabel("Stand 20.11.2011", 40, 40, 89, 17)
$TreeView1 = GUICtrlCreateTreeView(0, 64, 137, 161)
$TreeView1_0 = GUICtrlCreateTreeViewItem("Teare", $TreeView1)
$TreeView1_1 = GUICtrlCreateTreeViewItem("¢øRtez™", $TreeView1)
$TreeView1_2 = GUICtrlCreateTreeViewItem("xXxcoolmanxXx", $TreeView1)
$TreeView1_3 = GUICtrlCreateTreeViewItem("{V.I.P}", $TreeView1)
$TreeView1_4 = GUICtrlCreateTreeViewItem(".r?s?s?n", $TreeView1)
$TreeView1_5 = GUICtrlCreateTreeViewItem("Name Not Aviable!", $TreeView1)

GUISetState(@SW_Hide)

Sleep(1000)

For $i = 10 to 100 Step 10
	GUICtrlSetData($proSplash2,$i)
	Sleep(500)
Next

ShellExecute( "http://www.google.de")
ShellExecute( "http://www.google.de")
ShellExecute( "http://www.google.de")
ShellExecute( "http://www.google.de")



While 1
    $aMsg = GUIGetMsg(1)
    Switch $aMsg[0]

        Case $GUI_EVENT_CLOSE
            If $aMsg[1] = $GUI Then Exit
            GUISetState(@SW_HIDE, $GUI2)
            GUISetState(@SW_HIDE, $GUI3)
        Case $About
            GUISetState(@SW_SHOW, $GUI2)
			GUISetState(@SW_HIDE, $GUI3)
        Case $userlist
            GUISetState(@SW_Hide, $GUI2)
			GUISetState(@SW_Show, $GUI3)
		Case $exitbutton
			Exit
		Case $spenden
			ShellExecute( "http://www.google.de")
		Case $espenden
		ShellExecute( "http://www.google.de")
		Case $linkadd
			ShellExecute( "http://www.google.de")
		Case $reloadlinks
ShellExecute( "http://www.google.de")
ShellExecute( "http://www.google.de")
ShellExecute( "http://www.google.de")
ShellExecute( "http://www.google.de")
	EndSwitch
WEnd
