Jump to content

Recommended Posts

Posted (edited)

#include <WindowsConstants.au3>
#include <IE.au3>
#include <Misc.au3>
#include <ScreenCapture.au3>

$E = _IECreateEmbedded()


$Form1 = GUICreate("Simple", 386, 355, 328, 198, $WS_POPUPWINDOW)
$obj = GUICtrlCreateObj($E, 0, 0, 385, 355)
GUISetState(@SW_SHOW)
$navigate = _IENavigate($E,"foxnews.com" , 1)


While 1

    If _ispressed("35") Then
            _ScreenCapture_CaptureWnd(@ScriptDir & "\testcapture.jpg" , $Form1, 0 , 0 , 368 , 338)
            sleep(1000)
            GUIDelete($Form1)
            $Form1 = GUICreate("Simple", 386, 355, 328, 198, $WS_POPUPWINDOW)
            GUICtrlCreatePic(@ScriptDir & "\testcapture.jpg" , 0 ,0 , 385 , 355)
            GUISetState(@SW_SHOW)
        Endif

        If _ispressed("1b") Then
            exit
        Endif

WEnd

If you just want a static snippet of a page remaining, a picture is what you want.  and the above does so (jankily, but we are still determining what your goal is).

If you want scrollbars to disappear, but the page to still be navigable by keystrokes, that should be stated in your objectives

Edited by boththose

,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Posted

you would parse the HTML which you've been shown how to get before and you would only keep the video, then generate a new html page based on that.

this is just an idea, you can go and try it out and see if it works.

Posted (edited)

Post #24 should be post #1.  And you will not be helped to automate anything Google outside of the mechanisms they have provided, because Google pays the bills.

Edited by boththose

,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Posted

Searching a bit (google; hide scrollbars IE object) I came up with:

Func scrollNo()
    $E.document.body.scroll = "no"
EndFunc

Func scrollYes()
    $E.document.body.scroll = "yes"
EndFunc

Controlled by 2 very small buttons, It did what you "described" with     _IENavigate($E, "http://www.yahoo.com")

but did not work at all with     _IENavigate($E, "http://ig.internetplus.biz/prayertimes/countryegypt/cityfayoom.html").

Must be something different about the way the sites are constructed.

Haven't tried it with youtube. If it works, it could save you a locked thread on automating youtube......

You could probably swap-out the buttons for a primaryDown or mouseover type of function.

Posted

i got what i want and here is my source but please tell me why it isn't working ??

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

$k = _IECreateEmbedded()
$Form1 = GUICreate("Form1", 770, 546, 192, 124)
$Pic1 = GUICtrlCreateObj($k, 24, 48, 721, 425)
GUISetState(@SW_SHOW)

_IENavigate($k,"www.youtube.com/embed/DwHE7VJoMBs?feature=player_detailpage")



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

    EndSwitch
WEnd
Posted (edited)

lorenkinzel

only the vid is shown in the tool right?, 

and my problem in this pic look,,

 

yvSQAl.jpg

but i can also play this vid on google chrome !! so i want to play it without this msg

Edited by yousefsamy
Posted

Going out on a limb; there are 2 lines you can select in that message.

One of them may solve this issue.

It is not an AutoIt problem. It is IE on your computer that has a problem.

Posted

Other browsers don't let you do that, afaik you can't embed Chrome or FF for example.

If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Posted

Have you done any searches that might help with your problem? With IE Embedded for example, you're running IE7 regardless of which browser is installed on the computer. HTML5 won't work in IE7, the embedded browser probably doesn't have flash installed/enabled in it. I've seen threads where people have shown how to use the installed version of IE when embedded, you should look for those.

If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Posted

What part of "you should look for those" implies that I'm going to do the work for you?

If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

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
  • Recently Browsing   0 members

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