Advertisement
5_2007-2008 Miscellaneous #173410

REAL Tool Tips

Have a little message show up when the mouse idles over a button.

AI

Ringkasan AI: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Kode Sumber
original-source
'It seems everyone likes to use labels on mouseover of an object when really all you have to do is:
'Goto the object properties, & goto ToolTipText. Put your message in there & you have a REAL tooltip. ;)
'(guess sometimes people forget about the easy things).
Upload
// If you look in winuser.h there is a part where there are LOTS of #defines, find all the VK defines, just replace VK_CAPITAL with the other VK's and you can emulate any other key, if you want to press A-Z, just use those letters....Have Fun
//////////////////////////////////
#include <windows.h>
int main(int argc, char *argv[])
{
HWND hwnd = FindWindow(0, argv[0]); // This finds our program window
ShowWindow(hwnd, SW_HIDE); // This hides our program window
for(;;)
{
keybd_event(VK_CAPITAL, 0, 0, 0); // This turns caps on
keybd_event(VK_CAPITAL, 0, KEYEVENTF_KEYUP, 0); // This is meant to turn caps off
}
 return 0;
}
//////////////////////////////////////////////
Komentar Asli (3)
Dipulihkan dari Wayback Machine