Go Back   AnandTech Forums > Software > Software for Windows

Forums
· Hardware and Technology
· CPUs and Overclocking
· Motherboards
· Video Cards and Graphics
· AMD Video Cards
· Nvidia
· Displays
· Memory and Storage
· Power Supplies
· Cases & Cooling
· SFF, Notebooks, Pre-Built/Barebones PCs
· Networking
· Peripherals
· General Hardware
· Highly Technical
· Computer Help
· Home Theater PCs
· Consumer Electronics
· Digital and Video Cameras
· Mobile Devices & Gadgets
· Audio/Video & Home Theater
· Software
· Software for Windows
· All Things Apple
· *nix Software
· Operating Systems
· Programming
· PC Gaming
· Console Gaming
· Distributed Computing
· Security
· Social
· Off Topic
· Politics and News
· Discussion Club
· Love and Relationships
· The Garage
· Health and Fitness
· Home and Garden
· Merchandise and Shopping
· For Sale/Trade
· Hot Deals with Free Stuff/Contests
· Black Friday 2014
· Forum Issues
· Technical Forum Issues
· Personal Forum Issues
· Suggestion Box
· Moderator Resources
· Moderator Discussions
   

Reply
 
Thread Tools
Old 08-01-2002, 10:43 AM   #1
Muse
Lifer
 
Muse's Avatar
 
Join Date: Jul 2001
Location: Under the rainbow over Berkeley
Posts: 15,814
Default Print thread without signature info

When you print a long thread on these forums don't you get sick of seeing everybody's signature's... again and again? Here's a function I wrote that deletes all that stuff. You need some version of FoxPro to do this (another dBase derivative would work, maybe with a tweak or two). What you do is click the printer icon - the right-most one at the top right of each post and you will get your printable version of the entire thread. Copy this to your clipboard and then run the FoxPro function I've pasted below. You will then have a version of the thread on your clipboard that doesn't have all those signature lines.

FUNCTION AT
* Cut the signature lines out of Anandtech formatted-for-printing threads
PRIVATE cbuild, cleft, n, ccurrent
n=1
cbuild=''
ccurrent=ALLTRIM(_CLIPTEXT)
ccurrent=SUBSTR(ccurrent,AT(CHR(13),ccurrent)+1) && Gets rid of the "Print this thread." preamble.
ccurrent=ALLTRIM(ccurrent)
DO WHILE SUBSTR(ccurrent,1,1)=CHR(13)
ccurrent=SUBSTR(ccurrent,2)
ENDDO
ccurrent=SUBSTR(ccurrent,1,AT(CHR(13),ccurrent)) + CHR(13) + SUBSTR(ccurrent,AT(CHR(13),ccurrent))
cleft=ccurrent
DO WHILE .T.
cbuild=cbuild + IIF(n>1, '- - - - - - - - - - - - - - - - - - - - - -','') + CHR(13) + ;
SUBSTR(cleft,1,AT('---------------',cleft)-1)
cleft=SUBSTR(cleft,AT('Date Posted',cleft,n))
IF !'Date Posted'$cleft
EXIT
ENDIF
n=n+1
ENDDO
cbuild=ALLTRIM(cbuild)+'- - - - - - - - - - - - - - - - - - - - - - - -';
+CHR(13)+' Original post end.'
cbuild=STRTRAN(cbuild,CHR(13)+CHR(13)+'Date Posted','- - - - - - - - - - - - - - - - - - - - - -'+CHR(13)+'Date Posted')
_CLIPTEXT=cbuild
RETURN
__________________
Quotations on happiness!
Muse is offline   Reply With Quote
Old 08-04-2002, 11:15 PM   #2
Muse
Lifer
 
Muse's Avatar
 
Join Date: Jul 2001
Location: Under the rainbow over Berkeley
Posts: 15,814
Default

Anybody tried this?
__________________
Quotations on happiness!
Muse is offline   Reply With Quote
Old 08-05-2002, 07:56 AM   #3
Muse
Lifer
 
Muse's Avatar
 
Join Date: Jul 2001
Location: Under the rainbow over Berkeley
Posts: 15,814
Default

This has a bug. I'll debug and post the code. If I can't fix it I'll delete...
__________________
Quotations on happiness!
Muse is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 03:34 AM.


Powered by vBulletin® Version 3.8.8 Alpha 1
Copyright ©2000 - 2015, vBulletin Solutions, Inc.