automation - AutoIt - ControlClick on Flash content -
ok, i'm trying automate closing multiple tickets on job's ticketing system, browser based , built on flash (it's atrocious). using autoit v3 window info, able of information, clicks aren't registering. understand window has active controlclick work, nothing progresses.
code:
while 1 $msg = guigetmsg() select case $msg = $gui_event_close exitloop case $msg = $autoclose $numtickets = guictrlread($numticketsbox) $istate = 1 $i = 0 case else if $istate = 1 if $i >= $numtickets $istate = 3 continueloop endif controlclick("[class:macromediaflashplayeractivex]", "", "", "left", 1, 143, 474) $istate = 2 $itimer = timerinit() elseif $istate = 2 if timerdiff($itimer) < 2000 continueloop controlclick("[class:macromediaflashplayeractivex]", "", "", "left", 1, 700, 337) $itimer = timerinit() $i = $i + 1 $istate = 1 elseif $istate = 3 if timerdiff($itimer) < 1000 continueloop if $i <= 0 $istate = 1 continueloop endif controlclick("[class:macromediaflashplayeractivex]", "", "", "left", 1, 59, 337) $itimer = timerinit() $i = $i - 1 endif endselect wend
and output of >>>> control <<<< section of window info:
>>>> control <<<< class: macromediaflashplayeractivex instance: 1 classnamenn: macromediaflashplayeractivex1 name: advanced (class): [class:macromediaflashplayeractivex; instance:1] id: 172092576 text: position: 8, 194 size: 760, 620 controlclick coords: 59, 339 style: 0x56000000 exstyle: 0x00000000 handle: 0x0002117a
any appreciated.
----edit----
the closest thing can come similar solution located here: http://www.autoitscript.com/forum/topic/94736-noob-controlclick/ doesn't appear working me. once again, appreciative.
try instead
controlclick("[class:macromediaflashplayeractivex]", "", 172092576, "left", 1, 700, 337)
Comments
Post a Comment