Page Index Toggle Pages: [1] 2  Send TopicPrint
Normal Topic Crunch your cards - The easy way (Read 11148 times)
Legato
Titan Demolisher
****
Offline


I fart in your general
direction!

Posts: 319
Location: Arrakis
Joined: Aug 29th, 2013
Crunch your cards - The easy way
Nov 29th, 2014 at 12:52pm
Print Post  
So, I saw the cards are going away... Tried to crunch them, the fucker keeps closing after a certain time, and it takes forever between each button click...  Undecided

So here is my contribution to this lovely community... Enjoy and feel free to modify / criticize / etc!  Shocked

Code (Javascript)
Select All
WinWaitActive("Dungeons and Dragons Online")

;Loop to define how many times this thing will run
Local $i = 1
While $i <= 1


;open the card cruncher - set x / y to the coordinates of the cruncher
MouseClick("left", x, y, 2)
Sleep(3000)

;drag the cards to the cruncher set x1/y1 to the cards 1 and 2, and x2/y2 to the cruncher slots
MouseClickDrag("left", x1, y1, x2, y2)
MouseClickDrag("left", x1, y1, x2, y2)
Sleep(3000)

;click and wait to crunch cards - set x/y to the crunch button
MouseClick("left", x, y, 1)
Sleep(10000)

MouseClick("left", x, y, 1)
Sleep(10000)

MouseClick("left", x, y, 1)
Sleep(10000)

MouseClick("left", x, y, 1)
Sleep(10000)

MouseClick("left", x, y, 1)
Sleep(10000)


;close the card cruncher - set xy to the x button on the cruncher
MouseClick("left", x, y, 1)


$i = $i + 1
WEnd 



Save it as an au3 script, use autoit to run, and to find our your x/y, use auinfo.exe! If there are any questions, no pms, post here.
  
Back to top
 
IP Logged
 
khyberkajiit
Dragon Raider
***
Offline


I Love Drama!

Posts: 208
Joined: Jul 22nd, 2014
Re: Crunch your cards - The easy way
Reply #1 - Nov 29th, 2014 at 6:57pm
Print Post  
Sorry but if you are going to do that, just use image snapshots to get who'sever coordinates from whatever location.

on a different note. Just use this:
Code
Select All
; AutoClickTest
CoordMode, Mouse, Screen
MouseGetPos, xpos, ypos
xpos := xpos - 150
Gui, +AlwaysOnTop
Gui, Add, Checkbox, x40 y40 vChkState gAutoClickit, Auto-Click

Gui, Add, Text, w60 x20 y63 Left,Click Speed
Gui, Add, Edit, w150 x80 y60 vTimeBetweenSetsOfClicks, 8000

Gui, Add, Edit, w250 x20 y90, Test Data

Gui, Add, Button, x40 y120 w40 h30 Default, &Quit
Gui, Add, Button, x180 y120 w40 h30 gTestButton, &Test
Gui, Show, h200 w300 x%xpos% y%ypos%, AlwaysOnTop AutoClickTest

;TimeBetweenSetsOfClicks = ClickSpeed  ; in milliseconds
NumberOfClicks = 1
MouseMovementTimeout = 2000    ; how long after mouse stops moving to start (in milliseconds)
Return

AutoClickit:
GuiControlGet, ChkState
if ChkState = 1
{
  LastNoMove := A_TickCount
  clickon = False
  SetTimer, ChkMouse, 250
}
else
{
  SetTimer, ChkMouse, Off
  SetTimer, Clickit, Off
}
Return

ChkMouse:
GuiControlGet, TimeBetweenSetsOfClicks
MouseGetPos,x1,y1
x3 := x1 - x2
y3 := y1 - y2
if (x3 = 0 and y3 = 0)
{
  NoMove := A_TickCount - LastNoMove
  if NoMove >= %MouseMovementTimeout%
  {
    if clickon = False
    {
      clickon = True
      Gosub, Clickit
      SetTimer, Clickit, %TimeBetweenSetsOfClicks%
    }
    LastNoMove := A_TickCount
  }
}
else
{
  SetTimer, Clickit, Off 
  clickon = False
  LastNoMove := A_TickCount
}
Sleep, 100
GuiControl,, Edit2, x1:%x1%  x2:%x2%  y1:%y1%  y2:%y2%  Click: %clickon%
x2 = %x1%
y2 = %y1%
Return

