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

Notification

Icon
Error

Options
Go to last post Go to first unread
Ganma  
#1 Posted : Saturday, July 6, 2019 6:50:58 AM(UTC)
Ganma

Rank: Newbie

Reputation:

Groups: Approved
Joined: 7/1/2019(UTC)
Posts: 3
China
Location: sc

i want add a hotkey:
when i press z buttom loop the left click

sp.MouseClick(action.start, MouseButtons.Left, true, true); is not work
sp.MouseClick(new Point(x,y), MouseButtons.Left, true, true); is work

i don't know why

Edited by user Sunday, July 7, 2019 12:17:37 AM(UTC)  | Reason: Not specified

Rob  
#2 Posted : Saturday, July 6, 2019 2:05:32 PM(UTC)
Rob

Rank: Administration

Reputation:

Groups: Translators, Members, Administrators
Joined: 1/11/2018(UTC)
Posts: 1,349
United States
Location: Tampa, FL

Thanks: 28 times
Was thanked: 416 time(s) in 354 post(s)
The action object doesn't exist within a hot key script because it contains properties that are not certain during a hot key press.

This should work fine:
Code:
sp.MouseClick(sp.GetCurrentMousePoint(), MouseButtons.Left, true, true); 
Ganma  
#3 Posted : Sunday, July 7, 2019 12:16:48 AM(UTC)
Ganma

Rank: Newbie

Reputation:

Groups: Approved
Joined: 7/1/2019(UTC)
Posts: 3
China
Location: sc

thank you
it's works and help me understand some "Help Document"
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.