lorenkinzel Posted July 10, 2014 Share Posted July 10, 2014 "(my idea is moving scroll bar to the position what i want and hide it)" Is it that you want to scroll to a particular area on the web page and then hide the scrollbars? yousefsamy 1 Link to comment Share on other sites More sharing options...
yousefsamy Posted July 10, 2014 Author Share Posted July 10, 2014 (edited) lorenkinzel this is exactly what i want Edited July 10, 2014 by yousefsamy Link to comment Share on other sites More sharing options...
iamtheky Posted July 10, 2014 Share Posted July 10, 2014 (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 July 10, 2014 by boththose ,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-. |(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/ (_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_) | | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) ( | | | | |)| | \ / | | | | | |)| | `--. | |) \ | | `-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_| '-' '-' (__) (__) (_) (__) Link to comment Share on other sites More sharing options...
yousefsamy Posted July 10, 2014 Author Share Posted July 10, 2014 my goal is to play a youtube vid in my tool only i want to show the vid and hide the other sides of page ,, i hope you understand what i want Link to comment Share on other sites More sharing options...
mpower Posted July 10, 2014 Share Posted July 10, 2014 why not just generate a local html file with the youtube video embedded in it? Link to comment Share on other sites More sharing options...
yousefsamy Posted July 10, 2014 Author Share Posted July 10, 2014 hmm now can i do that only embedded the vid or i must embedded all the page ? Link to comment Share on other sites More sharing options...
mpower Posted July 10, 2014 Share Posted July 10, 2014 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. Link to comment Share on other sites More sharing options...
yousefsamy Posted July 11, 2014 Author Share Posted July 11, 2014 i don't understand what you want but you can explain it to me by give me a source Link to comment Share on other sites More sharing options...
iamtheky Posted July 11, 2014 Share Posted July 11, 2014 (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 July 11, 2014 by boththose ,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-. |(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/ (_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_) | | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) ( | | | | |)| | \ / | | | | | |)| | `--. | |) \ | | `-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_| '-' '-' (__) (__) (_) (__) Link to comment Share on other sites More sharing options...
lorenkinzel Posted July 11, 2014 Share Posted July 11, 2014 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. Link to comment Share on other sites More sharing options...
yousefsamy Posted July 11, 2014 Author Share Posted July 11, 2014 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 Link to comment Share on other sites More sharing options...
lorenkinzel Posted July 11, 2014 Share Posted July 11, 2014 When I use your script in post #31, it plays a video of someone named Turrd Furgasson saying "woah". What did you want it to do? Link to comment Share on other sites More sharing options...
yousefsamy Posted July 11, 2014 Author Share Posted July 11, 2014 (edited) lorenkinzel only the vid is shown in the tool right?, and my problem in this pic look,, but i can also play this vid on google chrome !! so i want to play it without this msg Edited July 11, 2014 by yousefsamy Link to comment Share on other sites More sharing options...
lorenkinzel Posted July 11, 2014 Share Posted July 11, 2014 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. Link to comment Share on other sites More sharing options...
yousefsamy Posted July 11, 2014 Author Share Posted July 11, 2014 lorenkinzel i am talking about i want to play this vid with another browser to prevent this msg from appear. Link to comment Share on other sites More sharing options...
BrewManNH Posted July 11, 2014 Share Posted July 11, 2014 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 GudeHow 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 Link to comment Share on other sites More sharing options...
yousefsamy Posted July 11, 2014 Author Share Posted July 11, 2014 BrewManNH yea it's a problem for this operation Link to comment Share on other sites More sharing options...
BrewManNH Posted July 11, 2014 Share Posted July 11, 2014 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 GudeHow 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 Link to comment Share on other sites More sharing options...
yousefsamy Posted July 11, 2014 Author Share Posted July 11, 2014 Thank you alot In Arabic(مشكور) , , but can you give me the link ? Link to comment Share on other sites More sharing options...
BrewManNH Posted July 11, 2014 Share Posted July 11, 2014 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 GudeHow 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 Link to comment Share on other sites More sharing options...
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