Shoutbox

Key_Down Problem - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Forum: Plug-Ins (/forumdisplay.php?fid=28)
+------ Thread: Key_Down Problem (/showthread.php?tid=28907)

Key_Down Problem by Monkeh on 07-20-2004 at 01:03 AM

I would like to use Key_Down or a similar method to allow a user to popup a msn popup displaying an rss fee, this is what i have so far:

if(KEY_DOWN(VK_F12)
    {
        DisplayToast("Key Press", "Test";
        strcpy(sResult, "");
        return TRUE;
    }

    return FALSE;
}

any ideas on how i can fix this?


RE: Key_Down Problem by Monkeh on 07-20-2004 at 01:18 AM

i think i have got some success using getkeystate


RE: Key_Down Problem by Alpha Binary on 07-20-2004 at 02:11 PM

are you missing a closing parenthesis? ^o)


RE: Key_Down Problem by CookieRevised on 07-20-2004 at 09:42 PM

btw, don't use key_down for that (or getkeystate and checking for a key that is down, which is infact just what key_down does)! use key_up, or even better key_pressed...  by using key_down you will open constantly new toasts as long as the user is holding down the button....