jimihendrix857 Posted August 21, 2014 Share Posted August 21, 2014 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 Link to comment Share on other sites More sharing options...
junkew Posted August 21, 2014 Share Posted August 21, 2014 See examples iuiautomation FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets Link to comment Share on other sites More sharing options...
orbs Posted August 21, 2014 Share Posted August 21, 2014 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 Link to comment Share on other sites More sharing options...
ViciousXUSMC Posted August 21, 2014 Share Posted August 21, 2014 (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 August 21, 2014 by ViciousXUSMC Link to comment Share on other sites More sharing options...
junkew Posted August 25, 2014 Share Posted August 25, 2014 (edited) @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 August 25, 2014 by junkew FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets 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