[Swfdec] Automating swfdec playing

Nguyen Thai Ngoc Duy pclouds at gmail.com
Wed Jun 20 06:26:45 PDT 2007


Hi,

I got tired of firing up swfplay, click click click drag, check log
output then restart again. How hard is it to create a mechanism to
emulate a user to control a flash? What I need is a script like this:

sleep 1 # wait for introduction
click 100 100 # click at (100,100)
sleep 1
click Button12
sleep 1
drag 100 100 200 200 # click (100,100), drag to (200,200), release mouse
sleep 1
quit

then just call swfplay --script myscript blocky.swf

Cheers,
-- 
Duy


More information about the Swfdec mailing list