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 12: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 Saturday, July 6, 2019 6:17:37 PM(UTC)  | Reason: Not specified

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

Rank: Administration

Reputation:

Groups: Translators, Members, Administrators
Joined: 1/11/2018(UTC)
Posts: 455
United States

Thanks: 5 times
Was thanked: 88 time(s) in 76 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 : Saturday, July 6, 2019 6:16:48 PM(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.