Jump to content

ontheteam

Members
  • Posts

    8
  • Joined

  • Last visited

ontheteam's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. nvm. I found Jos's script
  2. Can your SMTP scripts be used to send attachments? (My experience with AutoIt is purely execute simple batch commands and windows automation (mouse clicks). I'm not familiar with the whole _GUI aspect.)
  3. Is there an autoit function that will return the full path of a running process? I've been scouring the help file to no avail.
  4. I am working on a script to update SpywareBlaster 4.1. The script is run from the same folder as 'spywareblaster.exe". My code follows: ; Script Start - Add your code below here Run("spywareblaster.exe") Winwait("SpywareBlaster") Sleep(3000) ; Open Updates window ControlClick("SpywareBlaster","","[ClassNN:ThunderRT6UserControlDC16]","left",1,23,30) Sleep(1000) ControlClick("SpywareBlaster","","[ClassNN:ThunderRT6UserControlDC16]","left",1,23,276) Sleep(2000) ControlSend("SpywareBlaster","","[ClassNN:ThunderRT6UserControlDC1]","{SPACE}");press the update button Sleep(45000);wait for updates to download - adjust setting as needed ControlClick("SpywareBlaster","","[ClassNN:ThunderRT6UserControlDC17]","left",1,23,30);return to Protection Status window Sleep(8000);wait for screen to load and for Enable All Protection option to appear ControlClick("SpywareBlaster","","[ClassNN:ThunderRT6FormDC1]","left",1,56,390);Click Enable All Protection Everything works fine up to the final line. Is ControlClick incompatible with a 'form' control? I'd appreciate any guidance you may be able to provide.
  5. Nevermind that last post. The error was in the _FileListToArray flag setting of 1 (files only) instead of 2 (folders). Thank you for pointing the way.
  6. I get this error with the example script:
  7. I primarily use AutoIt for doing unattended application setups. I am trying to write a script to install a custom user profile in Firefox for Windows. Firefox does not create the profile directory until its first run, but upon first run it creates a new user profile here: "%USERPROFILE%\Application Data\Mozilla\Firefox\Profiles\uf0d7p36.default\" The problem I am running into is that the final directory is named randomly; in this case "uf0d7p36.default" could just as well be "whatever.default". How can I write a script that will discover the name of this folder? Upon first install, this is the ONLY directory/folder inside "%USERPROFILE%\Application Data\Mozilla\Firefox\Profiles\" Anyway, my idea for the script is this: Run("firefox.exe") WinWait("Import Wizard",,10);wait for Firefox to create its profile structure ProcessClose("firefox") ;Now the script needs to discover the path of the newly created profile directory, so I can tell 7zip where to extract the profile to. Other info: Not sure if this is useful, but there is a text file "%USERPROFILE%\Application Data\Mozilla\Firefox\Profiles\profiles.ini" that provides Firefox with this info: [General] StartWithLastProfile=1 [Profile0] Name=default IsRelative=1 Path=Profiles/uf0d7p36.default Default=1 Also, that directory name is listed nowhere in the registry. I'd be grateful for any assistance.
×
×
  • Create New...