Clickit:
MouseClick, Left,,, %NumberOfClicks%
Return

TestButton:
SoundBeep
Return

ButtonQuit:
GuiClose:
ExitApp
 



The code is pretty old, lifted from the AHK forum about for 5 years ago after a Crystal Cove event damaged my fucking mouse button.
Never clicked a submit box repeatedly again...

For cruncher I adjust timer to 8000 <- milliseconds.
That gets it to repeat 10 times before closing.


Also, for your code, instead of sleeping 1000 and clicking left, which is pointless the UI is gray for about 70000
just 1 Sleep 6000 followed by a click...
if you need to keep clicking anyway, then I'd suggest a loop statement...

To get the cruncher coordinates:
Code
Select All
ImageSearch answerX, answerY, 0, 0, A_ScreenWidth, A_ScreenHeight, ./CruncherImage.png
if (ErrorLevel = 2) {
		MsgBox Could not conduct search for the cruncher. You are an idiot and did not create the image or rename it in this script.
	} else if (ErrorLevel = 1) {
		MsgBox The cruncher is NOT on the screen... Retard...
	} else {
		answerX := answerX-10
		answerY := answerY-5
		MouseMove %answerX%, %answerY%
		Click 1
	}
 



And let's not forget, the image of the cruncher needs to be smaller then the cruncher, and if you do the search the coordinates of the image search should be matched up the the approximate location of the inventory - that to avoid clicking the cruncher if it's been placed in the bag.

Why smaller then the square of the menu? because the fucking menu puts a green halo on shit when it drags it out of bags or considers it "new"... Same fore cards.
« Last Edit: Nov 29th, 2014 at 7:00pm by khyberkajiit »  
Back to top
 
IP Logged
 
OldCoaly
Puppy Farmer
****
Offline


Why did you think this
time would be different?

Posts: 1564
Location: WAAHH!!!Testing stuff is HARD!
Joined: Jul 1st, 2011
Re: Crunch your cards - The easy way
Reply #2 - Nov 29th, 2014 at 7:08pm
Print Post  
khyberkajiit wrote on Nov 29th, 2014 at 6:57pm:
...stuff..,


Nicely done
  

Groo The Wanderer wrote on Sep 8th, 2013 at 10:43pm:
they will probably congratulate themselves on how long they "kept it going" never able to see that it could have easily managed to keep itself going for far longer if they had just meddled far less drastically and with some semblance of an actual gameplan.
Darth Anonymous wrote on Feb 1st, 2014 at 1:11pm:
Hearing something has "merit" but we don't have "time" kind of says everything about how Turbine works on things.
eighnuss wrote on May 27th, 2014 at 12:52pm:
everyone but turbine knows that we are sad they are destroying our game
majmalphunktion wrote on Aug 30th, 2013 at 12:12am:
I don't make the game, I just get tested what they build. Sorry you are not happy.
Skoodge wrote on Nov 27th, 2014 at 6:54am:
DDO is easy to summarize - the greatest game to suck the most ass.
GooFY wrote on Mar 2nd, 2015 at 5:36pm:
Turbine - So incompetent that we are skeptical when they report their own incompetence.  
Meursault wrote on May 11th, 2015 at 8:10pm:
Other companies will settle for shitting out garbage, Turdbin actually prefers to. Especially if they can get us to buy it, that just cracks them up.
Meursault wrote on Nov 12th, 2015 at 2:50pm:
Breaking something and putting it back together isn't as good as not breaking it to begin with, it's not even close.
palmer01 wrote on Nov 20th, 2015 at 9:05am:
Devs do not care what players want - they already have an agenda and give out token gestures so the paladins can feel worthy.
PersonaNonGrata wrote on Oct 4th, 2016 at 1:24am:
The DDO devs aren't motivated by a positive user experience.

Back to top
 
IP Logged
 
DropBear
Dropbear Awareness Society
*
Offline


Don't forget to look up....

