Jump to content
Sign in to follow this  
Alivezombie16

Unable to Locate Settings File

Recommended Posts

Alivezombie16

Hello,

I have just read through a couple tutorials on AutoIt, and I'm learning on a need to know basis. I am able to open up programs like Notepad, Calculator, etc., and even perform automated commands. But I'm having trouble with more complex programs, specifically MTGO III. Before I go on: here's the sample code, whose eventually goal is to log me on automatically:

Run("C:\Program Files (x86)\Wizards of the Coast\Magic Online III\Renamer.exe")
WinActivate("Magic Online 3.0")
WinWaitActive("Magic Online 3.0")
;ControlClick("Magic Online 3.0",) This will click on the launch button, when passed the right parameters, but I haven't gotten this far yet.

The problem I have is when I try to run it, my computer tells me that it couldn't locate a setting file: LoadingScreen.xml. Now, this file is in the same directory as the executable. How do I fix this error? And how do I avoid it in the future, when trying to run programs I have installed myself?

Thanks.

Share this post


Link to post
Share on other sites
NinjaGeek

This looks to be a problem with the program - see their help at http://community.wizards.com/go/thread/view/75846/19182610/MTGO_Technical_Issues_FAQ_38;_More!_*Start_Here*

Sidenote: Once you've called WinActivate, you should pass the handle of the window to a variable and use that in case the title of the window changes:

Run("C:\Program Files (x86)\Wizards of the Coast\Magic Online III\Renamer.exe")
$winhandle = WinActivate("Magic Online 3.0")
WinWaitActive($winhandle)

Share this post


Link to post
Share on other sites
Alivezombie16

Thanks guys. I just have the script click on the shortcut instead. It works. I just have to make sure no windows are open.

Share this post


Link to post
Share on other sites
DW1

Does setting the working directory in Run() make it work?

Run("C:\Program Files (x86)\Wizards of the Coast\Magic Online III\Renamer.exe", "C:\Program Files (x86)\Wizards of the Coast\Magic Online III")

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.