Add pieces, and layers

I think I’m going to redo the La Grande Guerre.

Is there and automated way to add in pieces and layers?

Vassal doesn’t seem SendKey friendly.

Has anyone ever tried something like AutoIt?

On 18/04/2009 at 11:47 AM MikeVassal wrote:

As I have mentioned several times on this list over the past few weeks, Vassal version 3.2 will include functionality to load multiple counters at a time.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

$search = FileFindFirstFile(“C:\La Grande Guerre\images*.gif”)
$file = FileFindNextFile($search)

For $x = 1 To 140
sleep (1000)
MouseClick (“left”, 85,445, 1, 2)

;Add single piece
sleep (1000)
MouseClick (“left”, 90,650, 1, 2)

;Properties
sleep (2000)

;Add in layer
MouseClick (“right”, 350,345, 1, 2)

sleep (1000)
MouseClick (“right”, 450,360, 1, 2)

;Always active
sleep (1000)
MouseClick (“right”, 220,240, 1, 2)

sleep (1000)
MouseClick (“right”, 210,435, 2, 2)

;Type in name hit enter
sleep (1000)
Send($file)
sleep (1000)
Send("{ENTER}")
sleep (6000)

;Add Layer
sleep (1000)
MouseClick (“right”, 210,520, 1, 2)

sleep (1000)
MouseClick (“right”, 210,435, 2, 2)

sleep (3000)
$file = FileFindNextFile($search)
Send($file)
sleep (1000)
Send("{ENTER}")
sleep (6000)

sleep (1000)
MouseClick (“right”, 450,550, 1, 2)

sleep (1000)
MouseClick (“right”, 425,490, 1, 2)

sleep (2000)

$file = FileFindNextFile($search)

EndIf

Next

MsgBox(0, “Done”, “Done”)

Thus spake “MikeVassal”:

Anytime you’re forced to use a robot for automataing interaction with a GUI,
that just shows that the underlying data isn’t sufficiently accessible so
that you can do those operations on it directly. This is a great example why
I want to make buildFiles easier to edit.


J.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)