Posts: 4377
Location: Landdownunder
Joined: Oct 11th, 2013
Re: Crunch your cards - The easy way
Reply #3 - Nov 29th, 2014 at 8:46pm
Print Post  
khyberkajiit wrote on Nov 29th, 2014 at 6:57pm:
For cruncher I adjust timer to 8000 <- milliseconds.
That gets it to repeat 10 times before closing.



Nice tips Khyber.  Thanks.
I realise it doesn't make much difference to a repeating script, but I have the "crunch cards" button on a 4,500ms delay and can get 13 crunches per cycle of Cruncher.  It is still enough allowance for lag too.

The advantage of your approach is that because you achieve 10 cards per cycle, you will use up a complete stack of cards with no residual, making it easier to auto replace stacks.  I just use gather to sweep up the dregs.

  
Back to top
 
IP Logged
 
khyberkajiit
Dragon Raider
***
Offline


I Love Drama!

Posts: 208
Joined: Jul 22nd, 2014
Re: Crunch your cards - The easy way
Reply #4 - Nov 30th, 2014 at 1:45am
Print Post  
I think that if you script it, you should be able to "refill" the stack when it gets to 1 or 2 cards?

After-all, like any other window of this type, if you move more cards into the current stack it replenishes the stack in the current window as well...

Not that there is any point since the cruncher will close when it reaches 10 (or 13 for faster), but it's just 2 ways of looking at the same thing...
« Last Edit: Nov 30th, 2014 at 1:47am by khyberkajiit »  
Back to top
 
IP Logged
 
SayWhatAgain
Dragon Raider
***
Offline


I Love Drama!

Posts: 236
Joined: Jul 30th, 2014
Re: Crunch your cards - The easy way
Reply #5 - Nov 30th, 2014 at 2:26am
Print Post  
1)Pull out the combos you want to use into inventory
2) start stopwatch
3) start mouse recording software of your choise (like ghost mouse).
4) crunch each combo 2-3 times
5) stop recording.
6) stop stopwatch
7) move the ghost mouse window so the play button is where the record/stop button is.
8) place mouse cursor on play button
9) activate ahk/Logitech mouse script that will hit left mouse button every x seconds (x is the time on your stopwatch + 10 a sec safety buffer).
10) go to bed
11) wake up
12) profit.
  
Back to top
 
IP Logged
 
Revaulting
Completionist (i.t.p.)
******
Offline



Posts: 10143
Location: Not in my pants
Joined: Apr 3rd, 2014
Gender: Male
Re: Crunch your cards - The easy way
Reply #6 - Nov 30th, 2014 at 2:30am
Print Post  
I reopen the cruncher as soon as it produces an item. You can get this timed pretty well on a macro. No waiting for the teeth to reopen. Speeds up the whole deal by at least 30%.
  

Silence is golden, but I only get silver rolls.
Back to top
 
IP Logged
 
DropBear
Dropbear Awareness Society
*
Offline


Don't forget to look up....

Posts: 4377
Location: Landdownunder
Joined: Oct 11th, 2013
Re: Crunch your cards - The easy way
Reply #7 - Nov 30th, 2014 at 3:54am
Print Post  
SayWhatAgain wrote on Nov 30th, 2014 at 2:26am:
1)Pull out the combos you want to use into inventory
2) start stopwatch
3) start mouse recording software of your choise (like ghost mouse).
4) crunch each combo 2-3 times
5) stop recording.
6) stop stopwatch
7) move the ghost mouse window so the play button is where the record/stop button is.
8) place mouse cursor on play button
9) activate ahk/Logitech mouse script that will hit left mouse button every x seconds (x is the time on your stopwatch + 10 a sec safety buffer).
10) go to bed
11) wake up
12) profit.


It's a little more involved than that if you want to leave it overnight.
What's with the stopwatch?

  
Back to top
 
IP Logged
 
khyberkajiit
Dragon Raider
***
Offline


I Love Drama!

Posts: 208
Joined: Jul 22nd, 2014
Re: Crunch your cards - The easy way
Reply #8 - Nov 30th, 2014 at 4:19am
Print Post  
What I want to leave overnight is that fucking XP grab script which now has coded in accurate and lag fucking free movement... hint hint... I'ma TR the bank toon tomorrow just to crunch extra shit and keep it stored Tongue
  
Back to top
 
IP Logged
 
