Fixed CLIPMONITOR problems

May 20, 2008
3,515
4
Elkridge, MD, USA
Running version of TCC below in its own window (not a TCMD tab).

TCC 14.02.38 Windows XP [Version 5.1.2600]
TCC Build 38 Windows XP Build 2600 Service Pack 3
Registered to E. S. Fabian

Issued command
CLIPMONITOR forever f:\loc\raw.btm

The batch program just copies the clipboard contents to a file with the next available numeric name (e.g., 1000.raw,1001.raw, etc.). It works perfectly when I perform the following:
a/ load the clipboard from the highlighted area of a Firefox tab using the ctrl-C hotkey,
b/ switch to the TCC window (using alt-tab),
c/ execute the batch file from the command line.

Problems:
1/ CLIPMONITOR did not automatically detect the change of clipboard contents
2/ When I performed the actions abc above manually, the monitor was triggered, but it reported that the TCC trial period had expired. The "exit" option terminated the registered TCC instance.

I have always had issues using the monitor-type commands, this may also be a problem of not using it properly, but the documentation gives no help.
 
May 20, 2008
11,402
99
Syracuse, NY, USA
The first part of your post seems to simply note that the clipboard is working.

But the second part seems to be a bug. After issuing

Code:
clipmonitor forever beep

nothing I do with the clipboard causes a beep.
 
May 20, 2008
11,402
99
Syracuse, NY, USA
Microsoft changed the contents of a Windows message recently (in a Windows Update) that broke CLIPMONITOR. I'm looking for a workaround.
How recently? I have never applied any Windows updates ... still with out-of-the-box Win7/32/SP1.
 
May 20, 2008
11,402
99
Syracuse, NY, USA
I don't know if it applies, but ... from what little I've read, since Vista, in order to receive WM_CLIPBOARDUPDATE, you must AddClipboardFormatListener(HWND).

And in a quick test (Win7), calling AddClipboardFormatListener() **does** make the difference between receiving and not receiving WM_CLIPBOARDUPDATE.
 

rconn

Administrator
Staff member
May 14, 2008
12,346
150
I don't know if it applies, but ... from what little I've read, since Vista, in order to receive WM_CLIPBOARDUPDATE, you must AddClipboardFormatListener(HWND).

It is not necessary to use AddClipboardFormatListener in Win7, though it's less fragile than SetClipboardViewer (which uses WM_DRAWCLIPBOARD, not WM_CLIPBOARDUPDATE).
 
May 20, 2008
3,515
4
Elkridge, MD, USA
Rex:
CLIPMONITOR now works in the manner desired - but only twice! The first two times it executed the batch file specified correctly. Note that batch file does NOT execute any other programs or batch files, though it does use global aliases. However, on the third change of clipboard contents (from a webpage displayed in a Firefox tab) the message signaling that the trial version of TCC expired popped up again, and selecting "exit" closed the (registered) TCC window. Started a new instance of TCC 14.02.39, once again the third change of clipboard content was fatal...
Notes:
1/ installation directory is F:\JPSOFT\I14; .ini and TCSTART.BTM and TCEXIT.BTM files reside in F:\JPSOFT.
2/ TCC is normally started with a command explicitly specifying both its full path and the full path of the .INI file to be used, in the directory in which the .INI file is. TCStartPath directive is set to "." This method works for 4nt V5 and all later command processors, both from the command line and from desktop shortcuts (many invokable by hotkeys).
 
May 20, 2008
11,402
99
Syracuse, NY, USA
This sequence makes TCC disappear!
Code:
v:\> clipmonitor forever echo foo
 
v:\> foo [now just playing]
foo
foo
foo
    clipmonitor /c [actual command]
 
v:\> clipmonitor forever echo %@clip[0]
Code:
TCC  14.02.39
Module=C:\Windows\SYSTEM32\ntdll.dll
Address=77852F8B
Exception=C00000FD
EAX=7FFDB000  EBX=00000000  ECX=08803040  EDX=00000000
ESI=00000308  EDI=08803064  EBP=08803028  ESP=08802FD4
CS=0000001B  DS=00000023  ES=00000023  SS=00000023
Flags=00010206
 
Stack:
1 : ntdll.dll 00000001:00051f8b
2 : USER32.dll 00000001:0001b590
3 : USER32.dll 00000001:00014294
4 : USER32.dll 00000001:00014582
5 : TakeCmd.dll 00000001:0007ebc3
6 : USER32.dll 00000001:0001b4e7
7 : USER32.dll 00000001:0001b5e7
8 : USER32.dll 00000001:00014294

So does this (a little better formed); GPFfile is the same.
Code:
v:\> clipmonitor forever echo %%@clip[0]
 
v:\> tor f [just playing]
ver
pmonito
echo %@clip[0]
    clipmonitor /c [actual command]
 
v:\> clipmonitor forever echo %%@clip[0]
 
Similar threads
Thread starter Title Forum Replies Date
Charles S. Roaten Problems with TCSTART.BTM Support 1
vefatica Office problems better Support 0
Peter Murschall TCC V26.01.3x Debugging has problems with Alias /R Support 1
Peter Murschall CMDebug 26.01.37 has problems with Alias Support 21
C unzip problems Support 2
C TCC 26 BATCOMP BTM problems? Support 5
Alpengreis WAD [v26 Beta RC3]: MSGBOX color problems Support 4
Alpengreis QUERYBOX problems Support 5
R New Cloud Storage Tab in TCC options causing problems Support 0
Craig Fitzgerald Problems using tcstart.btm Support 3
M Problems with @REGBREAD on remote system Support 4
K_Meinhard Help problems Support 3
S Problems with dir command in the debugger Support 5
D How to? Path problems in TCC20 Support 1
G Version 20.11 installed on Windows 10 problems Support 9
M WAD Set statements in () causes problems Support 8
M Fixed Set "VAR=VAL" format causes problems Support 12
H Problems with PSUBST Support 3
Alpengreis The TCMD Display problems and font size ... Support 2
cgunhouse Problems With IFTP Support 3
Gamegod Fixed TCC identify Chinese problems Support 30
vefatica 21-22 Update problems Support 8
T Problems with the new help format Support 18
cgunhouse Event Plugin Problems With 19.10.43 Support 2
C @replace and @xreplace problems Support 5
Alpengreis Forum problems? Support 0
N Fixed Problems with SHA256/384/512 Support 5
Alpengreis [TC 19.0 Beta 22/23] Install/Update-"Problems" Support 4
P Problems registering Support 5
R Parser problems after build 44 Support 5
LowdhamStation Serial port problems Support 7
vefatica Is jpsoft.com having ISP problems? Support 10
M Problems when being logged in Support 4
vefatica Both IFTP problems remain in build 50 Support 35
vefatica IFTP problems (broken pipe?) Support 24
Joe Caverly VIEW window in a TCC tab window problems Support 5
S Forum Implementation Problems Support 2
S Forum (XenForo) problems Support 3
S Problems to create new threads Support 6
Roedy WAD Minor long-standing install problems Support 6
E Problems with Tabbed Toolbar Support 2
S Log and foldermonitor problems Support 3
vefatica Installation problems Support 1
J Problems for a neophyte Support 30
C Active FTP Problems Support 4
J Still problems understanding "foldermonitor" Support 9
J syntax problems multiple commands (command & command) Support 4
J 4NT problems after going to Windows 7 Support 5
vefatica Installer problems Support 23
cgunhouse Problems with ProcessMonitor Support 6

Similar threads