Jump to content

Recommended Posts

This is a char select for diablo

Its not working =(

Func ChooseChar()
Sleep($LoginDelay)
If $CharSlot = 1 Then
Send("{ENTER}")
EndIf
If $CharSlot = 2 Then
Send("{RIGHT}{ENTER}")
EndIf
If $CharSlot = 3 Then
Send("{DOWN}{ENTER}")
EndIf
If $CharSlot = 4 Then
Send("{RIGHT}{DOWN}{ENTER}")
EndIf
If $CharSlot = 5 Then
Send("{DOWN}{DOWN}{ENTER}")
EndIf
If $CharSlot = 6 Then
Send("{RIGHT}{DOWN}{DOWN}{ENTER}")
EndIf
If $CharSlot = 7 Then
Send("{DOWN}{DOWN}{DOWN}{ENTER}")
EndIf
If $CharSlot = 8 Then
Send("{RIGHT}{DOWN}{DOWN}{DOWN}{ENTER}")
EndIf
EndFunc

$CharSlot = IniRead("pindle.ini", "Chars", "CharSlot", "1")

[Chars]
CharSlot=7
Edited by Snipz
Once my friend told me that he had found Jesus. I thought to myself, "Woohoo, we're rich!" It turns out he meant something different.Sometimes I just like to lay in my bed and look up at the stars and wonder..where the hell did my roof go?
Link to post
Share on other sites
  • Moderators

Does this help?

Func ChooseChar()
   Sleep($LoginDelay)
   $CharSlot = IniRead("pindle.ini", "Chars", "CharSlot", "1")
   If $CharSlot = 1 Then
      Send("{ENTER}")
   EndIf
   If $CharSlot = 2 Then
      Send("{RIGHT}""{ENTER}")
   EndIf
   If $CharSlot = 3 Then
      Send("{DOWN}""{ENTER}")
   EndIf
   If $CharSlot = 4 Then
      Send("{RIGHT}""{DOWN}""{ENTER}")
   EndIf
   If $CharSlot = 5 Then
      Send("{DOWN 2}""{ENTER}")
   EndIf
   If $CharSlot = 6 Then
      Send("{RIGHT}""{DOWN 2}""{ENTER}")
   EndIf
   If $CharSlot = 7 Then
      Send("{DOWN}""{DOWN 2}""{ENTER}")
   EndIf
   If $CharSlot = 8 Then
      Send("{RIGHT}""{DOWN 3}""{ENTER}")
   EndIf
EndFunc

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...