--- In [email protected], "dleidinger" <dleidin...@...> wrote:
>
> 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. 

No.  You cannot use messages like WM_CHAR in general to send keys; although it 
may work in may cases, there are others where it unreliable.   There is more 
info on this in the ms site somewhere, although it has been years since I 
researched this.

But it may work in your particular case.  


C
> 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.

You Can just use 
y<<16+x  // or y<<16|x or y*256*26+x etc.


 It does not matter that the numbers look decimal when you display them.  
Whenever PowerPro works with them in numeric functions like <<, or gets them 
ready for functions that expect numbers like postmessage, the binary 32 bit 
value is used.





 

Reply via email to