Jump to content

Recommended Posts

Posted

Well I made the mistake of writing a program within the not free software called wintask....Now I know better! Autoit does everything plus more AND its free!

Im sure autoit does what Im looking for but I cant seem to get an answer. 

Looking for the appropriate equivalent commands to the following Wintask commands:

  • CaptureHTML - Captures the text of a specified HTML element
  • ClickHTMLElement - Clicks the specified HTML element in the current Web page

Can anyone help with this?

Thanks

Posted

the IE UDF has what you need, and much more - and simpler then IUIAutomation. it's all in the AutoIt help.

Signature - my forum contributions:

Spoiler

UDF:

LFN - support for long file names (over 260 characters)

InputImpose - impose valid characters in an input control

TimeConvert - convert UTC to/from local time and/or reformat the string representation

AMF - accept multiple files from Windows Explorer context menu

DateDuration -  literal description of the difference between given dates

Apps:

Touch - set the "modified" timestamp of a file to current time

Show For Files - tray menu to show/hide files extensions, hidden & system files, and selection checkboxes

SPDiff - Single-Pane Text Diff

 

Posted (edited)

Should be something like this:

Open Page: http://www.autoitscript.com/autoit3/docs/libfunctions/_IECreate.htm

Click an Element: http://www.autoitscript.com/autoit3/docs/libfunctions/_IEAction.htm

Get Text inside Body of HTML: http://www.autoitscript.com/autoit3/docs/libfunctions/_IEBodyReadText.htm

 

Tested:

#include <IE.au3>


$ToRead = _IECreate("http://www.autoitscript.com/forum/topic/163681-wintask-macro-software-method-vs-autoit-method/") ;Open Website
$Read = _IEBodyReadText($ToRead) ;Read Contents of the site
$lFile = FileOpen(@DesktopDir & "\WebRead.txt", 2) ;Open file for read/write and clears contents each time the script is run
FileWrite($lFile, $Read) ;Write text to file
FileClose($lFile) ;Closes file for read/write to make it avalible
_IEQuit($ToRead) ;Closes website

 

Edited by ViciousXUSMC

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...