StrokesPlus.net
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
onetarget  
#1 Posted : Thursday, June 13, 2024 8:11:38 AM(UTC)
onetarget

Rank: Newbie

Reputation:

Groups: Approved
Joined: 6/5/2024(UTC)
Posts: 9
China

Thanks: 1 times
有没有能看懂汉字的中国老表,提出一个问题,希望帮忙解决。
用悬浮球录制了一个脚本。然后让他自动运行。
发现在运行的过程中出现了错误,想让它停止。但是无法实现。
请问如何停止正在运行的脚本。特别着急。
谢谢谢谢了
Flapper Flapper Flapper
liuxilu  
#2 Posted : Thursday, June 13, 2024 8:30:33 AM(UTC)
liuxilu

Rank: Advanced Member

Reputation:

Groups: Translators, Moderators, Approved
Joined: 4/6/2020(UTC)
Posts: 84
China

Thanks: 1 times
Was thanked: 22 time(s) in 22 post(s)
sp.StopAllScripts();
onetarget  
#3 Posted : Thursday, June 13, 2024 8:37:07 AM(UTC)
onetarget

Rank: Newbie

Reputation:

Groups: Approved
Joined: 6/5/2024(UTC)
Posts: 9
China

Thanks: 1 times
Originally Posted by: liuxilu Go to Quoted Post
sp.StopAllScripts();


具体是怎么操作的,请指教,有点小白。是设置快捷键立面输入这几个字符吗?还是怎样操作,可以具体说下步骤吗?非常感谢


liuxilu  
#4 Posted : Thursday, June 13, 2024 8:44:22 AM(UTC)
liuxilu

Rank: Advanced Member

Reputation:

Groups: Translators, Moderators, Approved
Joined: 4/6/2020(UTC)
Posts: 84
China

Thanks: 1 times
Was thanked: 22 time(s) in 22 post(s)
拿一个快捷键或手势脚本写这个,想停止就按这个快捷键或手势
onetarget  
#5 Posted : Thursday, June 13, 2024 8:56:30 AM(UTC)
onetarget

Rank: Newbie

Reputation:

Groups: Approved
Joined: 6/5/2024(UTC)
Posts: 9
China

Thanks: 1 times
Originally Posted by: liuxilu Go to Quoted Post
拿一个快捷键或手势脚本写这个,想停止就按这个快捷键或手势


在热键立面创建了一个快捷键为shift+f2的快捷键。命令是发送按键。参数源为直接输入 sp.StopAllScripts(); 点应用。确定。
然后重新启动悬浮球跑脚本。按这个快捷键没反应。不能立马停止。请问我的问题是出在哪里?

onetarget  
#6 Posted : Thursday, June 13, 2024 9:03:21 AM(UTC)
onetarget

Rank: Newbie

Reputation:

Groups: Approved
Joined: 6/5/2024(UTC)
Posts: 9
China

Thanks: 1 times
https://s2.loli.net/2024/06/13/FqNtOHTylh71BfC.png
Originally Posted by: liuxilu Go to Quoted Post
拿一个快捷键或手势脚本写这个,想停止就按这个快捷键或手势


liuxilu  
#7 Posted : Thursday, June 13, 2024 12:05:07 PM(UTC)
liuxilu

Rank: Advanced Member

Reputation:

Groups: Translators, Moderators, Approved
Joined: 4/6/2020(UTC)
Posts: 84
China

Thanks: 1 times
Was thanked: 22 time(s) in 22 post(s)
输入脚本,不是步骤
thanks 1 user thanked liuxilu for this useful post.
onetarget on 6/14/2024(UTC)
onetarget  
#8 Posted : Friday, June 14, 2024 1:01:55 AM(UTC)
onetarget

Rank: Newbie

Reputation:

Groups: Approved
Joined: 6/5/2024(UTC)
Posts: 9
China

Thanks: 1 times
Originally Posted by: liuxilu Go to Quoted Post
sp.StopAllScripts();

设置了还是不行,可以截图看下的设置吗? 看下我设置的对不? https://s2.loli.net/2024/06/14/EUqRIov23kum6Bs.png

liuxilu  
#9 Posted : Saturday, June 15, 2024 2:04:57 AM(UTC)
liuxilu

Rank: Advanced Member

Reputation:

Groups: Translators, Moderators, Approved
Joined: 4/6/2020(UTC)
Posts: 84
China

