Scinner Posted August 17, 2013 Share Posted August 17, 2013 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')) Link to comment Share on other sites More sharing options...
Developers Jos Posted August 17, 2013 Developers Share Posted August 17, 2013 What would define the current page? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Scinner Posted August 17, 2013 Author Share Posted August 17, 2013 (edited) 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 August 17, 2013 by Scinner Link to comment Share on other sites More sharing options...
water Posted August 17, 2013 Share Posted August 17, 2013 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 (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
Scinner Posted August 17, 2013 Author Share Posted August 17, 2013 (edited) 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. expandcollapse popupFunctions 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 August 17, 2013 by Scinner Link to comment Share on other sites More sharing options...
water Posted August 17, 2013 Share Posted August 17, 2013 Function OpenGetURL() should do what you need. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
Scinner Posted August 17, 2013 Author Share Posted August 17, 2013 (edited) 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 August 17, 2013 by Scinner Link to comment Share on other sites More sharing options...
water Posted August 17, 2013 Share Posted August 17, 2013 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 (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
Scinner Posted August 17, 2013 Author Share Posted August 17, 2013 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! Link to comment Share on other sites More sharing options...
Scinner Posted August 20, 2013 Author Share Posted August 20, 2013 I want an _IEBodyReadHTML function but for Opera Link to comment Share on other sites More sharing options...
FireFox Posted August 20, 2013 Share Posted August 20, 2013 I want to be rich works too. Link to comment Share on other sites More sharing options...
Scinner Posted August 20, 2013 Author Share Posted August 20, 2013 I guess Im not that realistic but you gotta keep the faith 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