vanhoivo

Untitled

Sep 1st, 2015
313
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.33 KB | None | 0 0
  1. #cs ----------------------------------------------------------------------------
  2.  
  3.  AutoIt Version: 3.3.14.0
  4.  Author:         yones7x
  5.  
  6.  Script Function:
  7.     Template AutoIt script.
  8.  
  9. #ce ----------------------------------------------------------------------------
  10. #include <Crypt.au3>
  11. Global $F_INI = @ScriptDir&'\GK_Setting.ini'
  12. If FileExists($F_INI) = 0 Then _ConfINI_GUI()
  13. $DHash = IniRead($F_INI, "Setting", "Last_Hash", "")
  14. $DLink = IniRead($F_INI, "Setting", "Link", "")
  15. If $DLink = "" Then _ConfINI_GUI()
  16. $DTimeW = IniRead($F_INI, "Setting", "Time_Wait", "")
  17. If $DTimeW = "" Then _ConfINI_GUI()
  18. While 1
  19.     $DATA = InetRead($DLink, 1+8)
  20.     If @error Then
  21.         TrayTip("yones7x GetKeys", "Check your connection !", 10)
  22.     ElseIf _Crypt_HashData($DATA, $CALG_MD5) = $DHash Then
  23.     Else
  24.         $DHash = _Crypt_HashData($DATA, $CALG_MD5)
  25.         IniWrite($F_INI, "Setting", "Last_Hash", String($DHash))
  26.         MsgBox(0, "", BinaryToString($DATA))
  27.         ShellExecute($DLink)
  28.     EndIf
  29.     Sleep($DTimeW) ;Wait 2 min
  30. WEnd
  31.  
  32. Func _ConfINI_GUI()
  33.     MsgBox(64, "yones7x GetKeys Tool", "Hi!"&@CRLF&"Click 'OK' to start configure settings")
  34.     $GUINI = GUICreate("yones7x GetKeys Tool", 260, 125)
  35.     GUICtrlCreateLabel("Put here the link of raw string 'pastepin':", 10, 10, 240, 20)
  36.     GUICtrlSetFont(-1, 9, 800, 0, "Arial")
  37.     ;GUICtrlSetBkColor(-1, 0xFF)
  38.     $GUINI_In1 = GUICtrlCreateInput("http://pastebin.com/...php?i=WfEGMEnU", 10, 30, 240, 20)
  39.  
  40.     GUICtrlCreateLabel("Set a time wait (in minutes) between each check: (0-10)", 10, 60, 200, 30)
  41.     GUICtrlSetFont(-1, 9, 800, 0, "Arial")
  42.     $GUINI_In2 = GUICtrlCreateInput(2, 10, 95, 50, 20, 0x2000)
  43.     GUICtrlCreateUpdown($GUINI_In2, 1)
  44.     GUICtrlSetLimit(-1, 10)
  45.  
  46.     $GUINI_B1 = GUICtrlCreateButton("OK !", 205, 95, 50, 25)
  47.     GUICtrlSetFont($GUINI_B1, 9, 800, 0, "Arial")
  48.     GUISetState(@SW_SHOW, $GUINI)
  49.     While 1
  50.         Switch GUIGetMsg()
  51.             Case -3
  52.                 Exit
  53.             Case $GUINI_B1
  54.                 IniWrite($F_INI, "Setting", "Link", GUICtrlRead($GUINI_In1))
  55.                 IniWrite($F_INI, "Setting", "Time_Wait", GUICtrlRead($GUINI_In2)*60*1000)
  56.                 _Restart()
  57.         EndSwitch
  58.     WEnd
  59. EndFunc
  60.  
  61. Func _Restart()
  62.     If @Compiled Then
  63.         ShellExecute(@ScriptFullPath)
  64.     EndIf
  65.     Exit
  66. EndFunc
Advertisement
Add Comment
Please, Sign In to add comment