Thanks: 1 times
Was thanked: 22 time(s) in 22 post(s)
就是这样,怎么会不行呢
你悬浮球的脚本发来看看
onetarget  
#10 Posted : Saturday, June 15, 2024 2:24:47 AM(UTC)
onetarget

Rank: Newbie

Reputation:

Groups: Approved
Joined: 6/5/2024(UTC)
Posts: 9
China

Thanks: 1 times
Originally Posted by: liuxilu Go to Quoted Post
就是这样,怎么会不行呢
你悬浮球的脚本发来看看

任何悬浮球的脚本都停不下来
https://s2.loli.net/2024/06/15/Hvla4uyn9bSCAfh.png
UserPostedImage

sp.ConsumePhysicalInput(true);
sp.MouseMove(new Point(1060, 643));
/*应用定义

根所有者窗口类名: ApplicationFrameWindow
根所有者窗口文本(标题): WhatsApp
根窗口类名: ApplicationFrameWindow
根窗口文本(标题): WhatsApp
父窗口类名: #32769
类名: ApplicationFrameWindow
文本(标题): WhatsApp
路径: C:\Windows\System32
文件名(EXE): ApplicationFrameHost.exe
*/
sp.Sleep(24);
sp.MouseMove(new Point(1040, 649));
sp.Sleep(15);
sp.MouseMove(new Point(1011, 660));
sp.Sleep(8);
sp.MouseMove(new Point(991, 669));
sp.Sleep(7);
sp.MouseMove(new Point(966, 680));
sp.Sleep(7);
sp.MouseMove(new Point(937, 693));
sp.Sleep(8);
sp.MouseMove(new Point(905, 711));
sp.Sleep(7);
sp.MouseMove(new Point(876, 728));
sp.Sleep(7);
sp.MouseMove(new Point(846, 748));
sp.Sleep(8);
sp.MouseMove(new Point(821, 766));
sp.Sleep(7);
sp.MouseMove(new Point(799, 783));
sp.Sleep(8);
sp.MouseMove(new Point(779, 800));
sp.Sleep(7);
sp.MouseMove(new Point(758, 819));
sp.Sleep(8);
sp.MouseMove(new Point(737, 840));
sp.Sleep(7);
sp.MouseMove(new Point(716, 861));
sp.Sleep(8);
sp.MouseMove(new Point(694, 881));
sp.Sleep(7);
sp.MouseMove(new Point(671, 900));
sp.Sleep(7);
sp.MouseMove(new Point(646, 920));
sp.Sleep(8);
sp.MouseMove(new Point(618, 939));
sp.Sleep(7);
sp.MouseMove(new Point(594, 955));
sp.Sleep(8);
sp.MouseMove(new Point(570, 970));
sp.Sleep(7);
sp.MouseMove(new Point(549, 982));
sp.Sleep(8);
sp.MouseMove(new Point(530, 992));
sp.Sleep(15);
sp.MouseMove(new Point(506, 1001));
sp.Sleep(15);
sp.MouseMove(new Point(481, 1004));
sp.Sleep(16);
sp.MouseMove(new Point(456, 1007));
sp.Sleep(15);
sp.MouseMove(new Point(433, 1011));
sp.Sleep(23);
sp.MouseMove(new Point(405, 1016));
sp.Sleep(23);
sp.MouseMove(new Point(378, 1017));
sp.Sleep(23);
sp.MouseMove(new Point(352, 1019));
sp.Sleep(39);
sp.MouseMove(new Point(328, 1024));
sp.Sleep(24);
sp.MouseMove(new Point(305, 1026));
sp.Sleep(31);
sp.MouseMove(new Point(283, 1032));
sp.Sleep(64);
sp.MouseMove(new Point(265, 1042));
sp.MouseMove(new Point(268, 1057));
sp.Sleep(447);
sp.MouseClick(new Point(268, 1057), MouseButtons.Left, true, false);
sp.Sleep(87);
sp.MouseClick(new Point(268, 1057), MouseButtons.Left, false, true);
/*应用定义

根所有者窗口类名: XLMAIN
根所有者窗口文本(标题): WAFilter_Success__2024-06-13 09_41_06.xlsx - WPS Office
根窗口类名: XLMAIN
根窗口文本(标题): WAFilter_Success__2024-06-13 09_41_06.xlsx - WPS Office
父窗口类名: #32769
类名: XLMAIN
文本(标题): WAFilter_Success__2024-06-13 09_41_06.xlsx - WPS Office
路径: C:\Users\Administrator\AppData\Local\kingsoft\WPS Office\12.1.0.17133\office6
文件名(EXE): wps.exe
*/
sp.Sleep(215);
sp.MouseMove(new Point(289, 1040));
sp.Sleep(15);
sp.MouseMove(new Point(310, 1023));
sp.Sleep(15);
sp.MouseMove(new Point(332, 1006));
sp.Sleep(15);
sp.MouseMove(new Point(350, 991));
sp.Sleep(15);
sp.MouseMove(new Point(373, 977));
sp.Sleep(15);
sp.MouseMove(new Point(400, 964));
sp.Sleep(8);
sp.MouseMove(new Point(418, 954));
sp.Sleep(7);
sp.MouseMove(new Point(437, 941));
sp.Sleep(8);
sp.MouseMove(new Point(457, 924));
sp.Sleep(7);
sp.MouseMove(new Point(478, 905));
sp.Sleep(8);
sp.MouseMove(new Point(497, 882));
sp.Sleep(8);
sp.MouseMove(new Point(517, 860));
sp.Sleep(7);
sp.MouseMove(new Point(534, 837));
sp.Sleep(7);
sp.MouseMove(new Point(551, 819));
sp.Sleep(8);
sp.MouseMove(new Point(567, 802));
sp.Sleep(7);
sp.MouseMove(new Point(583, 784));
sp.Sleep(15);
sp.MouseMove(new Point(606, 761));
sp.Sleep(16);
sp.MouseMove(new Point(624, 742));
sp.Sleep(23);
sp.MouseMove(new Point(641, 721));
sp.Sleep(1912);
sp.SendVKeyDown(vk.DOWN);
sp.Sleep(95);
sp.SendVKeyUp(vk.DOWN);
sp.Sleep(535);
sp.SendVKeyDown(vk.LCONTROL);
sp.Sleep(271);
sp.SendVKeyDown(vk.VK_C);
sp.Sleep(167);
sp.SendVKeyUp(vk.VK_C);
sp.Sleep(15);
sp.SendVKeyUp(vk.LCONTROL);
sp.Sleep(719);
sp.MouseMove(new Point(622, 709));
sp.Sleep(7);
sp.MouseMove(new Point(599, 710));
sp.Sleep(7);
sp.MouseMove(new Point(567, 715));
sp.Sleep(8);
sp.MouseMove(new Point(530, 722));
sp.Sleep(7);
sp.MouseMove(new Point(498, 731));
sp.Sleep(8);
sp.MouseMove(new Point(478, 738));
sp.Sleep(95);
sp.MouseMove(new Point(462, 752));
sp.Sleep(87);
sp.MouseMove(new Point(466, 779));
sp.Sleep(23);
sp.MouseMove(new Point(467, 803));
sp.Sleep(16);
sp.MouseMove(new Point(468, 835));
sp.Sleep(8);
sp.MouseMove(new Point(471, 858));
sp.Sleep(7);
sp.MouseMove(new Point(478, 888));
sp.Sleep(8);
sp.MouseMove(new Point(484, 917));
sp.Sleep(7);
sp.MouseMove(new Point(491, 946));
sp.Sleep(8);
sp.MouseMove(new Point(496, 973));
sp.Sleep(7);
sp.MouseMove(new Point(500, 994));
sp.Sleep(16);
sp.MouseMove(new Point(504, 1021));
sp.Sleep(24);
sp.MouseMove(new Point(511, 1044));
sp.Sleep(71);
sp.MouseMove(new Point(516, 1064));
sp.MouseMove(new Point(508, 1078));
sp.Sleep(272);
sp.MouseClick(new Point(508, 1078), MouseButtons.Left, true, false);
sp.Sleep(79);
sp.MouseClick(new Point(508, 1078), MouseButtons.Left, false, true);
/*应用定义

根所有者窗口类名: Chrome_WidgetWin_1
根所有者窗口文本(标题): 通过 WhatsApp 共享 - Google Chrome
根窗口类名: Chrome_WidgetWin_1
根窗口文本(标题): 通过 WhatsApp 共享 - Google Chrome
父窗口类名: #32769
类名: Chrome_WidgetWin_1
文本(标题): 通过 WhatsApp 共享 - Google Chrome
路径: C:\Program Files\Google\Chrome\Application
文件名(EXE): chrome.exe
*/
sp.Sleep(287);
sp.MouseMove(new Point(530, 1046));
sp.Sleep(16);
sp.MouseMove(new Point(541, 1025));
sp.Sleep(15);
sp.MouseMove(new Point(548, 999));
sp.Sleep(16);
sp.MouseMove(new Point(556, 954));
sp.Sleep(8);
sp.MouseMove(new Point(563, 922));
sp.Sleep(7);
sp.MouseMove(new Point(570, 885));
sp.Sleep(7);
sp.MouseMove(new Point(574, 841));
sp.Sleep(8);
sp.MouseMove(new Point(576, 789));
sp.Sleep(7);
sp.MouseMove(new Point(575, 734));
sp.Sleep(7);
sp.MouseMove(new Point(569, 679));
sp.Sleep(7);
sp.MouseMove(new Point(557, 628));
sp.Sleep(8);
sp.MouseMove(new Point(542, 582));
sp.Sleep(7);
sp.MouseMove(new Point(525, 538));
sp.Sleep(8);
sp.MouseMove(new Point(510, 496));
sp.Sleep(7);
sp.MouseMove(new Point(497, 463));
sp.Sleep(8);
sp.MouseMove(new Point(489, 433));
sp.Sleep(7);
sp.MouseMove(new Point(481, 406));
sp.Sleep(8);
sp.MouseMove(new Point(475, 384));
sp.Sleep(7);
sp.MouseMove(new Point(468, 365));
sp.Sleep(8);
sp.MouseMove(new Point(461, 345));
sp.Sleep(7);
sp.MouseMove(new Point(450, 322));
sp.Sleep(8);
sp.MouseMove(new Point(439, 303));
sp.Sleep(8);
sp.MouseMove(new Point(427, 282));
sp.Sleep(7);
sp.MouseMove(new Point(415, 263));
sp.Sleep(15);
sp.MouseMove(new Point(402, 246));
sp.Sleep(8);
sp.MouseMove(new Point(384, 219));
sp.Sleep(15);
sp.MouseMove(new Point(377, 200));
sp.Sleep(32);
sp.MouseMove(new Point(372, 178));
sp.Sleep(32);
sp.MouseMove(new Point(365, 159));
sp.Sleep(55);
sp.MouseMove(new Point(365, 134));
sp.Sleep(64);
sp.MouseMove(new Point(365, 113));
sp.Sleep(119);
sp.MouseMove(new Point(371, 93));
sp.Sleep(104);
sp.MouseMove(new Point(385, 78));
sp.Sleep(120);
sp.MouseMove(new Point(406, 68));
sp.MouseMove(new Point(414, 61));
sp.Sleep(184);
sp.MouseClick(new Point(414, 61), MouseButtons.Left, true, false);
sp.Sleep(423);
sp.MouseClick(new Point(414, 61), MouseButtons.Left, false, true);
sp.MouseMove(new Point(414, 61));
sp.Sleep(79);
sp.MouseClick(new Point(414, 61), MouseButtons.Left, true, false);
sp.Sleep(104);
sp.MouseClick(new Point(414, 61), MouseButtons.Left, false, true);
sp.Sleep(575);
sp.MouseMove(new Point(426, 58));
sp.Sleep(87);
sp.MouseMove(new Point(446, 55));
sp.Sleep(47);
sp.MouseMove(new Point(468, 55));
sp.MouseMove(new Point(471, 59));
sp.Sleep(312);
sp.MouseClick(new Point(471, 59), MouseButtons.Left, true, false);
sp.Sleep(48);
sp.MouseClick(new Point(471, 59), MouseButtons.Left, false, true);
sp.MouseMove(new Point(471, 59));
sp.Sleep(95);
sp.MouseClick(new Point(471, 59), MouseButtons.Left, true, false);
sp.Sleep(80);
sp.MouseClick(new Point(471, 59), MouseButtons.Left, false, true);
sp.Sleep(535);
sp.SendVKeyDown(vk.LCONTROL);
sp.Sleep(119);
sp.SendVKeyDown(vk.VK_V);
sp.Sleep(119);
sp.SendVKeyUp(vk.LCONTROL);
sp.Sleep(10);
sp.SendVKeyUp(vk.VK_V);
sp.Sleep(416);
sp.SendVKeyDown(vk.RETURN);
sp.Sleep(96);
sp.SendVKeyUp(vk.RETURN);
sp.Sleep(1367);
sp.MouseMove(new Point(485, 67));
sp.Sleep(40);
sp.MouseMove(new Point(503, 77));
sp.Sleep(47);
sp.MouseMove(new Point(522, 87));
/*应用定义

根所有者窗口类名: ApplicationFrameWindow
根所有者窗口文本(标题): WhatsApp
根窗口类名: ApplicationFrameWindow
根窗口文本(标题): WhatsApp
父窗口类名: #32769
类名: ApplicationFrameWindow
文本(标题): WhatsApp
路径: C:\Windows\System32
文件名(EXE): ApplicationFrameHost.exe
*/
sp.Sleep(423);
sp.MouseMove(new Point(541, 94));
sp.Sleep(271);
sp.MouseMove(new Point(559, 104));
sp.Sleep(895);
sp.MouseMove(new Point(555, 124));
sp.Sleep(40);
sp.MouseMove(new Point(550, 153));
sp.Sleep(15);
sp.MouseMove(new Point(548, 192));
sp.Sleep(7);
sp.MouseMove(new Point(545, 221));
sp.Sleep(8);
sp.MouseMove(new Point(542, 249));
sp.Sleep(7);
sp.MouseMove(new Point(537, 278));
sp.Sleep(8);
sp.MouseMove(new Point(532, 302));
sp.Sleep(15);
sp.MouseMove(new Point(529, 333));
sp.Sleep(16);
sp.MouseMove(new Point(528, 353));
sp.Sleep(23);
sp.MouseMove(new Point(528, 376));
sp.Sleep(24);
sp.MouseMove(new Point(528, 409));
sp.Sleep(15);
sp.MouseMove(new Point(528, 435));
sp.Sleep(16);
sp.MouseMove(new Point(524, 461));
sp.Sleep(32);
sp.MouseMove(new Point(520, 483));
sp.Sleep(23);
sp.MouseMove(new Point(518, 504));
sp.Sleep(24);
sp.MouseMove(new Point(518, 533));
sp.Sleep(31);
sp.MouseMove(new Point(518, 556));
sp.ConsumePhysicalInput(false);
sp.ConsumePhysicalInput(false);
onetarget  
#11 Posted : Saturday, June 15, 2024 2:47:58 AM(UTC)
onetarget