DropBear
Dropbear Awareness Society
*
Offline


Don't forget to look up....

Posts: 4377
Location: Landdownunder
Joined: Oct 11th, 2013
Re: Crunch your cards - The easy way
Reply #9 - Nov 30th, 2014 at 4:29am
Print Post  
Revaulting wrote on Nov 30th, 2014 at 2:30am:
I reopen the cruncher as soon as it produces an item. You can get this timed pretty well on a macro. No waiting for the teeth to reopen. Speeds up the whole deal by at least 30%.


That's interesting, hadn't tried that.
Thanks.
  
Back to top
 
IP Logged
 
SayWhatAgain
Dragon Raider
***
Offline


I Love Drama!

Posts: 236
Joined: Jul 30th, 2014
Re: Crunch your cards - The easy way
Reply #10 - Nov 30th, 2014 at 6:00am
Print Post  
DropBear wrote on Nov 30th, 2014 at 3:54am:
It's a little more involved than that if you want to leave it overnight.
What's with the stopwatch?



The stopwatch is used to measure the time it takes to your mouse recording from the point it starts till the point it is done and the mouse cursor is back to where "play" button is.
You use that time for your seperate left click script.

Say you took out 1,200 cards into your inventory which consist of 6 different combos that can be done 100 times each. You record yourself opening the cruncher and placing your first combo and then crunching 3 times and proceeding to do the same for the other 5 combos ending up with a total of 18 crunches. You check your stopwatch and see that it took you 200 seconds. You use an ahk script to click your left mouse button every 210 seconds and start it.

Your ahk left click script will activate your mouse playback every 210 seconds and your mouse playback does the crunching. Basically it's a simple and classic loop within a loop.
  
Back to top
 
IP Logged
 
DropBear
Dropbear Awareness Society
*
Offline


Don't forget to look up....

Posts: 4377
Location: Landdownunder
Joined: Oct 11th, 2013
Re: Crunch your cards - The easy way
Reply #11 - Nov 30th, 2014 at 6:29am
Print Post  
SayWhatAgain wrote on Nov 30th, 2014 at 6:00am:
The stopwatch is used to measure the time it takes to your mouse recording from the point it starts till the point it is done and the mouse cursor is back to where "play" button is.
You use that time for your seperate left click script.

Say you took out 1,200 cards into your inventory which consist of 6 different combos that can be done 100 times each. You record yourself opening the cruncher and placing your first combo and then crunching 3 times and proceeding to do the same for the other 5 combos ending up with a total of 18 crunches. You check your stopwatch and see that it took you 200 seconds. You use an ahk script to click your left mouse button every 210 seconds and start it.

Your ahk left click script will activate your mouse playback every 210 seconds and your mouse playback does the crunching. Basically it's a simple and classic loop within a loop.


I understand loop concept.  I am using them, but in a different way.

Ok, did not see the relevance of the stopwatch but i understand what you are doing now.

If you're doing 2 cards to 1 item conversions, you could conceptually extend your idea to as many steps as you wanted up to inventory capacity (assuming the items stack too).
It's the items that produce 7, 15 or 30 per two cards (or don't stack well) that are going to fill your inventory and overflow too quickly.

For this you need a cleanup step (dump in SB or SB ingredients suffices), which either means a different approach or would require another loop outside your nested loops.
  
Back to top
 
IP Logged
 
SayWhatAgain
Dragon Raider
***
Offline


I Love Drama!

Posts: 236
Joined: Jul 30th, 2014
Re: Crunch your cards - The easy way
Reply #12 - Nov 30th, 2014 at 9:17am
Print Post  
DropBear wrote on Nov 30th, 2014 at 6:29am:
I understand loop concept.  I am using them, but in a different way.

Ok, did not see the relevance of the stopwatch but i understand what you are doing now.

If you're doing 2 cards to 1 item conversions, you could conceptually extend your idea to as many steps as you wanted up to inventory capacity (assuming the items stack too).
It's the items that produce 7, 15 or 30 per two cards (or don't stack well) that are going to fill your inventory and overflow too quickly.

For this you need a cleanup step (dump in SB or SB ingredients suffices), which either means a different approach or would require another loop outside your nested loops.


