Unsolved From QKeySequence to vk_code ?
-
Is there a way to translate Qt's
QKeySequence
or evenQt:Key
intovk_code
or anything usable with windows'SendInput
? -
Hi,
Can you explain what you are trying to achieve with
vk_code
? -
Hi
I have not seen such function.
Seems only to map the other way, VK to Qt:key
https://code.woboq.org/qt5/qtbase/src/plugins/platforms/windows/qwindowskeymapper.cpp.html -
@SGaist I am trying to "type" some text in another application using windows
SendInput
function. -
In that case, you have to write down a reverse map matching what Qt did.
-
@SGaist I see, that is not really fun
-
Well i went a completely different way, i parse the
QKeySequence::toString()
usingVkKeyScanExW
and then useSendInput
, it seems to be working quite well.