Ilounah Posted April 10, 2013 Posted April 10, 2013 First of all im just starting learning Autoit script's Im not a expert of anything in programming my course is not related (Nursing ), But im a hobbyist of learning related programming code's. Anyway I've search the forum about using a GUI to open a full website, search if some topic can solved my queries. I just want to know if it is possible open a certain region of the website in a GUI, because I have a website it is www.outlaw-guild.tk or http://project.raijin.dx.am/ just want to capture the region of Announcement Box: thanks. Sorry for my bad english. >_<
water Posted April 10, 2013 Posted April 10, 2013 If you use the Internet Explorer then please have a look at the builtin IE UDF. Function _IECreateEmbedded allows to create a browser object in a GUI.But it might be hard to display just a region of a site. Ilounah 1 My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
Ilounah Posted April 10, 2013 Author Posted April 10, 2013 If you use the Internet Explorer then please have a look at the builtin IE UDF. Function _IECreateEmbedded allows to create a browser object in a GUI.But it might be hard to display just a region of a site.Thank's Sir ?, I just thinking of getting the screenshot or a print screen of that region but I think it would not be good if the content is not active or open I've read some topic about getting a print screen on a certain region. if there is no way out I'll gonna make a separate mysql display result and view announcement and learn the Function _IECreateEmbedded to view it.
UEZ Posted April 10, 2013 Posted April 10, 2013 Try this: #include <IE.au3> #include <GUIConstantsEx.au3> $hGUI = GUICreate("Announcment", 470, 400) $iCombobox = GUICtrlCreateCombo("http://project.raijin.dx.am/announcement/viewannouncement.php", 10, 14, 392) $iBtnGet = GUICtrlCreateButton("Get", 420, 4, 40, 40) $oIE = _IECreateEmbedded() GUICtrlCreateObj($oIE, 10, 50, 400, 350) GUISetState() Do Switch GUIGetMsg() Case $GUI_EVENT_CLOSE GUIDelete() Exit Case $iBtnGet _IENavigate($oIE, GUICtrlRead($iCombobox)) EndSwitch Until False Br, UEZ Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ
Ilounah Posted April 10, 2013 Author Posted April 10, 2013 (edited) Try this: #include <IE.au3> #include <GUIConstantsEx.au3> $hGUI = GUICreate("Announcment", 470, 400) $iCombobox = GUICtrlCreateCombo("http://project.raijin.dx.am/announcement/viewannouncement.php", 10, 14, 392) $iBtnGet = GUICtrlCreateButton("Get", 420, 4, 40, 40) $oIE = _IECreateEmbedded() GUICtrlCreateObj($oIE, 10, 50, 400, 350) GUISetState() Do Switch GUIGetMsg() Case $GUI_EVENT_CLOSE GUIDelete() Exit Case $iBtnGet _IENavigate($oIE, GUICtrlRead($iCombobox)) EndSwitch Until False Br, UEZ Nice it works thanks alot Sir so IE browser is been use, what if I want to use a incognito window of google chorome it is possible to be done? Edited April 10, 2013 by Gilva
UEZ Posted April 10, 2013 Posted April 10, 2013 There is a firefox UDF flying around here in the example section but never heard something about a chrome UDF. Maybe it is possible to switch to the incognito mode also in IE. Br, UEZ Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ
Ilounah Posted April 10, 2013 Author Posted April 10, 2013 There is a firefox UDF flying around here in the example section but never heard something about a chrome UDF. Maybe it is possible to switch to the incognito mode also in IE.Br,UEZThnanks for the information I'll make some research about using Firefox UDF , I start googling how to make google chrome my default browser and I got this one http://productforums.google.com/forum/#!topic/chrome/sYaZkNW8II4 so everytime I open a chrome.exe it will open in incognito window, And try to Imagine what if running "Run ()" chrome.exe inside a GUI and run the url for http://project.raijin.dx.am/announcement/viewannouncement.php this only my run in my imagination im not expert but I see some treads running some .exe files in GUI
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