Page 1 of 1 1
Topic Options
#209 - 1999-07-15 05:17 AM How do you detect a key press without a GET
Anonymous
Unregistered


I need to put a diagnostics section into one of my logon scripts but I don't want to hold up an logon process. The ideal way I thought of doing it was to scan for the shift or control key being held down but the only input commands that I can find are GET and GETS.

I don't want the normal user to know about the diags section or to be held up by having to press a key to continue. Does anyone have any ideas ?

Thanks.

Mark

Top
#210 - 1999-07-15 09:06 AM Re: How do you detect a key press without a GET
Anonymous
Unregistered


You can use a System Variable or a diag.ini file!
example diag.ini
== diag.ini:
[Diag]
DiagOn=Yes
== kix:

if ReadProfileString("diag.ini","Diag","DiagOn")="Yes"
?"diag part"
endif

------------------
Lon Geefshuysen,
www.xs4all.nl/~longeef/NT/KiXtart
lon_geefshuysen@essentium.com



Top
#211 - 1999-07-15 09:30 AM Re: How do you detect a key press without a GET
Anonymous
Unregistered


I hacked for a while and came up with the idea of checking @TIME against a set time...the following is my FAILED attempt, but maybe you can run with it

$CT=@TIME
IF @USERID=ADMIN SLEEP 10
IF @TIME>$CT+5 GOTO DIAG
IF @TIME>$CT+15 ?"YOU are a USER"
SLEEP 10
END
IAG
GETS $ADMIN
IF $ADMIN="password"
?"HELLO ADMIN"
SLEEP 10

The only other option is to check for @USERID. IF @USERID="ADMIN" then <run diagnostic>

It is a interesting question....Good Luck and let us know how you resolved the problem

------------------
Anthony J. Reno
renoa@rfa.org


Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1171 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.048 seconds in which 0.022 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org