Advertisement
Aareon

Aareon's Elements Client

Mar 11th, 2015
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 2.16 KB | None | 0 0
  1. #include <File.au3>
  2. #include <FileConstants.au3>
  3. #include <GUIConstants.au3>
  4. #include <Misc.au3>
  5. #include <IE.au3>
  6.  
  7. HotKeySet("{ESC}","term")
  8. guiMake()
  9.  
  10. Func guiMake()
  11.         Global $hGUI = GUICreate("Aareon's Elements Client",700,600) ;;Width, Height
  12.         $tabControl = GUICtrlCreateTab(0,2,702,580)
  13.                 GUICtrlCreateTabItem("Home")
  14.                         $homeLabel = GUICtrlCreateLabel("Home",10,30,50,30)
  15.                         GUICtrlSetFont($homeLabel,12)
  16.                         $oaFlash = ObjCreate("ShockwaveFlash.ShockwaveFlash")
  17.                         $GX = GUICtrlCreateObj($oaFlash, 10, 70, 680, 500)
  18.                         $oaFlash.Movie = @WorkingDir & "\game.swf" ;;@ root of this script, find load.swf
  19.                         $oaFlash.Loop = False
  20. ;;
  21.                 GUICtrlCreateTabItem("Decks")
  22.                         $dekLabel = GUICtrlCreateLabel("Decks",10,30,50,30)
  23.                         GUICtrlSetFont($dekLabel,12)
  24.                         $array=_FileListToArray(@ScriptDir&"\elements\decks\")
  25.                         $combo=GUICtrlCreateCombo("Select an item",10,65,100)
  26.                         For $i=1 To Ubound($array)-1
  27.                            GUICtrlSetData($combo,$array[$i])
  28.                         Next
  29.                         $setClip = GUICtrlCreateButton("Copy Deck", 370, 120, 85, 25)
  30.                         $deckBox = GUICtrlCreateInput("Select a deck", 10, 150, 485, 200)
  31. ;;
  32.                 GUICtrlCreateTabItem("About")
  33.                         $abtLabel = GUICtrlCreateLabel("About",10,30,50,30)
  34.                         GUICtrlSetFont($abtLabel,12)
  35.                         GUICtrlCreateLabel("Programmed by Aareon Sullivan",10,70,460,150)
  36.  
  37.         GUISetState(@SW_SHOW,$hGUI)
  38.  
  39.         GUICtrlCreateLabel("",1,56,200,1,$SS_SUNKEN)
  40.         $copyLabel = GUICtrlCreateLabel("CopyrightΒ© Aareon Sullivan 2015 - All Rights Reserved.",434,584)
  41.         GUICtrlSetBkColor ($copyLabel,$GUI_BKCOLOR_TRANSPARENT)
  42.  
  43.  
  44.         While 1
  45.         Switch GUIGetMsg()
  46.             Case $GUI_EVENT_CLOSE
  47.                 ExitLoop
  48.             Case $combo
  49.                 $comboitem = GUICtrlRead($combo)
  50.                 Local $sFileRead = FileRead(@ScriptDir&"\elements\decks\"&$comboitem)
  51.                 GUICtrlSetData ($deckBox,$sFileRead)
  52.             Case $setClip
  53.                 ClipPut ($sFileRead)
  54.         EndSwitch
  55.     WEnd
  56. EndFunc
  57.  
  58. Func term()
  59.         Exit
  60. EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement