Search the Community
Showing results for tags 'tv project ontv wazer'.
-
Hi im trying to make a project where i can see whats in my TV so far so good. I have some things i would like to get help with since im kinda stuck now . 1) How can i zoom / set the dpi inside the GUI - when im using _IECreateEmbedded(), guicreate & GUICtrlCreateObj. 2) Would it be possible to make this gui as a desktop background or just scale it to my desired resolution with transparent and and a click thru while hovering mouse over the gui it self, if yes how is it done? 3) The provider i use to retrive my TV information with is using some javascript and there's a button for logged in users that i want to click when i login automatic with _IEAction but i dont know how to press it FIXED - Thanks to DaleHohm The one i want to press is <input type="radio" onclick="savePref('standardTVguide','horizontal'); tvguide();" name="tvguideView"> The things i have tried looks like this, but no luck. $o_tvhorizontal=_IEGetObjByName($oIE,'horizontal') _IEAction($o_tvhorizontal,'click') Little output from the code when logged in to http://ontv.dk/integration <tbody> <tr class="tvguidebg" style="z-index:-1000;"> <tr style="background-color:white;height: 45px;"> <td class="ipad_td" style="padding-left:5px" colspan="2"> <p class="summary_listing" style="font-weight: bold;font-size: 11px;"> <input type="radio" checked="" onclick="savePref('standardTVguide','list'); tvguide();" name="tvguideView"> Netop nu <input type="radio" onclick="savePref('standardTVguide','horizontal'); tvguide();" name="tvguideView"> Skemavisning </p> </td> </tr> </tbody> My work so far. #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <IE.au3> #include <WinAPI.au3> Opt("GUIResizeMode", $GUI_DOCKAUTO) _IEErrorHandlerRegister() Local $oIE = _IECreateEmbedded() $Form1 = GUICreate("Form1", 1500, 700, _ (@DesktopWidth - 1500) / 2, (@DesktopHeight - 700) / 2, _ $WS_POPUP, $WS_EX_LAYERED) GUISetBkColor(0xABCDE) _WinAPI_SetLayeredWindowAttributes($Form1, 0xABCDEF, 230) GUICtrlCreateObj($oIE, 0, 20, 1500, 700) Local $GUI_Button_Home = GUICtrlCreateButton("Refresh", 0, 0, 1500, 20) GUISetState(@SW_SHOW) ;Show GUI _IENavigate($oIE, "ontv.dk/integration") ;ONLY REMOVE MARKS ";" IF YOU HAVE LOGIN AND PASSWORD - REMEMBER TO FILL OUT EMAIL AND PASSWORD ;sleep(2000) ;$o_loginsite=_IEGetObjByName($oIE,'profileBtn') ;_IEAction($o_loginsite,'click') ;$o_login = _IEGetObjByName($oIE,'email') ;_IEFormElementSetValue ($o_login, 'PUT EMAIL HERE') ;$o_password = _IEGetObjByName($oIE,'password') ;_IEFormElementSetValue ($o_password, 'PUT PASSWORD HERE') ;$o_signin=_IEGetObjByName($oIE,'loginButton') ;_IEAction($o_signin,'click') sleep(2000) $o_tvfrontpage=_IEGetObjByName($oIE,'tvguideBtn') _IEAction($o_tvfrontpage,'click') _IELoadWait($oIE) ; Waiting for user to close the window While 1 Local $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $GUI_Button_Home _IEAction($o_tvfrontpage,'click') EndSelect WEnd GUIDelete() Exit