Register
Page 2 of 4 First 1234 Last
Results 11 to 20 of 36
  1. #11
    Blitzed's Avatar
    Posts
    39
    Reputation
    2
    Tagged in
    6 Posts
    Add to this user's reputation
    Quote Originally Posted by Kanegasi View Post
    Any way to hide the popup command prompt or have the process occur in the background? It's not de-focusing my WoW window, but it's a little annoying having a command prompt pop out on top, then disappear after a second or so.
    you cant unless you get Ur hands on a program if i am correct.

    I think MS did it so people couldn't run batch scripts hidden for security purposes only way around is by program or by running your game in full screen mode.
    ~ Blitzed
    -Reality is nothing... perception is everything-

  2. #12
    Aeriwen's Avatar
    Posts
    28
    Reputation
    16
    Tagged in
    11 Posts
    Add to this user's reputation
    Quote Originally Posted by Kanegasi View Post
    Any way to hide the popup command prompt or have the process occur in the background? It's not de-focusing my WoW window, but it's a little annoying having a command prompt pop out on top, then disappear after a second or so.
    I was peeved about that myself. I think with a bit more effort I may be able to wrap it in another script as a work around, but they look clunky, and unfortunately figuring out the solutions (which are all detailed in heavy programmer jargon) has thus far yielded no results. I'll continue looking into it though. My programming skills are quite limited. I have some improvements that I'd like to do, and it is definitely on the list.

    But for now, I'm just happy that I haven't had a single problem.

  3. #13
    Blitzed's Avatar
    Posts
    39
    Reputation
    2
    Tagged in
    6 Posts
    Add to this user's reputation
    Quote Originally Posted by Aeriwen View Post
    But for now, I'm just happy that I haven't had a single problem.
    Works perfect for me as well, i run windowed at times and haven't had a problem with it stealing focus other than it pops every 6hrs i can live with that as long as i can stay on the lazy side (not downloading it manually) i am happy camper
    ~ Blitzed
    -Reality is nothing... perception is everything-

  4. #14
    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.

  5. #15
    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.

  6. #16
    Had to make an account just to thank you for this. Works wonderful, keep it up!

  7. #17
    Thank you very much for your post, but I got an error message while using this script:

    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
    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:
    #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
    You have to create the file "extract.bat" in the same folder as TUJ.ps1 and it has to look something like this:

    Code:
    D:\Programme\WinRAR\WinRAR.exe x -o+ TheUndermineJournal
    Last edited by ottoman; February 16th, 2012 at 03:50 AM.

  8. #18
    Dreamstorm's Avatar
    Posts
    5
    Reputation
    0
    Tagged in
    0 Posts
    Add to this user's reputation
    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.

  9. #19
    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:

    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>
    Here's my TUJ.ps1 script (with my key obfuscated):

    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)
    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?

    Many thanks
    Last edited by Seefer; July 17th, 2012 at 06:08 AM.

  10. #20
    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.

 

 

Similar Threads

  1. [ Addon/API] Suggestion for automatic data updates
    By Amandria in forum Official Forum of The Undermine Journal
    Replies: 2
    Last Post: February 24th, 2011, 08:55 AM
  2. The Undermine Journal Addon
    By Kathroman in forum Archive (Addons and Macros)
    Replies: 7
    Last Post: February 14th, 2011, 02:59 PM