Register
Page 4 of 4 First ... 234
Results 31 to 36 of 36
  1. #31
    Kados's Avatar
    Posts
    4
    Reputation
    0
    Tagged in
    0 Posts
    Add to this user's reputation
    Thank you for this, it was a easy setup and it works like a charm!

  2. #32
    Thanks for this! Very easy to setup

  3. #33
    Thank you for posting this. I tried it on a Windows XP computer and it works. The only problem I had is that it gives me an error message stating that the folder already exists and it creates a new folder TheUndermineJournal(1). It may be a problem only on Windows XP computers.

    I will see if I can find a solution.

    Thank you.

  4. #34
    Thanks for this works great.

  5. #35
    Awesome tip, thanks!

  6. #36
    Doing everything I explain below will update your Undermine data every time you start WoW in any way with no popup windows. This means starting WoW from the Battle.net app, from a shortcut, going into the WoW folder and double clicking the .exe, doesn't matter. Market data will be updated with no annoying windows.

    This requires WinRAR or 7-Zip.

    NOTES
    I linked the images below instead of displaying them since some of them may be too large for a post.
    I used Goldenrod as a highlight color instead of White just in case anyone isn't using the default dark forum theme.
    Everything in red may be different for you. Change accordingly.

    1) Make three files in your WoW addon directory named TUJ.bat, TUJ.vbs, and TUJ.ps1.


    2) Right click each file, open with Notepad. If you have Notepad++, use that.

    a) Paste one of the following code pieces in the TUJ.bat file based on which program you have. Save and close.

    Code:
    "C:\Program Files\WinRAR\WinRAR.exe" x -ibck -o+ TheUndermineJournal.zip
    OR
    Code:
    "C:\Program Files\7-Zip\7z.exe" x -aoa TheUndermineJournal.zip
    b) Paste the following in the TUJ.vbs file. Save and close.
    Code:
    Dim objShell,objFSO,objFile
    Set objShell = CreateObject("WScript.Shell")
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    strPath = "C:\Program Files\World of Warcraft\interface\addons\TUJ.ps1"
    If objFSO.FileExists(strPath) Then
    set objFile = objFSO.GetFile(strPath)
    strCMD = "powershell -nologo -windowstyle hidden -command " & Chr(34) & "&{" &_
    objFile.ShortPath & "}" & Chr(34)
    objShell.Run strCMD,0
    Else
    WScript.Echo "Failed to find " & strPath
    WScript.Quit
    End If
    c) Paste the following in the TUJ.ps1 file. Save and close.
    Code:
    $directory = "C:\Program Files\World of Warcraft\interface\addons\"
    cd $directory
    $object = New-Object Net.WebClient
    $url = "https://theunderminejournal.com/TheUndermineJournal.zip?key=key&realms=realm"
    $local = $directory + "\TheUndermineJournal.zip"
    $object.DownloadFile($url, $local)
    .\TUJ.bat

    3) Type "local security policy" in the Start menu and hit Enter.

    a) Click "Local Policies" on the left, then "Audit Policy", then double click "Audit process tracking".


    b) Check the "Success" block and click OK. Exit out of the Local Security Policy.


    4) Type "task scheduler" in the Start menu and hit Enter.

    a) Click "Create task..." on the right.


    b) Click the "Actions" tab, then the "New..." button on the bottom.


    c) Click "Browse...", navigate to your addons folder, and select the TUJ.vbs file. Click OK.


    d) Click the "Triggers" tab, then the "New..." button on the bottom.


    e) Choose "On an event" in the top dropdown menu, click "Custom" on the left, then click "New Event Filter...".


    f) Click the "XML" tab, check the "Edit query manually" box on the bottom, then click "Yes" on the popup.


    Paste the following code into that box, then click OK and OK again.

    (there is a space after each first carrot "<" due to a forum formatting issue, remove these spaces to use the code)
    Code:
    < QueryList>
      < Query Id="0" Path="Security">
        < Select Path="Security">*[System[(EventID=4688)]] and *[EventData[Data[@Name="NewProcessName"]="C:\Program Files\World of Warcraft\Wow-64.exe"]]
      < /Query>
    < /QueryList>
    Important: Wow-64.exe is the 64bit version. If you play 32bit or don't know, repeat d thru f and choose Wow.exe so you cover both with two triggers.

    g) There's no other required options, other than naming the task. My options are below.


    h) Click OK. You are done!


    You can also create a shortcut to the TUJ.vbs file and place it anywhere. Clicking this shortcut updates the data. You can get the new data in-game by using /reload to reload your UI if you're playing when you manually update. This works for any addon, but only works for existing files. Any new files, or file name changes, will not be loaded until you restart WoW. The files for Undermine data shouldn't change and if they do, it's a rare addon update deal. The file names and number of files haven't changed in years.

    Don't forget to do the "Set-ExecutionPolicy RemoteSigned" thing if you didn't read the first post. In the Start menu, type in "powershell" (no quotes), right click Windows PowerShell and choose "Run as administrator" (not the ISE or Modules). Copy this: "Set-ExecutionPolicy RemoteSigned" (no quotes), then right click the PowerShell window (it should automatically paste). Press Enter, type "y" (no quotes) and press Enter again.

    This is what the PowerShell window looks like after this is complete: http://i.imgur.com/MGxEQ7K.png


    As a final note, keep in mind that you are limited to 10 downloads within a rolling 23 hour 55 minute window. This means that if you start WoW 10 times within 23 hours and 55 minutes, you will not be able to update beyond that until 23 hours and 55 minutes have passed since 10 starts ago. If you don't start and quit WoW many times within a day, you don't have to worry about this.

    Visual example of this: http://i.imgur.com/LBQA0xe.gif



    BONUS INFORMATION

    I have discovered the interaction between Task Scheduler and Events while looking to improve on this thread. I also ran into another fun thing to do with this. I use NPCScan in-game, which requires the Cache folder to be deleted in order to get notifications of any rares you have already been notified of. I think every rare addon does this, like Silver Dragon. I used to have that folder deleted on a schedule from a program I have installed that deletes other stuff for me. I thought, hey, what if I can make a task that deletes the Cache folder every time I close WoW? GENIUS.

    1) Make a file in your main WoW directory named wowcache.bat.

    2) Right click that file, open with Notepad. If you have Notepad++, use that.

    a) Paste the following in the wowcache.bat file. Save and close.

    Code:
    tasklist /nh /fi "imagename eq Wow.exe" | find /i /v "Wow.exe" >nul
    if errorlevel 1 goto:eof
    tasklist /nh /fi "imagename eq Wow-64.exe" | find /i /v "Wow-64.exe" >nul
    if errorlevel 1 goto:eof
    rd /q /s "C:\Program Files\World of Warcraft\Cache"
    Warning: Only set this Cache folder. Do not delete the one found in the Data folder.
    Note: RD is the part that deletes the Cache folder, everything before it checks if there's another game running before deleting. This is to prevent deleting if, say, you're RaFing yourself or are a multiboxer.

    3) Repeat everything earlier in this post starting at #3 with c and f being different as changed below.

    c) Click "Browse...", navigate to your main WoW folder, and select the wowcache.bat file. Click OK.

    f) Click the "XML" tab, check the "Edit query manually" box on the bottom, then click "Yes" on the popup.

    Paste the following code into that box, then click OK and OK again.

    (there is a space after each first carrot "<" due to a forum formatting issue, remove these spaces to use the code)
    Code:
    < QueryList>
      < Query Id="0" Path="Security">
        < Select Path="Security">*[System[(EventID=4689)]] and *[EventData[Data[@Name="ProcessName"]="C:\Program Files\World of Warcraft\Wow-64.exe"]]
      < /Query>
    < /QueryList>
    Important: Wow-64.exe is the 64bit version. If you play 32bit or don't know, repeat d thru f and choose Wow.exe so you cover both with two triggers.
    (yes, this code is different than the other code)

    Once you went through h above, you are again done. Market data is now updated when you start WoW and the Cache folder is deleted when you exit WoW. Automation is fun.

    Side note: If you have an automatic data uploader program, like what Wowhead or WoWDB uses, I suggest delaying the task. I didn't run into an issue, but I'm assuming these programs need the Cache data, so delaying the task lets them use it after WoW closes before the folder gets deleted. The first checkbox in the trigger window from step e is where the delay setting is. I set 30 seconds.
    Last edited by Kanegasi; September 8th, 2014 at 10:59 PM. Reason: check if another game is running before deleting Cache

 

 

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