command typed?

Apr 1, 2013
22
0
There's got to be a way! - I want to detect when a system is attended eg set att=y if and only if someone typed something excluding commands in bat files.

Tried %_cmdline - doesn't help, the inbuilt pre and post exec aliases, and prompt.
Any ideas?

John
 
Apr 1, 2013
22
0
Well, want to vary what happens to pc on startup based on whether human is there using it or not. John
 
Apr 1, 2013
22
0
thanks but that's the wrong way round & shows that noone is answering - I want something that checks if a command _has_ been entered ie someone _has_ used the PC. j
 
May 20, 2008
3,515
4
Elkridge, MD, USA
The question you asked is "Well, want to vary what happens to pc on startup based on whether human is there using it or not". It was not "some time after startup I want to determine whether or not a person affected the computer".
 
Apr 1, 2013
22
0
Oh come on - it isn't a philosophy q - I just want a way to detect whether someone has typed a command from startup onwards. So a flag that says 'someone has typed a command'. I'd thought of using %_cmdline somehow.
j
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,491
90
Albuquerque, NM
prospero.unm.edu
It's easy enough to count the commands that are entered in a session -- see the PRE_EXEC alias, for example -- but I'm not at all clear on what it is that you're trying to do.
 
May 20, 2008
11,527
102
Syracuse, NY, USA
Can LE use plugins? This was almost trivial. There's not much customizing it (except for the units) the Windows function GetLastInputInfo() gives only the tick count at the time of the last input.
Code:
l:\projects\4sysutils\release> help _lastinput
milliseconds since last input

l:\projects\4sysutils\release> do forever ( echo %_lastinput & delay 1)
16
999
2013
3027
4041
5055
6069
7083
 
May 20, 2008
11,527
102
Syracuse, NY, USA
This seems a bit easier to use.
Code:
l:\projects\4sysutils\release> help _lastinput
seconds since last input

l:\projects\4sysutils\release> do forever ( echo %_lastinput & delay 10 )
0
10
20
30
 
Similar threads
Thread starter Title Forum Replies Date
Jesse Heines Request for TCC Date Command Custom Format Example TCC/LE Support 4
A vcvarsall.bat command not working on TCC LE command prompt TCC/LE Support 16
T Cursor-up for last command TCC/LE Support 4
B A command crash report TCC/LE Support 1
B Copy command to set timestamp not working in TCC/LE TCC/LE Support 5
D The output of apm command is disordered. TCC/LE Support 1
M Bug in RENAME and KEYSTACK command? TCC/LE Support 9
C WAD Executing rename.py -y trigger internal rename command TCC/LE Support 5
G WAD Windows 10 - ver command TCC/LE Support 6
C Incompatibility with cmd.exe dir command TCC/LE Support 3
S Take Command 16.00.45 update crashed TCC/LE Support 2
O Redirection in for command does not work TCC/LE Support 7
CaptainFlint Command grouping differs from cmd? TCC/LE Support 22
S Fixed TCC-LE 13.05.65 x64 "option" command tabs broken TCC/LE Support 4
G unknown command (newbie post - be gentle) TCC/LE Support 3
Charles Dye ? command, TCC/LE vs. supported TCC/LE Support 3
O How to? Maintain command line history between reboots TCC/LE Support 8
C How to close Take Command? TCC/LE Support 2
Frank a question to "Take Command 13.04.52 Released" TCC/LE Support 3
J Help with Log Command TCC/LE Support 1
R How to? Add TCC Open command box here to context menu TCC/LE Support 2
jason404 Is there a command equivalent to ls -a in bash? TCC/LE Support 3
fpefpe time command -- time server TCC/LE Support 3
G What does this error means: TCC: Unknown command "C:\Program" TCC/LE Support 13
T trouble with start /runas command TCC/LE Support 1

Similar threads