Jump to content

raoool

Members
  • Posts

    6
  • Joined

  • Last visited

raoool's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Found your script looking specifically for something to automate Spybot S&D scans. (Malware Bytes would also be useful) but (admittedly after just a few minutes) am unable to get it to run. Great concept (generic program runner doing download/install/update...) but can generate an app-specific script so quickly that figuring yours out is difficult to justify. If you can provide dummy-level instructions on the Spybot runner, maybe that would help us better understand your script, set off some light bulbs. I suspect more response/requests/activity would happen from there.
  2. how do you match a title exactly when it contains the ( and ) characters e.g. The Program (offline) Partial match won't work. Anyone? Thanks in advance.
  3. Thank you thank you thank you
  4. Simple one, hopefully... What is syntax for FileWriteLine if I want to include special character (e.g. tab) in the line being written? e.g. FileWriteLine ($logname, $filename & 'VT' & $fileextension) where VT is the tab character... have tried with {VT}, @VT, every conceivable combination of " and ' and other than writing the literal VT, can't get this one. anyone?
  5. ;Need script to retrieve and process two files on an hourly basis using a ;specific GUI, The GUI requires user click a button, wait until the file ;is downloaded, then click a series of buttons/menus to acknowledge download. ;Before running the acknowledge, need to make a copy of it. ; ;The script (excerpts below) works if there are files to download. But if ;there are no files to download, things hang at the acknowledge process ;(required series of clicks in the GUI done with mouse movements) ; ;Each retrieve is to get exactly two files each hour (launched in scheduler). ;Somtimes there are no files to retrieve, sometimes just one; but the only ;indication from the GUI either way is a change on the button text. If there ;are files available, text changes from 'Get File' to 'Cancel Download'. ;It can take up to three seconds for the button to change so we need to wait ;that long before assuming there are no files, then move on (or not) to the ;'acknowledge' process Dim $filecount Opt( "MouseCoordMode", 0) Opt( "WinTitleMatchMode", 3) Opt( "WinTextMatchMode", 2) Opt( "WinSearchChildren", 0) Opt( "TrayIconDebug", 1) ;stuff here to login and launch the downloader ;real basic approach to getting two files (duh) For $filecount = 1 to 2 ;This count changes regularly (need quick script edit to accomodate) ; ;Downloads Jobs WinWait( "Vendor Downloader", "") If Not WinActive( "Vendor Downloader", "") Then WinActivate("Vendor Downloader", "") WinWaitActive("Vendor Downloader", "") ; ;The GUI requires click of button2 to initiate a download ;If there are no files, nothing happens. If there are files, the ;button text changes to 'Cancel Download' (we hope within three seconds ;then back to 'Get' when the download is complete. The copy and acknowledge ;steps must take place before we can get the next file and the acknowledge ; process cannot begin until the file is completely downloaded. ; ControlClick ( "Vendor Downloader", "", "Button2") WinWait( "Vendor Downloader", "&Cancel download", 30) WinWait("Vendor Downloader","&Get") Sleep(3000) FileCopy ( "C:\Program Files\GetIt\*.*", "c:\archive\", 0 ) ;so we watch the button, wait until it changes to Cancel then back to ;get before proceeding to the acknowledge ;NEED SMARTER LOOP READING THIS BUTTON ;given the limitations described ;acknowledge WinWait("Vendor Downloader","") If Not WinActive("Vendor Downloader","") Then WinActivate("Vendor Downloader","") WinWaitActive("Vendor Downloader","") MouseMove(45,201) MouseDown("right") MouseUp("right") Sleep(500) MouseMove(121,209) MouseDown("left") MouseUp("left") Sleep(3000) MouseMove(151,108) MouseDown("left") MouseUp("left") Sleep(1000) MouseMove(102,203) MouseDown("right") MouseUp("right") Sleep(1000) MouseMove(132,237) MouseDown("left") MouseUp("left") Sleep(1000) If Not WinActive("Please confirm!","") Then WinActivate("Please confirm!","") WinWaitActive("Please confirm!","") MouseMove(94,89) MouseDown("left") MouseUp("left") Sleep(3000) Next ;to go back and get the next job, but... ;Close and do stuff with the files WinClose("Vendor Downloader", "") Sleep (5000) Runwait ("C:\some other process")
  6. AutoIt newbie here -- nice tool! Am automating a a file retrieval GUI. Interface has button labelled 'GetFiles' (spy shows as Class: Button3 and Text: &GetFiles). On selecting the button, text changes to 'CancelRetrieve' until the download is complete and then returns to 'GetFiles'. Once file download is complete and before retrieving next file, series of additional steps (button clicking within the GUI) are necessary to process locally. Need help with syntax to create a loop to get files continuously until all files have been retrieved but have two problems: 1) Only indication that download has begun is the button text change. This is sometimes instantaneous, other times, minutes. Using wait with max potential wait time limits benefits of automating. What syntax would allow me to watch this button and assure the button text first changes to 'CancelRetrieve' then back to 'GetFiles' before proceeding to the next step(s)? 2) App needs to loop per above until no more files are available to download but only indication that there are no more files to download is hidden text under another button on the GUI labelled 'Info'. Selecting 'info' opens a new window (spy sees Title 'Info' text box Class: SysListView321 and Text: 'List1') with a log of every transaction the GUI has performed. Within that list (among very detailed descriptions of the file download steps) is an 'error: no more files'. Need help with parsing the text to see if this exists to know whether to continue the download loop or move on. Any inputs appreciated! Paul
×
×
  • Create New...