Jump to content

TV Project with some help needed.


Recommended Posts

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
Edited by wazer
Link to comment
Share on other sites

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

Discussing Auto-Login scripts is forbidden here.

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?

Not possible, I believe, but I think, you could still switch to full-screen mode, by setting the GUI width and height to @DesktopWidth and @DesktopHeight respectively.

----------------------------------------

:bye: Hey there, was I helpful?

----------------------------------------

My Current OS: Win8 PRO (64-bit); Current AutoIt Version: v3.3.8.1

Link to comment
Share on other sites

Discussing Auto-Login scripts is forbidden here.

Not possible, I believe, but I think, you could still switch to full-screen mode, by setting the GUI width and height to @DesktopWidth and @DesktopHeight respectively.

1. I think you misunderstood, i dont want help with autologin features and sorry if we arent allowed to mentioned that in here. What i want is to click this preferences so it switch and list view mode for tv channels to horizontal

2. Okay i will see what i can do with that, i know theres a way to make click thru tho.

Btw, did you know how to zoom the browser/text inside my gui?, im having a hard time reading the text from 3-4meters+ on my HDTV hehe ;)

Thanks for your time so far.

Edited by wazer
Link to comment
Share on other sites

Sorry, not much knowledge with COM. But there's DaleHohm(MVP) who could help u in this regard (as far as I know, no offense).

Edited by MKISH

----------------------------------------

:bye: Hey there, was I helpful?

----------------------------------------

My Current OS: Win8 PRO (64-bit); Current AutoIt Version: v3.3.8.1

Link to comment
Share on other sites

I pm'ed him "crossing fingers!" ;) Thanks for your time.

If you read the rules you will see that PM'ing members asking for support is also against the rules.


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Link to comment
Share on other sites

For your last question, why would you look for an object named 'horizontal', when right above you show it has a name of 'tvguideView'? Change it, it should work.

Regarding your other questions - they should probably be broken into new questions with appropriate titles to attract the right people. Make sure to provide more than you have above. When you do that, you won't need PM's (they are not appreciated) to get the right people's attention.

Dale

Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y

Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Link to comment
Share on other sites

For your last question, why would you look for an object named 'horizontal', when right above you show it has a name of 'tvguideView'? Change it, it should work.

Regarding your other questions - they should probably be broken into new questions with appropriate titles to attract the right people. Make sure to provide more than you have above. When you do that, you won't need PM's (they are not appreciated) to get the right people's attention.

Dale

Yes your right but if you look carefully you can see there's 2 options that have this name and if i use tvguideView it will select the first one it finds and since i want to use 2nd i dont know how todo that ;)

<input type="radio" checked="" onclick="savePref('standardTVguide','list'); tvguide();" name="tvguideView">

Netop nu

<input type="radio" onclick="savePref('standardTVguide','horizontal'); tvguide();" name="tvguideView">

With the rest i believe your right :).

I have searched many hours for zoom that is working inside this gui, i have tried many things but no luck, you dont have any clues either?.

Link to comment
Share on other sites

_IEGetObjByName has a zero-based index parameter - set it to 1.

Dale

Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y

Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

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...