Alivezombie16 Posted June 4, 2010 Posted June 4, 2010 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.
Zibit Posted June 4, 2010 Posted June 4, 2010 might be the programs fault ? Creator Of Xtreme DevelopersPixel Pattern UDFTray GUI UDFMathssend & recive register scriptMouse Control via Webcam
NinjaGeek Posted June 4, 2010 Posted June 4, 2010 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)
Alivezombie16 Posted June 5, 2010 Author Posted June 5, 2010 Thanks guys. I just have the script click on the shortcut instead. It works. I just have to make sure no windows are open.
DW1 Posted June 5, 2010 Posted June 5, 2010 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") AutoIt3 Online Help
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now