-Reality is nothing... perception is everything-
But for now, I'm just happy that I haven't had a single problem.
-Reality is nothing... perception is everything-
The pop-up doesn't really bother me. By the time I notice it, it's gone.
The only Goblin I know that is also a Dwarf.
thank you very much for taking the time to share this. i was wondering if its possible to set the trigger to the wow launcher exe being started. dont know if this is possible. again ty so much for this.
Had to make an account just to thank you for this. Works wonderful, keep it up!
Thank you very much for your post, but I got an error message while using this script:
Extracting the Zip file doesn't work, so it seems. I don't know if this is somehow related, but I removed the built-in zip file support from Windows 7 a while ago. I modified your script to use WinRar for extracting and now it works without problems:Code:Exception calling "NameSpace" with "1" argument(s): "Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))" At D:\Games\World of Warcraft\Interface\AddOns\tuj2.ps1:14 char:33 + $zip_file = $shell_app.namespace <<<< ((Get-Location).Path + "\$filename") + CategoryInfo : NotSpecified: (:) , MethodInvocationException + FullyQualifiedErrorId : ComMethodTargetInvocation You cannot call a method on a null-valued expression. At D:\Games\World of Warcraft\Interface\AddOns\tuj2.ps1:16 char:38 + $destination.Copyhere($zip_file.items <<<< (), 0x14) + CategoryInfo : InvalidOperation: (items:String) , RuntimeException + FullyQualifiedErrorId : InvokeMethodOnNull
You have to create the file "extract.bat" in the same folder as TUJ.ps1 and it has to look something like this:Code:#This should be set your your base addon directory in wow $directory = "C:\Users\Public\Games\World of Warcraft\Interface\addons\" #fix powershell's idiotic notion working directory cd $directory # Download the file $object = New-Object Net.WebClient #your undermine addon link $url = 'http://your.addon.link.goes.here' $local = $directory + "\TheUndermineJournal.zip" $object.DownloadFile($url, $local) # Extract the file .\extract.bat
Code:D:\Programme\WinRAR\WinRAR.exe x -o+ TheUndermineJournal
Last edited by ottoman; February 16th, 2012 at 03:50 AM.
Hi, I have the script up and running, but I was wondering if theres a way to set a delay, I have 2 installations of WoW on the same machine on separate HDD and I have set up one task with both actions inside, I'm wondering if theres an argument that I can add that'll run the second action after the first one completes, or after 5 seconds or something.
I was trying to run this script from Task Schedular to ensure it was working properly and that the zip file was being created and the addon extracted but nothing appeared to happen. The command prompt window briefly appears and then vanishes and I see no errors in the window.
To double check I tried to run the script from within PowerShell itself and I got these errors:
I run the script using this command ./tuj.ps1 and got the following output:
Here's my TUJ.ps1 script (with my key obfuscated):Code:Exception calling "DownloadFile" with "2" argument(s): "Unable to connect to the remote server" At D:\World of Warcraft\Interface\AddOns\TUJ.ps1:10 char:1 + $object.DownloadFile($url, $local) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) , MethodInvocationException + FullyQualifiedErrorId : WebException You cannot call a method on a null-valued expression. At D:\World of Warcraft\Interface\AddOns\TUJ.ps1:16 char:1 + $destination.Copyhere($zip_file.items(), 0x14) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) , RuntimeException + FullyQualifiedErrorId : InvokeMethodOnNull PS D:\World of Warcraft\Interface\AddOns>
I'm running on Windows 7 x64. I also notice that the script has a .ps1 extension. Does this signify a PowerShell 1.0 version? I'm not sure but I think I may be running PowerShell 2.0 or maybe even 3.0 RC (I can;t seem to get version information on my installed PowerShell). Could the $object.DownloadFile API call have changed in later PowerShell versions and is the cause of the problem?Code:#This should be set your your base addon directory in wow $directory = "D:\World of Warcraft\Interface\AddOns\" #fix powershell's idiotic notion working directory cd $directory # Download the file $object = New-Object Net.WebClient #your undermine addon link $url = 'https://eu.theunderminejournal.com/TheUndermineJournal.zip?key=OBFUSCATED=A-Darkmoon%20Faire' $local = $directory + "\TheUndermineJournal.zip" $object.DownloadFile($url, $local) # Extract the file $shell_app = new-object -com shell.application $filename = "TheUndermineJournal.zip" $zip_file = $shell_app.namespace((Get-Location).Path + "\$filename") $destination = $shell_app.namespace((Get-Location).Path) $destination.Copyhere($zip_file.items(), 0x14)
Last edited by Seefer; July 17th, 2012 at 06:08 AM.
EDIT:: Fixed, works perfectly now.
Used Notepad++ but didn't save the extension as .ps1 but as nothing ;S hehe
Last edited by Mirabis; July 29th, 2012 at 01:23 PM.