Sign in to follow this  
Followers 0
Tommy_ti

Help With Something...

4 posts in this topic

Hmm, need some more help plz.

This is my AutoIt EXE file how it is for now:

$answer = MsgBox(4, "Diablo 2", "Do you want to run Diablo 2 with this program?")

If $answer = 7 Then
    MsgBox(0, "Diablo 2", "Diablo 2 did not run")
    Exit
EndIf

If $answer = 6 Then
    MsgBox(0, "Diablo 2", "Diablo 2 loading. Click OK to start.")
EndIf

$Diablo2Exe = IniRead("Config.ini","GLOBAL","Diablo2Exe", "ERROR")

Run($Diablo2Exe, "", @SW_MAXIMIZE)

And this is my INI file:

; Set the Diablo 2 exe to the correct location.

[GLOBAL]
Diablo2Exe=c:\Programfiler\Diablo II\Diablo II.exe
D2Parameters=-skiptobnet -w -ns -lq -res800 -title "Diablo II" -nonotify

[SETTINGS]
Account=YOUR_ACCOUNT_HERE
Password=YOUR_PASS_HERE

[IN-GAME]
Gamename=GAME_NAME_TO_MAKE

HOW do i make Diablo 2 start with the D2Parameters?

I cant figure it out!

I have enother script i downloaded, it have than function, but i can't read it since it's compiled. :whistle:


Share this post


Link to post
Share on other sites



$answer = MsgBox(4, "Diablo 2", "Do you want to run Diablo 2 with this program?")

If $answer = 7 Then
   MsgBox(0, "Diablo 2", "Diablo 2 did not run")
   Exit
EndIf

If $answer = 6 Then
   MsgBox(0, "Diablo 2", "Diablo 2 loading. Click OK to start.")
EndIf

$Diablo2Exe = IniRead("Config.ini","GLOBAL","Diablo2Exe", "ERROR")
$Diabloparam = IniRead("Config.ini","GLOBAL","Diablo2Exe", "ERROR")

Run($Diablo2Exe & " " & $Diabloparam, "", @SW_MAXIMIZE)


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Hm, Diablo 2 does start, but not in those parameters :whistle:

EDIT: Nevermind, had forgot to do some editing ^^ B)

Edited by Tommy_ti

Share this post


Link to post
Share on other sites

oops.. typo:

$Diablo2Exe = IniRead("Config.ini","GLOBAL","Diablo2Exe", "ERROR")
$Diabloparam = IniRead("Config.ini","GLOBAL","D2Parameters", "ERROR")

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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  
Followers 0