scythetleppo Posted June 27, 2006 Share Posted June 27, 2006 I am so in the depths of my program right now if you know what I mean. I am at a spot where I need autoit to run this command: "c:\program files\diablo ii\diablo ii.exe" -w -title "Diablo II" when I try to run it from autoit, Diablo says 'unable to detect application version' or something like that. If I paste that into start > run, it works perfectly. then I thought maybe it had to be in the same directory as the game, therefore I have it writing a seperate batch file in the game directory with that very line and running it. Error, the game won't run. If I double click the file, game runs fine. I'm pulling my hair out over here Link to comment Share on other sites More sharing options...
jvanegmond Posted June 27, 2006 Share Posted June 27, 2006 (edited) Run('"c:\program files\diablo ii\diablo ii.exe" -w -title "Diablo II"') Edit: I think "Diablo II" isn't a legitimate parameter. Edited June 27, 2006 by Manadar github.com/jvanegmond Link to comment Share on other sites More sharing options...
Daniel W. Posted June 27, 2006 Share Posted June 27, 2006 no it is a working parameter in diablo but why do you set the title to that? using d2 loader ? --------------------------------------------------------------------------------------------------------------------------------Scripts : _Encrypt UDF_UniquePCCode UDF MS like calculatorInstall programm *UPDATED* --------------------------------------------------------------------------------------------------------------------------------[quote name='Helge' post='213117' date='Jul 26 2006, 10:22 AM']Have you ever tried surfing the internet with a milk-carton ?This is similar to what you're trying to do.[/quote] Link to comment Share on other sites More sharing options...
PsaltyDS Posted June 27, 2006 Share Posted June 27, 2006 I am so in the depths of my program right now if you know what I mean. I am at a spot where I need autoit to run this command: "c:\program files\diablo ii\diablo ii.exe" -w -title "Diablo II" when I try to run it from autoit, Diablo says 'unable to detect application version' or something like that. If I paste that into start > run, it works perfectly. then I thought maybe it had to be in the same directory as the game, therefore I have it writing a seperate batch file in the game directory with that very line and running it. Error, the game won't run. If I double click the file, game runs fine. I'm pulling my hair out over here You didn't post your Run() line from your script, which makes it hard to evaluate. Did it look anything like the following? Run(@ComSpec & ' /c c:\program files\diablo ii\diablo ii.exe -w -title "Diablo II"', @TempDir, @SW_MINIMIZE) Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
scythetleppo Posted June 27, 2006 Author Share Posted June 27, 2006 I am so in the depths of my program right now if you know what I mean. I am at a spot where I need autoit to run this command: "c:\program files\diablo ii\diablo ii.exe" -w -title "Diablo II" when I try to run it from autoit, Diablo says 'unable to detect application version' or something like that. If I paste that into start > run, it works perfectly. then I thought maybe it had to be in the same directory as the game, therefore I have it writing a seperate batch file in the game directory with that very line and running it. Error, the game won't run. If I double click the file, game runs fine. I'm pulling my hair out over here that isn't working. It works if I double click the batch file but not if I try to run the batch file from autoit. running it like that from autoit doesn't work. I don't understand this =/ i have a batch file called batch.bat that is this (in total): "C:\Program Files\Diablo II\Diablo II.exe" -w -title "Diablo II" If I double click it, the game starts and runs fine. If I use autoit to run it, the game gives me an error. Link to comment Share on other sites More sharing options...
scythetleppo Posted June 27, 2006 Author Share Posted June 27, 2006 no it is a working parameter in diablo but why do you set the title to that?using d2 loader ?yeah exactly.I wrote a mule permer that works perfectly on my computer. I wanted to test the pixel ranges I'm using so I tried it on my other computer (which uses loader), and that's when I realized I needed to include d2loader somehow. and hours later i still can't get it. Link to comment Share on other sites More sharing options...
scythetleppo Posted June 27, 2006 Author Share Posted June 27, 2006 Run(@ComSpec & ' /c c:\program files\diablo ii\diablo ii.exe -w -title "Diablo II"', @TempDir, @SW_MINIMIZE) I tried that and it just flashes and does nothing.. I want to mention that this program works perfectly running normal Diablo (not loader), which is exactly the same except Game.exe instead of Diablo II.exe I can double click on the batch file and it works. have autoit run it and Diablo gives me an error. run($batchFile) gives me error in Diablo actually double clicking the batch file , diablo runs fine... Link to comment Share on other sites More sharing options...
Daniel W. Posted June 27, 2006 Share Posted June 27, 2006 Winsettitle(...,....) Use it --------------------------------------------------------------------------------------------------------------------------------Scripts : _Encrypt UDF_UniquePCCode UDF MS like calculatorInstall programm *UPDATED* --------------------------------------------------------------------------------------------------------------------------------[quote name='Helge' post='213117' date='Jul 26 2006, 10:22 AM']Have you ever tried surfing the internet with a milk-carton ?This is similar to what you're trying to do.[/quote] Link to comment Share on other sites More sharing options...
scythetleppo Posted June 27, 2006 Author Share Posted June 27, 2006 Run('"C:\Program Files\Diablo II\Diablo II.exe" -w -title "Diablo II"','C:\Program Files\Diablo II') Lar. YOU Link to comment Share on other sites More sharing options...
scythetleppo Posted June 27, 2006 Author Share Posted June 27, 2006 Run('"C:\Program Files\Diablo II\Diablo II.exe" -w -title "Diablo II"','C:\Program Files\Diablo II') Lar. ROCK Link to comment Share on other sites More sharing options...
PsaltyDS Posted June 27, 2006 Share Posted June 27, 2006 (edited) Run(@ComSpec & ' /c c:\program files\diablo ii\diablo ii.exe -w -title "Diablo II"', @TempDir, @SW_MINIMIZE)oÝ÷ Økçm«ZØë-~V¬ë×hzÉ趧Ûhéíí«m+)®+jl(®K)z·ÞrÙr®éçx'¢¹8nZ'¢Ùhi׫Â+ŧ-+azƦyìzFjgÅ觲×væå Åâjwh¹¹^rXíæÚµÈ_WØÂ䲯y«¢+kºxjwC¦å¢¯zÉjw«®ëº}7é¶rbè"½ë&yê뢸§&¶æ¥'h¹¹^rX)à¶j×!~)^v&îÇâïêº^b¢é]¶¼¢¶Ø^Á¬jºò~æjÛ^v+p'!±ël¶°¢¹"bç-¢¼¢Ø^&è׫jëh×6Run('"C:\Program Files\Diablo II\Diablo II.exe" -w -title "Diablo II"','C:\Program Files\Diablo II') Oops, typing too slow to see you already had it... Edited June 27, 2006 by PsaltyDS Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
scythetleppo Posted June 27, 2006 Author Share Posted June 27, 2006 thank you guys =] does anyone have diablo 2 that wants to help me test it? I'd prefer not to post the source code but I'll send the source to you to check and compile yourself. it works on my computers now =] Link to comment Share on other sites More sharing options...
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