查找指定好友并发红包

阅读更多
init(0);
runApp("com.tencent.mm") --启动微信
mSleep(6 * 1000);

-- 点通讯录
touchDown(420, 1860);    --在 (150, 550) 按下
mSleep(30);
touchUp(420,1860);
mSleep(1000);

-- 点搜索框
touchDown(874,138);
mSleep(30);
touchUp(874,138);
mSleep(1000);

inputText("飞#ENTER#"); --在输入框中输入字符串"Welcome."并回车
mSleep(1000);

-- 点搜索按钮
touchDown(992, 1839);
mSleep(30);
touchUp(992,1839);
mSleep(1000);


-- 选中好友
touchDown(555, 407); 
mSleep(30);
touchUp(555,407);
mSleep(1000);

-- 打开功能菜单
touchDown(1015, 1877); 
mSleep(30);
touchUp(1015,1877);
mSleep(1000);

-- 开始批量红包
for var = 1,10 do

	-- 打开红包
	touchDown(167, 1554); 
	mSleep(30);
	touchUp(167,1554);
	mSleep(2000);

	-- 红包焦点
	touchMove(821, 309);
	touchDown(821, 309); 
	mSleep(30);
	touchUp(821,309);
	mSleep(2000);

	-- 输入红包金额 0.01
	touchDown(546, 1857); 
	mSleep(30);
	touchUp(546,1857);
	mSleep(1000);

	touchDown(183, 1830); 
	mSleep(30);
	touchUp(183,1830);
	mSleep(1000);

	touchDown(546, 1857); 
	mSleep(30);
	touchUp(546,1857);
	mSleep(1000);

	touchDown(177, 1363); 
	mSleep(30);
	touchUp(177,1363);
	mSleep(1000);

	-- money = 0.01;
	-- inputText(money); --在输入框中输入字符串"Welcome."并回车

	-- 点发送红包按钮
	touchMove(560, 877);
	touchDown(560, 877); 
	mSleep(30);
	touchUp(560,877);
	mSleep(4000);

	-- 输入密码
	touchDown(177, 1363); 
	mSleep(30);
	touchUp(177,1363);
	mSleep(1500);

	touchDown(490, 1355); 
	mSleep(30);
	touchUp(490,1355);
	mSleep(1500);

	touchDown(173, 1517); 
	mSleep(30);
	touchUp(173,1517);
	mSleep(1500);

	touchDown(827, 1371); 
	mSleep(30);
	touchUp(827,1371);
	mSleep(1500);

	touchDown(177, 1363); 
	mSleep(30);
	touchUp(177,1363);
	mSleep(1500);

	touchDown(177, 1363); 
	mSleep(30);
	touchUp(177,1363);
	mSleep(3000);
end

 

你可能感兴趣的:(查找指定好友并发红包)