True but not really needed.
I use a toon that has almost 120 inventory spaces and just dump it's stuff onto alts when I'm back at game.
A few runs of this while I was sleeping or when I was at work generated all I needed and more.

  
Back to top
 
IP Logged
 
Revaulting
Completionist (i.t.p.)
******
Offline



Posts: 10143
Location: Not in my pants
Joined: Apr 3rd, 2014
Gender: Male
Re: Crunch your cards - The easy way
Reply #13 - Nov 30th, 2014 at 8:29pm
Print Post  
You can crunch cards while they're in the bag.

Just make a stack or two of each card to keep elsewhere, in case the script uses them all Smiley
  

Silence is golden, but I only get silver rolls.
Back to top
 
IP Logged
 
DropBear
Dropbear Awareness Society
*
Offline


Don't forget to look up....

Posts: 4377
Location: Landdownunder
Joined: Oct 11th, 2013
Re: Crunch your cards - The easy way
Reply #14 - Nov 30th, 2014 at 10:50pm
Print Post  
Revaulting wrote on Nov 30th, 2014 at 8:29pm:
You can crunch cards while they're in the bag.

Just make a stack or two of each card to keep elsewhere, in case the script uses them all Smiley


Hmmm...I thought they broke that a few updates ago.
Will have to play around with that - would make it much easier.

Thanks RV.
  
Back to top
 
IP Logged
 
khyberkajiit
Dragon Raider
***
Offline


I Love Drama!

Posts: 208
Joined: Jul 22nd, 2014
Re: Crunch your cards - The easy way
Reply #15 - Nov 30th, 2014 at 10:59pm
Print Post  
it's kind of pointless since the cruncher closes every ... 10 x 8 sec... that's 80 seconds... that's 1 min and 20 sec...
And you can't drag from bag to cruncher...

LIES.

Holy shit. just drag cards from bag to cruncher.

When did they fix that!?!?!? wtf, this makes it SO much faster Tongue
  
Back to top
 
IP Logged
 
DropBear
Dropbear Awareness Society
*
Offline


Don't forget to look up....

Posts: 4377
Location: Landdownunder
Joined: Oct 11th, 2013
Re: Crunch your cards - The easy way
Reply #16 - Nov 30th, 2014 at 11:27pm
Print Post  
khyberkajiit wrote on Nov 30th, 2014 at 10:59pm:
Holy shit. just drag cards from bag to cruncher.
When did they fix that!?!?!? wtf, this makes it SO much faster Tongue


IKR - when they fix stuff we can use to exploit, they should send a memo or something?  It's not like they fix much, so it wouldn't take long!
Why don't they have a Vault release notes for us??     Grin
  
Back to top
 
IP Logged
 
StinkyPete
Korthos Resident
*
Offline


Instant Arsehole - Just
add alchohol

Posts: 25
Joined: Nov 10th, 2014
Gender: Male
Re: Crunch your cards - The easy way
Reply #17 - Dec 1st, 2014 at 1:05am
Print Post  
DropBear wrote on Nov 30th, 2014 at 10:50pm:
Hmmm...I thought they broke that a few updates ago.
Will have to play around with that - would make it much easier.

Yes, dropping cards from bag to chruncher still works.
I have been using a simple marco app http://www.turnssoft.com/mini-mouse-macro.html to automate this feature.

Go into windowed mode, record your actions once , save and loop it 10 times.
The scripts look cool, I'm not into that fancy programmer stuff, IP routing is much more interesting  Wink
  
Back to top
 
IP Logged
 
Vendui
Releaser Of Exploits
*
Offline


Dare to tempt your fates?
Everything has a price.

Posts: 2492
Location: Central WI
Joined: Oct 31st, 2013
Gender: Male
Re: Crunch your cards - The easy way
Reply #18 - Dec 2nd, 2014 at 9:46pm
Print Post  
Never mind. Im being told its not mine, even before i show it. so whatevs. back to lurking i guess
« Last Edit: Dec 2nd, 2014 at 11:48pm by Vendui »  
Back to top
 
IP Logged
 
Legato
Titan Demolisher
****
Offline


I fart in your general
direction!

