Jump to content

Stupid Question


Recommended Posts

  • Developers

run/runwait isnt working

Ex:

Runwait("Diablo II.exe", "C:\Program Files\Diablo II.exe", @SW_MAXIMIZE)

why wont it work.

what about this one ??

Runwait("C:\Program Files\Diablo II.exe", "C:\Program Files", @SW_MAXIMIZE)

by the way... are you sure about the path "C:\Program Files" ?

isn't it something like :

Runwait("C:\Program Files\Diablo II\Diablo II.exe", "C:\Program Files\Diablo II", @SW_MAXIMIZE)

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Is there a simpler way and I could just put Run("C:\Program Files\Diablo II\Diablo II.exe")

if so please tell me and about a ini file how would this work.

$path = IniRead("Config.ini", "Diablo II Path", "Path", "Path not found")

then in Run("I would put what here $path?")

ini looks like this

[Diablo 2 Path]

Path=C:\Program Files\Diablo II\Diablo II.exe

Link to comment
Share on other sites

  • Developers

Is there a simpler way and I could just put Run("C:\Program Files\Diablo II\Diablo II.exe")

if so please tell me and about a ini file how would this work.

Sorry but I don't understand this question...pls explain.. :whistle:

to read the path&Program from your ini, you could code it like this:

$Path = IniRead("Config.ini", "Diablo 2 Path", "Path", "Path not found")
run($Path)

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

more question on this game there is a character login screen and the characters are setup like

1 2

3 4

5 6

7 8

How would i make a 8 way config so it would be something like

$character = IniRead("Config.Ini", "Setup", "character", "Gamestart not Found")

then 1 presses left arrow down ect to move around to it but how would i make 1-8 do something differnt so they all wouldnt goto 1 character?

Link to comment
Share on other sites

nevermind I had to do something like

If $character = 1 Then Send("{ENTER}")

If $character = 2 Then Send("{RIGHT}")

Heres another stupid question how do I send 2 things in 1 send like Send("{RIGHT}", "{LEFT}")

EDIT: Havnt used autoit in like 4 months it was Send("{RIGHT}{LEFT}")

Edited by nathan546
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...