ileandros Posted December 11, 2011 Posted December 11, 2011 Hello there. I have create a web browser in auto it and i made a diplay window for the embedded. The window display is a small one and i want to make it start diplaying a chosen part of the browse site/url. It't like making a youtube browser and i want when i run the programm to focus screen/display window at the serch or at a video. Something like "...GuiCtrlGetPos" or sth else. $oIE = _IECreateEmbedded() GUICtrlCreateObj($oIE,400,100,330,110,12) This is my browser progg. Any help??? I feel nothing.It feels great.
JohnOne Posted December 12, 2011 Posted December 12, 2011 All I can think of is pseudo... Get object object.scrollintoview() AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
Bert Posted December 12, 2011 Posted December 12, 2011 Can you be a bit more specific at what you have in mind? If for example you want to display just the video from YouTube then you simply need to embed the flash object in your GUI and make a call to it using InetGet The Vollatran project My blog: http://www.vollysinterestingshit.com/
ileandros Posted December 12, 2011 Author Posted December 12, 2011 (edited) My embedded obj is a small one and it cant display the entire url/site i want to visit so when i run a url it start from the left top corner of the site i joined. Can i make it start from a different position like in the middle or whereever i want to. Whats the command for that??? #include <IE.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> GuiCreate("Obj Tutorial",887,650,287,16) $button1=GuiCtrlCreateButton("Go to URL.",368,38,253,26) $button2=GuiCtrlCreateButton("Stop!",700,38,100,26) $input1=GuiCtrlCreateInput(" ",36,39,291,20) $label1=GuiCtrlCreateLabel("Put URL here.",38,23,95,15) $oIE=_IECreateEmbedded() $Object=GUICtrlCreateObj($oIE,20,150,300,250) GuiSetState(@SW_SHOW) While 1 $msg=GuiGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $button2 _IEAction($oIE,"Stop") Case $msg=$button1 $read1=GUICtrlRead($input1) _IENavigate($oIE,$read1) EndSelect WEndbot 3.au3 Edited December 12, 2011 by ileandros I feel nothing.It feels great.
Bert Posted December 12, 2011 Posted December 12, 2011 The fact you used the word "bot" in your file name is a huge red flag for me. What is the website you want to use? Also, as I said before if you are interested in a particulate thing on the site then you may be able to grab just the items that make up what you need. Be forewarned, you are skating on very thin ice with me. If you reply with something vague you will be answering as if you are making something for a game which is NOT allowed here. Be specific, and be truthful. The Vollatran project My blog: http://www.vollysinterestingshit.com/
ileandros Posted December 12, 2011 Author Posted December 12, 2011 (edited) Nah dude if i had the skill to create a game Bot i wouldnt even bother coming here and asking for help.Bot is the name because im a bit new in AutoIT society.I got 10000 files of other progs/other lanugages and i usually save them at Deskop so i can easyly find/delete or whatever.Check this out.I want to grab that item and just add it at my diplay window so i can make a radio player i want to.Is there a way/commnad (which there is) to do that.I don't use AutoIt a lot but i've been asked to make a Radio browser for my friends which doesn't requier installation of sth like Java+Python(which i use).I found AutoIt and it is pretty powerfull and easy for "newbies".Can you help me now? Edited December 12, 2011 by ileandros I feel nothing.It feels great.
JohnOne Posted December 12, 2011 Posted December 12, 2011 (edited) I'm not that fantastic with stuff like this, so ... Try navigating to this file locally as a .html <html xmlns="http://www.w3.org/1999/xhtml"> <div id="playerwrap" class="block"> <div id="player"><object id="l24player" name="l24player" width="310" height="69" type="application/x-mplayer2" src="mms://mediaserver.mad.tv/madradio"><param name="AnimationatStart" value="0"><param name="TransparentatStart" value="1"><param name="ShowControls" value="1"><param name="ShowDisplay" value="0"><param name="ShowStatusBar" value="1"><param name="autoStart" value="1"><param name="stretchToFit" value="0"><param name="enableContextMenu" value="0"><param name="uiMode" value="full"></object><p>Αν έχετε προβλήμΑτΑ ΑκρόΑσης, <a href="#l24player=JWPlayer" id="btn_load_next_plugin">πΑτήστε εδώ</a></p></div> </div> </html> Or using _IEBodyWriteHTML() to write it to your Embedded IE EDIT: or you could try as I mentioned before $obj = _IEGetObjById($oIE,"l24player") $obj.ScrollIntoView() Edited December 12, 2011 by JohnOne AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
ileandros Posted December 12, 2011 Author Posted December 12, 2011 (edited) $obj = _IEGetObjById($oIE,"l24player")$obj.ScrollIntoView()I like this part but i don't know how can i add it.I tryied some ways but didn't found it.Can u help me??My file is displayed at the previous message so can u post me how should this be???How can i find the Id of the obj or the name so i cant add it??? Edited December 12, 2011 by ileandros I feel nothing.It feels great.
JohnOne Posted December 12, 2011 Posted December 12, 2011 $read1=GUICtrlRead($input1) _IENavigate($oIE,$read1) $obj = _IEGetObjById($oIE,"l24player") ; "l24player" is the id. $obj.ScrollIntoView() AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
ileandros Posted December 12, 2011 Author Posted December 12, 2011 I thi$read1=GUICtrlRead($input1)_IENavigate($oIE,$read1)$obj = _IEGetObjById($oIE,"l24player") ; "l24player" is the id.$obj.ScrollIntoView()I tried that before posting and it didn't work but now it's working Thank you very much my friend ur n1.If there's a way, or sth i dont know, where i can vote for you tell me Can u tell me how can i find the obj ID or Name so i can make it for other proggs too??? I feel nothing.It feels great.
JohnOne Posted December 12, 2011 Posted December 12, 2011 You must look at source code of webpage. Usually Browsers have a source explorer, press the F12 key to see it if you have one. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
ileandros Posted December 12, 2011 Author Posted December 12, 2011 Yes i have one but it's really hard to find the id name in that entire script :/ I feel nothing.It feels great.
JohnOne Posted December 12, 2011 Posted December 12, 2011 See those expandable arrows at the side? If you move your mouse over them, it will hi-light the element it refers to, on the webpage. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
Bert Posted December 12, 2011 Posted December 12, 2011 Another way to get the IDs you need if using FireFox is use the Web Developer toolbar. The Vollatran project My blog: http://www.vollysinterestingshit.com/
ileandros Posted December 12, 2011 Author Posted December 12, 2011 (edited) I found it thank you both, btw im using chrome.There is another question i want to make....Sorry for beeing like this but :/I made a progg which contains a web browser and some other stuff like button/ input etc..I made a button which read and open another window displaying an other browser.When i close the second window the entrire progg ends :/What should i add to make the second window close without closing the entire proggram??? Edited December 12, 2011 by ileandros I feel nothing.It feels great.
JohnOne Posted December 12, 2011 Posted December 12, 2011 GuiDelete($hGui) AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
ileandros Posted December 12, 2011 Author Posted December 12, 2011 I tried it before but it just keeps opening and instant closing the window. I guess im not adding it at the right place. :/ I feel nothing.It feels great.
JohnOne Posted December 12, 2011 Posted December 12, 2011 I think it's time to take a look at the Managing_Multiple_GUIs wiki. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
ileandros Posted December 13, 2011 Author Posted December 13, 2011 (edited) I think it's time to take a look at the Managing_Multiple_GUIs wiki.That was pretty helpful buddy.Thank you for all ur help and sorry for causing troubles Edited December 13, 2011 by ileandros I feel nothing.It feels great.
JohnOne Posted December 13, 2011 Posted December 13, 2011 (edited) There was no trouble buddy. EDIT: And as a matter of fact, I just came to this thread to get the link for wiki, since I am having a similar issue where the second gui (Which has its own loop) does not seem to be processing messages from its controls, with the first GUI disabled or otherwise. I'll have a lot of fun getting to the bottom of it anyway Edited December 13, 2011 by JohnOne AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now