
#MOZYHOME INSTALL FOR MAC#

You don't need to do this part, or customize it yourself with whatever text file you want. I've put pskill.exe into a folder called PSTools in my Program Files folder, but again, if you've put it elsewhere, make sure you put the right path in there.įinally, the last line opens a text file called finishedbackup.txt that I'd prewritten and saved in my scripts folder that just simply says " Finished backup!" I just put it in there to let me know the backup finished successfully. I'd featured PSKill before, but basically it force closes the specified processes. Once it finishes, it runs PSKill to kill the mozybackup.exe and mozystat.exe processes. The script is paused at this point until that phrase in that window pops up. The first line of this next section waits for the Mozyhome window to display the term " 1 minute ago," which would show up as soon as the backup finishes. The last line clicks the " Start Backup" button on the Mozyhome window, which starts the backup. This part waits for activates the Mozyhome window if it hadn't already ( wxWindowClassNR is the ahk_class or window class of the Mozyhome window). The long sleep times allow time for Mozyhome to properly load in plenty of time.

The second run command brings up the Mozyhome window to the top of the desktop. The reason I call the program twice is because mozystat.exe usually starts minimized in the system tray, where I can't get at it. If you installed Mozyhome into a different directory, change the file path as appropriate. The next three lines sets Autohotkey to actively and thoroughly read the text inside currently open windows. The first line makes sure only one instance of the script is running. This part kind of sets the tone for the rest of the script. Run, C:\Documents and Settings\Arvin\My Documents\scripts\finishedbackup.txtĪlright, now let's go through each part of the script to explain what it does, in case you need to alter parts of it later on (which I'm sure you'll have to). Run, C:\Program Files\PSTools\pskill.exe "mozystat.exe" Run, C:\Program Files\PSTools\pskill.exe "mozybackup.exe" WinWait, ahk_class wxWindowClassNR, 1 minute ago WinWaitActive, ahk_class wxWindowClassNR, IfWinNotActive, ahk_class wxWindowClassNR,, WinActivate, ahk_class wxWindowClassNR, Run C:\Program Files\MozyHome\mozystat.exe
#MOZYHOME INSTALL FULL#
Here's the full script, which I've called mozybackup.ahk:
/memopal-logo-5980897d685fbe001177d97d.png)
So here's a handy Autohotkey script I've written that'll automate starting, running, and killing Mozyhome automatically. As I mentioned in a previous post, I really like Mozyhome but I don't like having it constantly running in the background it really only needs to run when it performs a backup, and any other time it shouldn't be wasting my RAM and CPU.
