redfenix Posted November 4, 2012 Share Posted November 4, 2012 [sorry for my english] I need help for my script, after i download html source from website, i must list images with specific extension in an array. So take all array data and insert these in a ListView (Form). I would like to know how to do this. I hope I explained correctly, Thanks in advance Link to comment Share on other sites More sharing options...
water Posted November 4, 2012 Share Posted November 4, 2012 Have a look at the IE UDF which comes with AutoIt. Function _IEImgGetCollection should return "a collection object variable representing the IMG tags in the document or a single image by index." 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...
redfenix Posted November 4, 2012 Author Share Posted November 4, 2012 Thanks, if i want get video files?? Link to comment Share on other sites More sharing options...
water Posted November 4, 2012 Share Posted November 4, 2012 You were talking about images. What do you need: images or videos? 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...
redfenix Posted November 4, 2012 Author Share Posted November 4, 2012 Both really Link to comment Share on other sites More sharing options...
water Posted November 4, 2012 Share Posted November 4, 2012 Then I would first do the image thing as I suggested above. When you succeed you can do the video stuff. 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...
redfenix Posted November 4, 2012 Author Share Posted November 4, 2012 (edited) expandcollapse popup#include #include #include #include #Include Opt("GUIOnEventMode", 1) #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("ImgTest", 497, 208, 501, 344) GUISetOnEvent($GUI_EVENT_CLOSE, "Form1Close") $List = GUICtrlCreateListView("", 16, 32, 465, 161) _GUICtrlListView_InsertColumn($List, 0, "Filename", 120) _GUICtrlListView_InsertColumn($List, 1, "Source", 200) _GUICtrlListView_InsertColumn($List, 2, "WxH", 140) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### Search() While 1 Sleep(100) WEnd Func Form1Close() Exit EndFunc Func Search() Local $ie = _IECreate("http://www.autoitscript.com/",0,0) Local $imgs = _IEImgGetCollection($ie) Local $nImg = @extended $num = -1 For $img In $imgs $num = $num + 1 _GUICtrlListView_AddItem($List, $img.nameprop, $num) _GUICtrlListView_AddSubItem($List, $num, $img.src,1) _GUICtrlListView_AddSubItem($List, $num, $img.width & "x" & $img.height,2) Next EndFunc Ok and now, for video files? Edited November 4, 2012 by redfenix Link to comment Share on other sites More sharing options...
Solution water Posted November 4, 2012 Solution Share Posted November 4, 2012 Use function _IETagNameGetCollection to get a collection of all "video" tags or however they are tagged. 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...
redfenix Posted November 4, 2012 Author Share Posted November 4, 2012 I can't understand how to use this function, can you give me an example? Or another function... Link to comment Share on other sites More sharing options...
water Posted November 4, 2012 Share Posted November 4, 2012 Did you have a look at the example script in the help file? 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...
redfenix Posted November 10, 2012 Author Share Posted November 10, 2012 Thanks for all, done! Link to comment Share on other sites More sharing options...
careca Posted November 10, 2012 Share Posted November 10, 2012 Weird, but, sometimes my posts "remove" the includes, just as your's, was it on purpose? Spoiler Renamer - Rename files and folders, remove portions of text from the filename etc. GPO Tool - Export/Import Group policy settings. MirrorDir - Synchronize/Backup/Mirror Folders BeatsPlayer - Music player. Params Tool - Right click an exe to see it's parameters or execute them. String Trigger - Triggers pasting text or applications or internet links on specific strings. Inconspicuous - Hide files in plain sight, not fully encrypted. Regedit Control - Registry browsing history, quickly jump into any saved key. Time4Shutdown - Write the time for shutdown in minutes. Power Profiles Tool - Set a profile as active, delete, duplicate, export and import. Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes. NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s. IUIAutomation - Topic with framework and examples Au3Record.exe 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