Jump to content

Game Script Help


Eleky
 Share

Recommended Posts

I need some help with my script for the game Diablo 2 I have not gotten anyway in the script cause I am stuck. Well I got it to Open Diablo 2 then I put a 2 second delay once it checked that it was open. Now I need it to click 3 times to get though the logo so that I can make it start clicking the buttons for the game. Well like any thing to start out I have already ran into problems it does not click at all. It opens the game but it just sits there and does not click it lets it take the long time of showing off the logo's. Anyone with game expericance wanna help me find out why it is not clicking. Thanks

Here is the code.

Run("C:\Program Files\Diablo II\Diablo II.exe", "C:\Program Files\Diablo II\")
WinWaitActive("Diablo II", "", 2)
MouseClick("left")
Sleep(2000)
MouseClick("left")
Sleep(2000)
MouseClick("left", 396, 352)
Link to comment
Share on other sites

ok this is your code in the first post

Run("C:\Program Files\Diablo II\Diablo II.exe", "C:\Program Files\Diablo II\")
WinWaitActive("Diablo II", "", 2)
MouseClick("left")
Sleep(2000)
MouseClick("left")
Sleep(2000)
MouseClick("left", 396, 352)

i noticed that the last mouseclick has a location and the first two do not have an x, y setting.....so

how about this

Run("C:\Program Files\Diablo II\Diablo II.exe", "C:\Program Files\Diablo II\")
WinWaitActive("Diablo II", "", 2)
Sleep(2000)
MouseClick("left", 396, 352)
Sleep(2000)
MouseClick("left", 396, 352)
Sleep(2000)
MouseClick("left", 396, 352)

8)

NEWHeader1.png

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...