Sign in to follow this  
Followers 0
nathan546

Stupid Question

10 posts in this topic

run/runwait isnt working

Ex:

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

why wont it work.

Share this post


Link to post
Share on other sites



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)

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

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

Share this post


Link to post
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.

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)

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

i mean can i just use a simple run command like Run("C:\Ect\Ect\Ect.exe")

Share this post


Link to post
Share on other sites

I figured out how to make a config on my own and I couldnt figure out run lol :whistle: more questions to come(most likely). Thanks for the help.

Share this post


Link to post
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?

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

go read the autoit v3 help file. Might help a bit :whistle:


~~ Safeguarding The Land ~~

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