Jump to content
Sign in to follow this  
Scinner

_INetGetSource question?

Recommended Posts

Scinner

Is there a way that I can use _INetGetSource to get the source off the current page instead of giving the url?

#include <Inet.au3>
ConsoleWrite(_INetGetSource('http://www.autoitscript.com'))

Share this post


Link to post
Share on other sites
Scinner

The page Im currently viewing in my web browser.

Edit:

Its behind a login. And if I just use _INetGetSource and the url it wont get the source I want.

Edited by Scinner

Share this post


Link to post
Share on other sites
water

Then I suggest to use an UDF to access the browser properties and then pass the URL of the currently displayed page to INetGetSource.

UDFs for IE, FF and Opera are available.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2018-09-01 - Version 1.3.4.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
Scinner

Then I suggest to use an UDF to access the browser properties and then pass the URL of the currently displayed page to INetGetSource.

UDFs for IE, FF and Opera are available.

I use Opera.

Do the Opera UDF contain commands for that? Have looked at it but cant find it.

Functions List:
               User's funcs...
                               1)_OperaFindDir
                               2)_OperaGetDir
                               3)_OperaGetDownloadsDir
                               4)_OperaGetVersion
                               5)_OperaGetTitle
                               6)_OperaGetProfileDir
                               7)_OperaGetMailDir
                               8)_OperaGetUserJSDir
                               9)_OperaGetPluginsDir
                               10)_OperaGetSessionFiles
                               11)_OperaGetSkinFile
                               12)_OperaGetLangFile
                               13)_OperaGetBookmarksFile
                               14)_OperaGetCacheDir
                               15)_OperaGetConfigFile
                               16)_OperaSetConfigFile
                               17)_OperaSetSkinFile
                               18)_OperaSetUserJSDir
                               19)_OperaSetLangFile
                               20)_OperaSelectFolder
                               21)_OperaAddMenuItem
                               22)_OperaRemoveMenuItem
                               23)_OperaIsRunning
                               24)_OperaRun
                               25)_OperaClose
                               26)_OperaKill
                               27)_OperaRestart
                               28)_OperaScreenCapture
                               29)_OperaMultiUserModeIsOn
                               30)_Opera_Integration_Example
                               31)_OpenGetURL
                               32)_OperaToggleMenuItemState
    
               internal funcs...
                               1)__Opera_WinGetTitleEx
                               2)__Opera_WinGetTitleByPID
                               3)__Opera_ProcessPathExists
                               4)__Opera_ProcessGetPath
                               5)__Opera_PathIsFolder
                               6)__Opera_PathIsOperaDir
                               7)__Opera_PathIsOperaProfileDir
                               8)__Opera_PathIsOperaConfigFile
                               9)__Opera_PathIsOperaLangFile
                               10)__Opera_PathIsOperaSkinFile
                               11)__Opera_PathIsOperaBookmarksFile
                               12)__Opera_PrefixStrIsOperaConfig
                               13)__Opera_ConfirmExitOperaWinExists
                               14)__Opera_Correct_Opera_Path
                               15)__Opera_GetOperaPIDs
                               16)__Opera_GetOperaPrefsFileName
                               17)__Opera_GetOperaPageHandle
                               18)__Opera_EnumOperaChildWindowsProc
                               19)__Opera_ExpandOperaMenuSectClassName
                               20)__Opera_Backup_Config
                               21)__Opera_FileNewName
                               22)__Opera_UTF8ToAnsi
                               23)__Opera_StringIsUTF8Format
                               24)__Opera_StringToUTF
                               25)__Opera_IniWriteToPos
                               26)__Opera_IniDeleteRegExp
                               27)__Opera_WinAPI_FindWindowEx
                               28)__Opera_WinAPI_GetClassName
                               29)__Opera_WinAPI_PathRemoveFileSpec
                               30)__Opera_WinAPI_AssocQueryString
Edited by Scinner

Share this post


Link to post
Share on other sites
water

Function OpenGetURL() should do what you need.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2018-09-01 - Version 1.3.4.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
Scinner

Function OpenGetURL() should do what you need.

 

Thx mate! Will look in to that!!

Edit: Would be nice with an example script. Im quiet inexperienced in AutoIt.

Edited by Scinner

Share this post


Link to post
Share on other sites
water

Sorry, didn't find examples for this UDF.

But have a look at the UDF file itself. Every function has a header describing how to use the parameters.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2018-09-01 - Version 1.3.4.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
Scinner

Sorry, didn't find examples for this UDF.

But have a look at the UDF file itself. Every function has a header describing how to use the parameters.

Ok, thx!

Share this post


Link to post
Share on other sites
Scinner

I want an _IEBodyReadHTML function but for Opera :)

Share this post


Link to post
Share on other sites
FireFox

I want to be rich works too.


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites
Scinner

I guess Im not that realistic but you gotta keep the faith :)

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  

×