Sign in to follow this  
Followers 0
mmlm

need help for someting stupid.

5 posts in this topic

Hello, I have a stupid question.

I try to found How change that script for I can empty my stash to my inventory in diablo.

for now the script do almost 50% of the job. My problem is take gem on stash bring to inventory but goes only to the 5 colum. the stash and the inventory have not the same shape.

look picture below. I have in inventory 1x1 x 40 place.

the script brg the 1x1 at the place 1, 2, 3, 4 and 5 but after change of row. I want full up the 10 place before change row.

that's the script I have found and modify for the stash.

that scrip before was use for 1x1 x 40 in trade screen.

I try to found how ... can you help me plz.

tank you, I have load picture of the inventory and stash.

here the code I have :

Global $Paused
HotKeySet("{INSERT}", "TogglePause")
HotKeySet("{DELETE}", "Terminate")

While 1
Sleep(200)
Wend

Func TogglePause()
$Paused = NOT $Paused
For $Paused = 1 to 1 step +1
$xu = "168" ;This is the center of the first column of your stash
$yu = "168" ;Same but of row
$xt = "432" ;Center of first column of inventory screen
$yt = "332" ;Same yet again *gasp*
$times = "1"
$times2 = "1"

For $times = 1 to 8 Step +1

For $times2 = 1 to 5 Step +1
MouseMove($xu, $yu, 9)
MouseClick("Left")
MouseMove($xt, $yt, 9)
MouseClick("Left")
$xu = $xu + "29" ;Moves mouse forward 29 pixels
$xt = $xt + "29"
Next

$yu = $yu + "27" ;Moves mouse down 27 pixels
$yt = $yt + "27"
$xu = "168" ;Reset to first Column of items
$xt = "432"

Next
Next
EndFunc

Func Terminate()
Exit 0
EndFunc

Share this post


Link to post
Share on other sites



I cleaned your code up to remove the unneeded items and improve readability:

HotKeySet("{INSERT}", "TogglePause")
HotKeySet("{DELETE}", "Terminate")

While 1
  Sleep(200)
Wend

Func TogglePause()
  $xu = "168" ;This is the center of the first column of your stash
  $yu = "168" ;Same but of row
  $xt = "432" ;Center of first column of inventory screen
  $yt = "332" ;Same yet again *gasp*
  $times = "1"
  $times2 = "1"

  For $times = 1 to 8 Step
    For $times2 = 1 to 5 Step 
      MouseMove($xu, $yu, 9)
      MouseClick("Left")
      MouseMove($xt, $yt, 9)
      MouseClick("Left")
      $xu = $xu + "29" ;Moves mouse forward 29 pixels
      $xt = $xt + "29"
    Next

    $yu = $yu + "27" ;Moves mouse down 27 pixels
    $yt = $yt + "27"
    $xu = "168" ;Reset to first Column of items
    $xt = "432"
  Next
EndFunc

Func Terminate()
  Exit
EndFunc

You can do what you want by simply adjusting your coordinates.


Auto3Lib: A library of over 1200 functions for AutoIt

Share this post


Link to post
Share on other sites

sorry paula but that dont move mouse.. that say error...

Share this post


Link to post
Share on other sites

can someone tell me why I can only if I have 5 row on the stash move 5x 1x1 in inventory on the same row.

for now I have 40 square like that

12345

678910

1112131415

1617181920

etc

and I want he move to other shape.

12345678910

11121314151617181920

21222324etc

Hello, I have a stupid question.

I try to found How change that script for I can empty my stash to my inventory in diablo.

for now the script do almost 50% of the job. My problem is take gem on stash bring to inventory but goes only to the 5 colum. the stash and the inventory have not the same shape.

look picture below. I have in inventory 1x1 x 40 place.

the script brg the 1x1 at the place 1, 2, 3, 4 and 5 but after change of row. I want full up the 10 place before change row.

that's the script I have found and modify for the stash.

that scrip before was use for 1x1 x 40 in trade screen.

I try to found how ... can you help me plz.

tank you, I have load picture of the inventory and stash.

here the code I have :

Global $Paused
HotKeySet("{INSERT}", "TogglePause")
HotKeySet("{DELETE}", "Terminate")

While 1
Sleep(200)
Wend

Func TogglePause()
$Paused = NOT $Paused
For $Paused = 1 to 1 step +1
$xu = "168" ;This is the center of the first column of your stash
$yu = "168" ;Same but of row
$xt = "432" ;Center of first column of inventory screen
$yt = "332" ;Same yet again *gasp*
$times = "1"
$times2 = "1"

For $times = 1 to 8 Step +1

For $times2 = 1 to 5 Step +1
MouseMove($xu, $yu, 9)
MouseClick("Left")
MouseMove($xt, $yt, 9)
MouseClick("Left")
$xu = $xu + "29" ;Moves mouse forward 29 pixels
$xt = $xt + "29"
Next

$yu = $yu + "27" ;Moves mouse down 27 pixels
$yt = $yt + "27"
$xu = "168" ;Reset to first Column of items
$xt = "432"

Next
Next
EndFunc

Func Terminate()
Exit 0
EndFunc

Share this post


Link to post
Share on other sites

sorry paula but that dont move mouse.. that say error...

Exactly. That's where you need to start fixing the problem. The problem you are having can be solved with some simple debugging. First, fix your code now that it's cleaned up. Then, run this from SciTE and put some ConsoleWrite statements in so that you can see where your error is.

Auto3Lib: A library of over 1200 functions for AutoIt

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