Jump to content

Search the Community

Showing results for tags '_IEDocReadHTML'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Location


WWW


Interests

Found 3 results

  1. Hello, I need to pull data from company intranet website. I created a script that I can give a list of project numbers and it will open up the the related webpage for each project, save the html comments for that project, then move on to the next. However my problem comes in that each time I open up a project it locks it for other users, and if you just exit the page it keeps it locked, you have to actually press the "close" button on the page. So I'm not sure how to deal with this as I end up just locking every project in my name when I run my program as I don't understand the nature of how the website is built. I don't understand how to close with just using my automation code without manually having to press the stupid button. My Function: Func Getscript($ProjectAddress) ;getting the page source code and storing it into text file for easy reading it $file = FileOpen(@ScriptDir & "\source.txt", 10) $IE = _IECreate($ProjectAddress & ".html", 0, 0) $source = _IEDocReadHTML($IE) FileWrite($file, $source) $target_source = _StringBetween($source, "<BODY>", "</BODY>") ; only take content between the specified tags _IEQuit($IE) FileClose($file) return $target_source[0] EndFunc ;==>Getscript Source Code I got from website that I think is relevant: function closeForm(){ if(topButtonEnabled("closeButton")){ parent.mainFrame.closeForm(); } } <button id="closeButton" class="saveCloseButton" style="LEFT: 77px;" onclick=closeForm()>&nbsp;Close&nbsp;</button> Any Ideas of how to tell website to either activate the closeform function or just give it the command to close? Thanks
  2. Good Morning All AutoIT Gurus, Does anyone know how I can get the right responses for Inet.au3 or IE.au3 for sites that check your browser, os, etc using Javascript? For some reason the source is empty using the built-in tools in AutoIT... doesn't contain the version information when reading using inetgetsource or iedocreadhtml ... The point is to find out the latest version automatically using AutoIT tools. Example: https://get.adobe.com/flashplayer/ #include <Inet.au3> $OpenHTML01 = _INetGetSource("https://get.adobe.com/flashplayer/") MsgBox (0, "", $OpenHTML01)A typical page response would include... "Version 18.0.0.232 System requirements" ... within the <div id="autoSelectedVersion"> tag. Thanks!!! UPDATE: I believe it's this file that determines what OS, language, x32, x64, browser, etc that you are using and then reports it back... https://wwwimages2.adobe.com/downloadcenter/js/live/polarbear.js
  3. I want to extract the html code from more links so I use this function : _IEDocReadHTML . But the problem is that it requires an object as parameter : "Object variable of an InternetExplorer.Application, Window or Frame object" , instead of requiring the address of the link . What function can I use that returns this kind of variable without running or loading the link ?( because I need to do this for many links so I can't wait for all of them to load )
×
×
  • Create New...