Jump to content

JTV Infomatic


RunDLC
 Share

Recommended Posts

Posted Image

#include <inet.au3>
#include <IE.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>

$Frm = GUICreate("JTV Infomatic", 609, 134, 192, 124, -1, BitOR($WS_EX_APPWINDOW, $WS_EX_WINDOWEDGE))
GUISetBkColor(0xA0A0A0)
$LUSER = GUICtrlCreateLabel("Username:", 12, 14, 82, 16)
GUICtrlSetFont(-1, 9, 800, 0, "Terminal")
GUICtrlSetColor(-1, 0x000000)
$sUser = GUICtrlCreateLabel("Waiting..", 97, 16, 374, 16)
GUICtrlSetFont(-1, 9, 400, 0, "Terminal")
GUICtrlSetColor(-1, 0xFF0000)
$LUID = GUICtrlCreateLabel("User ID:", 12, 36, 76, 16)
GUICtrlSetFont(-1, 9, 800, 0, "Terminal")
GUICtrlSetColor(-1, 0x000000)
$sUID = GUICtrlCreateLabel("Waiting..", 89, 36, 482, 16)
GUICtrlSetFont(-1, 9, 400, 0, "Terminal")
GUICtrlSetColor(-1, 0xFF0000)
$LStream = GUICtrlCreateLabel("Stream Key:", 12, 56, 103, 16)
GUICtrlSetFont(-1, 9, 800, 0, "Terminal")
GUICtrlSetColor(-1, 0x000000)
$sStream = GUICtrlCreateInput("Waiting", 111, 52, 453, 20)
GUICtrlSetFont(-1, 9, 400, 0, "Terminal")
GUICtrlSetColor(-1, 0xFF0000)
$LNOT = GUICtrlCreateLabel("Notifications:", 13, 77, 130, 16)
GUICtrlSetFont(-1, 9, 800, 0, "Terminal")
GUICtrlSetColor(-1, 0x000000)
$sNOT = GUICtrlCreateLabel("Waiting..", 143, 76, 455, 16)
GUICtrlSetFont(-1, 9, 400, 0, "Terminal")
GUICtrlSetColor(-1, 0xFF0000)
$LIP = GUICtrlCreateLabel("IP:", 12, 96, 29, 16)
GUICtrlSetFont(-1, 9, 800, 0, "Terminal")
GUICtrlSetColor(-1, 0x000000)
$sIP = GUICtrlCreateLabel("Waiting..", 42, 96, 530, 16)
GUICtrlSetFont(-1, 9, 400, 0, "Terminal")
GUICtrlSetColor(-1, 0xFF0000)
$LPRO = GUICtrlCreateLabel("Pro:", 13, 115, 40, 16)
GUICtrlSetFont(-1, 9, 800, 0, "Terminal")
GUICtrlSetColor(-1, 0x000000)
$sPRO = GUICtrlCreateLabel("Waiting..", 52, 114, 549, 16)
GUICtrlSetFont(-1, 9, 400, 0, "Terminal")
GUICtrlSetColor(-1, 0xFF0000)
GUISetState(@SW_HIDE)

$Title = "Bad Error"
$Error = "Must Be Compiled to Run"

If @Compiled = 0 Then
    MsgBox(0, $Title, $Error)
    Exit 0
Else
    GUISetState(@SW_SHOW)
EndIf

$oIE = _IECreate("http://www.justin.tv", 0, 0, 1, 1)
$Login = $oIE.document.parentwindow.eval("PP['login']")
GUICtrlSetData($sUser, $Login)
Sleep(1000)
$UID = $oIE.document.parentwindow.eval("PP['user_id']")
GUICtrlSetData($sUID, $UID)
$SK = $oIE.document.parentwindow.eval("PP['stream_key']")
GUICtrlSetData($sStream, $SK)
$Noty = $oIE.document.parentwindow.eval("PP['notifications']")
GUICtrlSetData($sNOT, $Noty)
$GetIP = $oIE.document.parentwindow.eval("PP['ip']")
GUICtrlSetData($sIP, $GetIP)
$isPRO = $oIE.document.parentwindow.eval("PP['is_pro']")
GUICtrlSetData($sPRO, $isPRO)

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit

    EndSwitch
WEnd

;Coded by RunDLC

its a simple script i made that tells you various info , including your stream key which can be useful, you must already be logged on to use it. This is one of my first projects with autoit

Edited by RunDLC
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...