Jump to content
Sign in to follow this  
jimihendrix857

Wintask Macro Software Method vs Autoit Method

Recommended Posts

jimihendrix857

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

Share this post


Link to post
Share on other sites
orbs

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

Share this post


Link to post
Share on other sites
ViciousXUSMC

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

Share this post


Link to post
Share on other sites
junkew

@orbs: Can you maybe give some direction in IUIAutomation thread why its more complex compared to IE.AU3 so I can work on simplifying (or simplespying)

Example 32 gives an simple overview on how to open three different browsers and open an url

Edited by junkew

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  

×