Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SendKey to palemoon browser
#5
Do you use this SendKey?

int m1 m2 lp=MapVirtualKey(vk 0)<<16|1 ;;should be Ex with HKL of hwnd, although probably nobody will use it
sel(vk) case [3,33,34,35,36,37,38,39,40,44,45,46,91,92,93,111,144,VK_RCONTROL,VK_RMENU] lp|0x1000000 ;;ek
if(flags&3|2) PostMessage hwnd WM_KEYDOWN vk lp
if(flags&3|1) PostMessage hwnd WM_KEYUP vk lp|0xC0000000

It does not support Ctrl Shift etc. Posts key messages, but does not set key state. Somewhere here should be better version, SendKeysToWindow.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)