Jump to content

Embedded help.


 Share

Recommended Posts

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.

Link to comment
Share on other sites

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

WEnd

bot 3.au3

Edited by ileandros

I feel nothing.It feels great.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Posted Image

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 by ileandros

I feel nothing.It feels great.

Link to comment
Share on other sites

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 by JohnOne

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Link to comment
Share on other sites

$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 by ileandros

I feel nothing.It feels great.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 :/

Posted Image

What should i add to make the second window close without closing the entire proggram???

Edited by ileandros

I feel nothing.It feels great.

Link to comment
Share on other sites

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 by JohnOne

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

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