1. CTRL_HOME

------=_NextPart_000_000F_01BFCF1A.C8662560
        charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable

CTRL_HOME=3D375

it doesnt work

how do i know when user presses CTRL+Home?

this code doesnt work:

if msg=3DWM_KEYDOWN then
  if wParam=3DCTRL_HOME then
   msgbox("yes")
   end if
end if

any suggestions?

thanks.

------=_NextPart_000_000F_01BFCF1A.C8662560
        charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-2" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2614.3401" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>CTRL_HOME=3D375</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>it doesnt work</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>how&nbsp;do i know when user presses=20
CTRL+Home?</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>this code doesnt work:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>if msg=3DWM_KEYDOWN =
then<BR>&nbsp;&nbsp;if=20
wParam=3DCTRL_HOME then<BR>&nbsp;&nbsp;&nbsp;msgbox("yes")</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp;end if</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>end if</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>any suggestions?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>

------=_NextPart_000_000F_01BFCF1A.C8662560--

new topic     » topic index » view message » categorize

2. Re: CTRL_HOME

If you use win32lib and use the OnKeyDown(scancode,shift) procedure, then
for control-home you get shift=2 and scancode=36. This works.

===== Original Message from Euphoria Programming for MS-DOS
<EUPHORIA at LISTSERV.MUOHIO.EDU> at 6/05/00 12:20 pm
>CTRL_HOME=375
>
>it doesnt work
>
>how do i know when user presses CTRL+Home?
>
>this code doesnt work:
>
>if msg=WM_KEYDOWN then
>  if wParam=CTRL_HOME then
>   msgbox("yes")
>   end if
>end if
>
>any suggestions?
>
>thanks.

new topic     » goto parent     » topic index » view message » categorize

3. Re: CTRL_HOME

Ummm, that's Euphoria's meaning of CTRL+HOME. Try:

procedure onKeyDown_win(integer key,integer mask)
    if key=VK_HOME and and_bits(mask,CtrlMask)=CtrlMask then
        ... code ...
    end if
end procedure

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu