Hi Bruce,

> what are you hoping to accomplishment?  
generally i want to find out, if win.postmesssage could be an easier and more 
reliable alternative for win.keys. Currently i am trying to use powerpro in 
combination with the mousetrap-plugin to send exactly the same 
WM_MOUSEWHEEL-message to the browser Opera as the standard is doing.

lParam is described as:
-----------------------
The low-order word specifies the x-coordinate of the pointer, relative to the 
upper-left corner of the screen. 
The high-order word specifies the y-coordinate of the pointer, relative to the 
upper-left corner of the screen.

The mousetrap-plugin returns x/y-coordinate as two decimal values, which I have 
to convert into one value, in order to use as lparm in win.postmessage.

At the moment i have the following code:
----------------------------------------
local l_xmouse = slice("0000"++win.hex(l_mt_xmouse),-4)
local l_ymouse = slice("0000"++win.hex(l_mt_ymouse),-4)
do("local l_lparm = 0x" ++ l_ymouse ++ l_xmouse)
win.postmessage(l_chan,0x20A,0xff880000,l_lparm)

Please let me know, if there is a better, shorter or more efficient way to 
achieve this. 

Best regards

Reply via email to