About postMessage(user32.dll) Can not work in Vivaldi ?
-
I want Send key to Vivaldi borwser When Vivaldi is not Active Windows, 「PostMessage(user32.dll)」 can not work, But When Vivaldi is Active Windows, thePostMessage send key to Vivaldi can work ! How can i do? this is a bug ? Sorry. my poor english.
-
ty I will delete it.
-
So what do You want to achieve?
Maybe just restore Vivaldi window before sending key?
Something like
1. Find Vivaldi main window handle
2. GetWindowPlacement()
3. Replace showCmd with SW_RESTORE
4. SetWindowPlacement()
5. PostMessage()6. GetWindowPlacement()
7. Replace showCmd with SW_MINIMIZE
8. SetWindowPlacement() -