Jump to content

SpMPFROM2SHORT: Difference between revisions

From EDM2
Created page with "Returns a message parameter (used by spPostMsg) value which is build from 2 short (integer) values. '''Syntax:''' mparam = spMPFROM2SHORT ( short1 , short2 ) '''Parameters:'..."
 
(No difference)

Revision as of 04:28, 29 June 2016

Returns a message parameter (used by spPostMsg) value which is build from 2 short (integer) values.

Syntax: mparam = spMPFROM2SHORT ( short1 , short2 )

Parameters: short1 - Numeric value of type SHORT (-32768<=short1<=32767) or USHORT (0<=short1<=65535) short2 - Numeric value of type SHORT (-32768<=short1<=32767) or USHORT (0<=short1<=65535)

Returns: Message parameter value. Example Code: (part of example code of spFindWindowHandles)

/* scclock.cmd (spUtils Example Code) */
[...]
CALL spPostMsg hwnd,'WM_BUTTON1DOWN',spMPFROM2SHORT(xpos,ypos)
CALL spPostMsg hwnd,'WM_BUTTON1UP',spMPFROM2SHORT(xpos,ypos)
CALL spPostMsg focus,'WM_BUTTON1DOWN',spMPFROM2SHORT(0,0)
CALL spPostMsg focus,'WM_BUTTON1UP',spMPFROM2SHORT(0,0)
[...]