Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

@SNAPSHOT?

May
12,845
164
I have UpdateTitle=No and TITLEPROMPT=%[_4ver]$s$s[%_pid]$s$s$p.
How do I get a snapshot of the console? These fail:
Code:
p:\4sysutils> echo %@snapshot["%_wintitle"]
TCC: (Sys) The parameter is incorrect.
 "%@snapshot["17.00  [5956]  p:\4sysutils"]"

p:\4sysutils> echo %@snapshot["%_wintitle",1]
TCC: (Sys) The parameter is incorrect.
 "%@snapshot["17.00  [5956]  p:\4sysutils",1]"
 
It works with =%_PID but I get an image of a console with the caption "foo" (apparently left over from about an hour ago when I tried
Code:
title foo & echo %@snapshot["%_winntitle"]
Do you use both SetWindowText and SetConsoleTitle in various places (and they do the same thing)?
 
ACTIVATE can find "%_wintitle". Here's the whole thing again.
Code:
v:\> option UpdateTitle
UpdateTitle=No

v:\> set titleprompt
%[_4ver]$s$s[%_pid]$s$s$p

v:\> echo %_wintitle
17.00  [6844]  v:\

v:\> echo %@snapshot["%_wintitle",1]
TCC: (Sys) The parameter is incorrect.
 "%@snapshot["17.00  [6844]  v:\",1]"

v:\> echo %@snapshot[%_wintitle,1]
TCC: (Sys) The parameter is incorrect.
 "%@snapshot[17.00  [6844]  v:\,1]"
 
Back
Top