Rank: Newbie

Reputation:

Groups: Approved
Joined: 6/5/2024(UTC)
Posts: 9
China

Thanks: 1 times
Originally Posted by: liuxilu Go to Quoted Post
就是这样,怎么会不行呢
你悬浮球的脚本发来看看

https://s2.loli.net/2024/06/15/m4WNBD6URZSbvoA.gif
liuxilu  
#12 Posted : Saturday, June 15, 2024 9:22:08 AM(UTC)
liuxilu

Rank: Advanced Member

Reputation:

Groups: Translators, Moderators, Approved
Joined: 4/6/2020(UTC)
Posts: 84
China

Thanks: 1 times
Was thanked: 22 time(s) in 22 post(s)
去掉sp.ConsumePhysicalInput
onetarget  
#13 Posted : Saturday, June 15, 2024 9:36:36 AM(UTC)
onetarget

Rank: Newbie

Reputation:

Groups: Approved
Joined: 6/5/2024(UTC)
Posts: 9
China

Thanks: 1 times
Originally Posted by: liuxilu Go to Quoted Post
去掉sp.ConsumePhysicalInput

谢谢。按照你说的方法。完美解决。

onetarget  
#14 Posted : Tuesday, June 18, 2024 8:19:09 AM(UTC)
onetarget

Rank: Newbie

Reputation:

Groups: Approved
Joined: 6/5/2024(UTC)
Posts: 9
China

Thanks: 1 times
Originally Posted by: onetarget Go to Quoted Post
Originally Posted by: liuxilu Go to Quoted Post
去掉sp.ConsumePhysicalInput

谢谢。按照你说的方法。完美解决。


又是这个问题。现在能完美的停止。
但是有一个场景。我用alt+1 是自动发送 你好,很高兴认识你。
把alt+1也录制到脚本里,自动运行时。给客户发 你好,很高兴认识你。你好,很高兴认识你。
如果把停止的那个脚本加上放在最上面。他就只发送一个 你好,很高兴认识你。
删除脚本后,再次出现 你好,很高兴认识你。你好,很高兴认识你。
现在矛盾中。删除停止,文本会叠加,不删除,无法手动停止。
请问有没有好的解决方案

Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.