Jump to content

SpMPFROM2SHORT

From EDM2
Revision as of 15:18, 2 April 2015 by Martini (talk | contribs) (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:'...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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)
[...]