Windows 10の電卓アプリで1+1=
を記録してみる
MMV(1038,913,203)
MMV(1040,913,15)
MMV(1046,913,15)
MMV(1049,913,47)
ACW(GETID("電卓","ApplicationFrameWindow"),1003,464,574,534,0)
BTN(LEFT,CLICK,1049,913,156)
ACW(GETID("電卓","ApplicationFrameWindow"),1003,464,574,534,0)
MMV(1049,913,281)
MMV(1058,914,16)
MMV(1073,916,15)
MMV(1095,919,16)
MMV(1119,922,16)
MMV(1146,926,15)
MMV(1165,928,16)
MMV(1178,929,15)
MMV(1187,930,16)
MMV(1193,931,16)
MMV(1200,931,15)
MMV(1219,931,16)
MMV(1232,931,15)
MMV(1245,931,16)
MMV(1253,931,15)
MMV(1261,931,16)
MMV(1268,931,16)
MMV(1275,931,15)
MMV(1294,929,15)
MMV(1300,928,16)
MMV(1300,927,62)
MMV(1300,926,16)
MMV(1301,924,16)
MMV(1301,922,16)
MMV(1299,919,15)
BTN(LEFT,DOWN,1296,916,157)
MMV(1296,916,47)
BTN(LEFT,UP,1296,916,78)
MMV(1296,916,47)
MMV(1278,920,15)
MMV(1264,922,16)
MMV(1250,924,16)
MMV(1233,927,15)
MMV(1213,929,16)
MMV(1193,930,16)
MMV(1169,930,15)
MMV(1144,931,16)
MMV(1123,931,15)
MMV(1102,931,16)
MMV(1088,931,16)
MMV(1066,930,16)
MMV(1063,930,16)
MMV(1062,930,15)
MMV(1062,929,78)
MMV(1060,929,16)
MMV(1058,927,16)
MMV(1054,924,16)
MMV(1053,924,15)
MMV(1052,922,15)
MMV(1050,921,16)
MMV(1049,920,15)
MMV(1048,917,16)
MMV(1047,917,31)
MMV(1047,916,16)
BTN(LEFT,CLICK,1047,916,312)
MMV(1047,916,359)
MMV(1048,916,16)
MMV(1069,916,16)
MMV(1080,916,15)
MMV(1094,916,16)
MMV(1108,915,15)
MMV(1140,915,16)
MMV(1152,915,15)
MMV(1162,916,16)
MMV(1174,917,16)
MMV(1198,921,16)
MMV(1208,922,15)
MMV(1227,926,16)
MMV(1235,927,15)
MMV(1248,931,16)
MMV(1252,934,16)
MMV(1253,937,15)
MMV(1255,940,16)
MMV(1265,948,15)
MMV(1272,955,16)
MMV(1281,964,16)
MMV(1291,967,16)
MMV(1292,968,16)
BTN(LEFT,CLICK,1293,968,109)
MMV(1293,968,719)
MMV(1295,968,15)
MMV(1302,967,16)
MMV(1314,966,16)
MMV(1329,966,15)
MMV(1347,966,16)
MMV(1365,966,15)
MMV(1382,967,16)
MMV(1399,967,16)
MMV(1429,967,16)
MMV(1463,964,15)
MMV(1483,960,16)
MMV(1500,955,15)
MMV(1519,946,16)
MMV(1537,938,16)
MMV(1551,932,15)
MMV(1568,926,16)
MMV(1595,916,15)
MMV(1613,905,15)
MMV(1618,903,16)
MMV(1621,901,16)
MMV(1631,892,15)
MMV(1637,886,15)
MMV(1642,882,16)
MMV(1656,869,16)
MMV(1661,863,16)
MMV(1664,858,16)
MMV(1664,857,31)
MMV(1665,856,16)
MMV(1665,853,16)
MMV(1666,851,15)
MMV(1667,850,16)
MMV(1667,849,16)
MMV(1667,848,15)
MMV(1668,845,15)
MMV(1668,841,15)
MMV(1668,840,16)
設定
- 余分な時間、マウス移動は記録しない
ACW(GETID("電卓","ApplicationFrameWindow"),132,257,574,534,0)
BTN(LEFT,CLICK,180,705,203)
BTN(LEFT,CLICK,408,709,187)
BTN(LEFT,CLICK,179,708,141)
BTN(LEFT,CLICK,413,755,300)
コメント
- 絶対座標で記録する利点が分からない
設定
- 余分な時間、マウス移動は記録しない
- マウス座標を相対座標で記録する
ACW(GETID("電卓","ApplicationFrameWindow"),132,257,574,534,0)
MOUSEORG(GETID("電卓","ApplicationFrameWindow"))
BTN(LEFT,CLICK,42,452,109)
BTN(LEFT,CLICK,287,451,16)
BTN(LEFT,CLICK,39,451,94)
BTN(LEFT,CLICK,281,503,300)
- 疑似的にクリックさせたいならこれが良い?
- 高レベル記録も試してみるべき
- 余分な時間、マウス移動は記録しない
- バックグラウンドで実行できる形で記録
MOUSEORG(GETID("電卓","ApplicationFrameWindow"),MORG_DIRECT)
BTN(LEFT,CLICK,49,448,110)
BTN(LEFT,CLICK,278,452,141)
BTN(LEFT,CLICK,43,451,31)
BTN(LEFT,CLICK,285,506,300)
- WPF、UWP アプリは非対応
- 記録されるのはクライアント領域内のみ
id = GETID("電卓", "ApplicationFrameWindow", -1)
SLEEP(1)
CLKITEM(id, "1", CLK_BTN)
CLKITEM(id, "プラス", CLK_BTN)
CLKITEM(id, "1", CLK_BTN)
CLKITEM(id, "等号", CLK_BTN)
- 注意点がヘルプに書いてある
- キーボード操作は非対応
- マウスクリックで(比較的)ゆっくり操作する必要がある
- 多段メニューはメニューが出る毎にクリックする必要がある
- 記録できないアプリやオブジェクトがある