Ok, I couldnt get this to work, maybe someone can tell me where I am going wrong.
set %bag
set %bag2
set %deed EHW
gosub selectbag
gosub selectbag2
gosub movedeed
sub selectbag
display ok Click ok and select bag
set #targcurs 1
while #targcurs = 1
wait 2
set %bag #ltargetid
set #ltargetid #lobjectid
event macro 17
Return
sub selectbag2
display ok Click ok and select bag to you want to put deeds in
set #targcurs 1
while #targcurs = 1
wait 2
set %bag2 #lobjectid
set #ltargetid #lobjectid
event macro 17
Return
sub movedeed
findItem %deed C_ , %bag
if #findcnt > 0
{
exevent drag #findid 1
exevent dropc %bag2
wait 30
gosub movedeed
}
if #findcnt = -1
display ok no deeds stopping
halt
return
Any help is greatly appreciated
Post Merge: October 14, 2014, 10:38:16 PM
i kind of understand your code
sub Getboard
set %packy %box
finditem TLK C_ , %packy
exevent drag #findid 150
exevent dropc %turnbag
wait 30
return
set %packy is my %bag
so
display ok click source bag
#targcurs = 1
while #targcurs = 1
wait 2
set %bag #ltargetid
set #ltargetid #lobjectid
event macro 17
display ok click destination bag
set #targcurs = 1
while #targcurs = 1
wait 2
set %bag2 #ltargetid
set #ltargetid #lobjectid
event macro 17
Those 2 pieces right there would be your %packy and %box
gosub movedeed
set %bag %bag2
what does that do?
finditem %deed _C , %bag
or i could use
finditem EHW _C , %bag
exevent drag #findid
(I'm lost right here too, you put 150, i am trying to move checks, I assume the 150 means 150 boards?)
exevent dropc %turnbag
(I don't know where this came from. I am only trying to use 2 bags. I am sure you just meant it as an example but I'm kind of lost. I understand %packy and %box but not this.)
wait 30
(Then if I wanted to go back again to move another deed, and another, til there were no more deeds, i would...)
gosub movedeed
But is there a way to
if #findcnt > 0
{gosub movedeed}
if #findcnt = -1
{display ok no deeds. stopping}
I can't get it to do that. Once again, any help is appreciated trying to help me get my feet off of the ground.