Sign in to follow this  
Followers 0
Daniza

GUI BROWSER

7 posts in this topic

First of all im just starting learning Autoit script's Im not a expert of anything in programming my course is not related (Nursing :sweating:), 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. >_<

Share this post


Link to post
Share on other sites



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.

1 person likes this

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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!
¯\_(ツ)_/¯

Share this post


Link to post
Share on other sites

#5 ·  Posted (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 :D thanks alot :thumbsup: 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 by Gilva

Share this post


Link to post
Share on other sites

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!
¯\_(ツ)_/¯

Share this post


Link to post
Share on other sites

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

Thnanks for the information I'll make some research about using Firefox UDF :thumbsup: , 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 :sweating:

Share this post


Link to post
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
Sign in to follow this  
Followers 0