-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from linbooker/main
切换队伍和切换角色
- Loading branch information
Showing
7 changed files
with
94 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
(async function () { | ||
setGameMetrics(3840, 2160, 2); | ||
|
||
keyPress(settings.n); | ||
await sleep(1000); | ||
|
||
log.info("已切换至角色"+ settings.n); | ||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"manifest_version": 1, | ||
"name": "切换角色", | ||
"version": "1.0", | ||
"description": "用于切换角色", | ||
"authors": [ | ||
{ | ||
"name": "LL" | ||
} | ||
], | ||
"settings_ui": "settings.json", | ||
"main": "main.js" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[ | ||
{ | ||
"name": "n", | ||
"type": "select", | ||
"label": "角色序号", | ||
"options": [ | ||
"1", | ||
"2", | ||
"3", | ||
"4", | ||
"5" | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{"macroEvents":[{"type":4,"mouseX":1000,"mouseY":800,"mouseButton":"Left","time":100}, | ||
{"type":2,"mouseX":1000,"mouseY":900,"time":150}, | ||
{"type":2,"mouseX":1000,"mouseY":1000,"time":200}, | ||
{"type":2,"mouseX":1000,"mouseY":1100,"time":250}, | ||
{"type":2,"mouseX":1000,"mouseY":1200,"time":300}, | ||
{"type":2,"mouseX":1000,"mouseY":1300,"time":350}, | ||
{"type":2,"mouseX":1000,"mouseY":1400,"time":400}, | ||
{"type":2,"mouseX":1000,"mouseY":1500,"time":450}, | ||
{"type":5,"mouseX":1000,"mouseY":1500,"mouseButton":"Left","time":500}], | ||
"info":{"name":"","description":"","x":746,"y":620,"width":1920,"height":1080,"recordDpi":1.75}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
(async function () { | ||
setGameMetrics(3840, 2160, 2); | ||
keyPress("L"); | ||
await sleep(4500); | ||
click(100, 2050); | ||
await sleep(800); | ||
|
||
for(let i = 0; i < 3; i++){ | ||
await keyMouseScript.runFile(`assets/Team.json`); | ||
await sleep(800); | ||
} | ||
|
||
click(100, 300); | ||
await sleep(800); | ||
click(100, 2050); | ||
await sleep(800); | ||
|
||
for(let i = 1; i < settings.n; i++){ | ||
click(3684, 1078); | ||
await sleep(800); | ||
} | ||
|
||
click(3200, 2050); | ||
await sleep(1000); | ||
keyPress("Escape"); | ||
await sleep(1000); | ||
|
||
log.info("已切换至第"+ settings.n +"队"); | ||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"manifest_version": 1, | ||
"name": "切换队伍", | ||
"version": "1.0", | ||
"description": "按顺序切换至队伍", | ||
"authors": [ | ||
{ | ||
"name": "LL" | ||
} | ||
], | ||
"settings_ui": "settings.json", | ||
"main": "main.js" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[ | ||
{ | ||
"name": "n", | ||
"type": "input-text", | ||
"label": "队伍序号" | ||
} | ||
] |