Posts: 319
Location: Arrakis
Joined: Aug 29th, 2013
Re: Crunch your cards - The easy way
Reply #19 - Dec 3rd, 2014 at 11:22pm
Print Post  
Vendui wrote on Dec 2nd, 2014 at 9:46pm:
Never mind. Im being told its not mine, even before i show it. so whatevs. back to lurking i guess


thats because my script is too crappy lol Cheesy
  
Back to top
 
IP Logged
 
Vendui
Releaser Of Exploits
*
Offline


Dare to tempt your fates?
Everything has a price.

Posts: 2492
Location: Central WI
Joined: Oct 31st, 2013
Gender: Male
Re: Crunch your cards - The easy way
Reply #20 - Dec 4th, 2014 at 1:23am
Print Post  
Legato wrote on Dec 3rd, 2014 at 11:22pm:
thats because my script is too crappy lol

Myne crunches cards x/y, banks the items made from tab 1 of inventory to bank/shared bank, then checks to see if there are more than 100 of cards x/y. if not, dupes stacks until the value exeeds 500 in the card bag. It then rinses and repeats the cycle to fill inv tab 1 Tongue

Currently have it running F2S pots. Can never have too many Tongue (500+ Ingredient tab slots full and counting.. only 3 tr caches to fill once the banks done Happy)
« Last Edit: Dec 4th, 2014 at 1:24am by Vendui »  
Back to top
 
IP Logged
 
DropBear
Dropbear Awareness Society
*
Offline


Don't forget to look up....

Posts: 4377
Location: Landdownunder
Joined: Oct 11th, 2013
Re: Crunch your cards - The easy way
Reply #21 - Dec 4th, 2014 at 5:04am
Print Post  
Vendui wrote on Dec 4th, 2014 at 1:23am:
Myne crunches cards x/y, banks the items made from tab 1 of inventory to bank/shared bank, then checks to see if there are more than 100 of cards x/y. if not, dupes stacks until the value exeeds 500 in the card bag. It then rinses and repeats the cycle to fill inv tab 1 Tongue

Currently have it running F2S pots. Can never have too many Tongue (500+ Ingredient tab slots full and counting.. only 3 tr caches to fill once the banks done Happy)


Shocked
That's a nice script but .....
.... there does come a point where it serves no practical purpose as you'll have more stuff than you could possibly use/sell/give-away before the end of DDO (even if you were playing full time - are you even playing?).
One positive, if they ever find it, I guess it will tie up the GM's for a few months cleaning it out so they leave others alone.   Wink

I have a stash of stuff for a rainy day if I ever need it, but that's just a couple of toons......  I just can't see myself needing any more.
  
Back to top
 
IP Logged
 
Doggydaddy
Titan Demolisher
****
Offline


Pull my Finger......

Posts: 324
Joined: Jun 24th, 2014
Re: Crunch your cards - The easy way
Reply #22 - Dec 4th, 2014 at 5:22am
Print Post  
Here's the thing... this was last anniversary rewards... everybody is loading up.. its a LOT of grind and work... fine...


What happens when this NEXT anniversary happens, and they have some really nice stuff, and you guys have filled every nook & cranny with all that crap and don't have room for any of the new stuff? Just toss it? That would SUCK Sad
  
Back to top
 
IP Logged
 
NOTdarth
Puppy Farmer
****
Offline


Save the Planet, Kill
Yourself

Posts: 1495
Joined: Oct 15th, 2012
Gender: Male
Re: Crunch your cards - The easy way
Reply #23 - Dec 4th, 2014 at 5:29am
Print Post  
I found and easy and effective way to crunch:

1. beat up your spouse/flatmate/sibling
2. threaten to beat him up again unless he crunches xyz cards
3. ???
4. profit
  

Back to top
 
IP Logged
 
Angry
Puppy Farmer
****
Offline



Posts: 1699
Joined: Feb 13th, 2014
Re: Crunch your cards - The easy way
Reply #24 - Dec 4th, 2014 at 5:43am
Print Post  
NOTdarth wrote on Dec 4th, 2014 at 5:29am:
I found and easy and effective way to crunch:

1. beat up your spouse/flatmate/sibling
2. threaten to beat him up again unless he crunches xyz cards
3. ???
4. profit


Is it FTS you're talking about?
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: [1] 2 
Send TopicPrint