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

Notification

Icon
Error

Options
Go to last post Go to first unread
yisqiu  
#1 Posted : Monday, August 30, 2021 2:06:15 PM(UTC)
yisqiu

Rank: Newbie

Reputation:

Groups: Approved
Joined: 7/12/2020(UTC)
Posts: 6
Angola

Use the following code can normal send in activation condition

Quote:
WM_KEYDOWN = 0x100
WM_KEYUP = 0x101
VK_NEXT = 0x22
VK_PRIOR = 0x21

var mouse_control = sp.WindowFromPoint(sp.GetCurrentMousePoint(),false);
mouse_control.PostMessageObj(WM_KEYDOWN, VK_PRIOR, 0x140001);
sp.Sleep(10);
mouse_control.PostMessageObj(WM_KEYUP, VK_PRIOR, 0x140001);


but can't work under the activated state,does anyone know why?
Rob  
#2 Posted : Wednesday, September 1, 2021 12:29:23 PM(UTC)
Rob

Rank: Administration

Reputation:

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

Thanks: 22 times
Was thanked: 309 time(s) in 270 post(s)
See this post:

https://devblogs.microsoft.com/oldnewthing/20050530-11/?p=35513

Sometimes you can make this work, sometimes you cannot. It's not something I support since there's no guarantee it will function.

I only recommend activating the window, then using the various methods to send keystrokes.
yisqiu  
#3 Posted : Wednesday, September 1, 2021 2:01:07 PM(UTC)
yisqiu

Rank: Newbie

Reputation:

Groups: Approved
Joined: 7/12/2020(UTC)
Posts: 6
Angola

thanks
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.