View Single Post
08/23/15, 07:38 PM   #26
dopiate
AddOn Author - Click to view addons
Join Date: Jun 2014
Posts: 142
Think outside the box

Originally Posted by domintheus View Post
So the saved variables file will only change when the ui is loaded, reloaded, or when the user logs out?
Correct. Every saved variables file is loaded and then saved during logoff, toon switch or reloadui.

Originally Posted by domintheus View Post
If so, I imagine a program could be made to watch the saved variables file for changes. There's a few concerns about this, though. Firstly, people shouldn't simply run executables that they find on the internet, there could be security concerns with that. Is there any other way to send the http requests when the saved variables file is updated?
You don't have to compile it -- you could write a simple vbs that runs in the background and monitors for your conditions and send when you detect changes.

So you would launch ESO via the VBS

Notice you check the file properties first (with DateLastModified you get TIME and DATE)

Code:
Set objShell = WScript.CreateObject ("WScript.shell")
set objFSO = CreateObject("Scripting.FileSystemObject")
set file = objFSO.GetFile(SAVED VARIABLE FILE NAME/PATH HERE)
lastUpdated =  file.DateLastModified
objShell.run """" & "cmd /c C:\Program Files (x86)\Zenimax Online\The Elder Scrolls Online\game\client\eso.exe" & """"
from that point on your vbs could sit in memory and sleep for however long you want, wake up and then check on the file.DateLastModified and compare the two, then go back into sleep.

If there is a difference, then you can send your http request.

Create a loop that checks that ESO is running.

While the loop is running wscript.sleep for periods of time, then check for file attribute changes.
No reason to check every millisecond :-)

Then if you detect and change - do your http thing and if you base your loop on "is ESO running" then when the result is false you know for a fact the files have changed and do what you need to again.

I've done this type of thing at my office before. This solves your .exe issue. Vbs is just a text file and it can do everything you want.

If this interests you, let me know. I could assist you with the code.

-d

Last edited by dopiate : 08/24/15 at 08:50 AM.
  Reply With Quote