LogFAQs > #910833324

LurkerFAQs, Active DB, DB1, DB2, DB3, Database 4 ( 07.23.2018-12.31.2018 ), DB5, DB6, DB7, DB8, DB9, DB10, DB11, DB12, Clear
Topic List
Page List: 1
Topicexcel question
Sahuagin
10/20/18 12:05:16 AM
#7:


you can send key presses to the active window using the .NET SendKeys class

https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.sendkeys?view=netframework-4.7.2

it's a wrapper around the win32 SendInput function, which would be a lot harder to use

https://docs.microsoft.com/en-us/windows/desktop/api/winuser/nf-winuser-sendinput

you'd have to be in something like C#, VB.NET, or maybe PowerShell to use SendKeys.

SendInput would be easiest to call from win32 C++, but you could also call from C# and VB.NET, and maybe from VBA, but it wouldn't be easy.
---
... Copied to Clipboard!
Topic List
Page List: 1