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

Notification

Icon
Error

Options
Go to last post Go to first unread
Yuichi  
#1 Posted : Saturday, April 27, 2019 8:48:18 AM(UTC)
Yuichi

Rank: Advanced Member

Reputation:

Groups: Approved
Joined: 9/13/2018(UTC)
Posts: 54
Poland

Thanks: 18 times
Was thanked: 18 time(s) in 13 post(s)
Nothing special but it's make some things easier.


Code:
// WAIT FOR KEY TO BE RELEASED
while (sp.GetKeyState(vk.SHIFT)) {
    sp.Sleep(50);
}


or for more than 1 key:

Code:
// WAIT FOR KEY TO BE RELEASED
while (sp.GetKeyState(vk.SHIFT) || sp.GetKeyState(vk.CONTROL)) {
    sp.Sleep(50);
}


Only works in version 0.2.9.2 or newer.
thanks 1 user thanked Yuichi for this useful post.
Rob on 4/28/2019(UTC)
Users browsing this topic
Guest
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.