Jump to content

GUI BROWSER


Ilounah
 Share

Recommended Posts

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

Link to comment
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.

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2022-02-19 - Version 1.6.1.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 (NEW 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

 

Link to comment
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.

Link to comment
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!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Link to comment
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

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
Link to comment
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!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Link to comment
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:

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