imacros:在给定的帧内按ALL(所有)(数字不同)按钮 [英] imacros: Press ALL (number varies) buttons within a given frame
问题描述
用于FF BUILD = 8940826的FF 42.0 Imacros 2008年初8核MacPro OSX 10.8.2
FF 42.0 Imacros for FF BUILD=8940826 Early 2008 8 core MacPro OSX 10.8.2
在给定的框架内,试图按下很多按钮.我想我可以循环最多一些而忽略错误,但这对我来说很笨拙.
Looking to press however many buttons happen to be present within a given frame. I suppose I could just loop up to some unreasonably large number and ignore errors, but that seems clumsy to me.
因此,如果按下框架中的第一个按钮的按钮如下所示:
So, if a button press for the first button in the frame looks like this:
TAG Pos=1 TYPE=Button ATTR=DATA-LOG-CLICK:add-button
,此后的每个仅随TAG Pos#的不同而变化,有没有一种方法可以搜索最高的TAG Pos#,然后按每个按钮直到最后一个?如果这是一个众所周知的项目,那我一定缺少适当的搜索词.
and each one after that varies only by the TAG Pos#, is there a way to search for the highest TAG Pos#, then press every button up to that last one? If this is a well known item, I must just be lacking the proper search term.
推荐答案
// What you asked for can be done with JS.
var macroClick;
macroClick ="CODE:";
macroClick +="TAG Pos=1 TYPE=Button ATTR=DATA-LOG-CLICK:add-button";
var macroClickTest;
macroClickTest="CODE:";
macroClickTest +="TAG Pos=1 TYPE=Button ATTR=DATA-LOG-CLICK:add-button CONTENT=EVENT:MOUSEOVER";
var pos=1;
while(true)
{
iimSet("n",pos)
if(iimPlay(macroClickTest)<0)
{
pos--;
iimPlay(macroClick)
}
pos++;
}
这篇关于imacros:在给定的帧内按ALL(所有)(数字不同)按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!