(( QUOTING = From: Manley Hubbell To: Doug Wilson ))
MH> ANYWAY if theres a way to send the left arrow, right arrow,
MH> up arrow, and down arrow { 2 4 6 8 num keypad } those four
MH> keystrocks are about all i need, pluss maybe the space bar?
Hello Manley,
A script can send anything you want. The following script should
help you find the ASCII values of the keys you want to send.
Just compile it and run it. It's very easy to use.
Once you know the value you can use: cputc(x); were x is the
ASCII value given to you by the script.
////////////////////////////////////////////////////////////////
// SHOWKEY.SLT
// Returns the ascii value of any key combination.
// VERY handy tool for script writers that need to know 'inkey'
// values.
//
// Mark P. Harrison BBS: (618)539-6254
// INTERNET: MPHsoft@aol.com FIDO: 1:2250/23
main()
{
int key, block;
str keyS[6];
cursor_onoff(0);
block = vsavearea(25, 9, 51, 16);
box(26, 10, 50, 15, 3, 0, 4);
pstraxy("µ SHOWKEY Æ", 33, 10, 4);
pstraxy("", 31, 15, 4);
pstraxy("Press Any Key",32,12,7);
pstraxy("Ascii value is ", 28, 14, 14);
Do
{
key = inkeyw();
itos(key, keyS);
pstraxy(" ", 44, 14, 14);
pstraxy(keyS, 44, 14, 14);
}
while (key != 27);
delay(20);
vrstrarea(block);
cursor_onoff(1);
}
////////////////////////////////////////////////////////////////
Mark Harrison | MPHsoft@aol.com | http://kom.net/~mphsoft
MPH Software | BBS\FAX: 618-539-6254 | RECORD21 - PICKUP14 - RFW10
--- GoldED 3.00.Alpha5+
---------------
* Origin: > Custom Communication Automation (1:2250/23)
|