forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


VDS paster

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Visual DialogScript 3 Source Code
View previous topic :: View next topic  
Author Message
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Fri Jun 20, 2003 10:56 am    Post subject: VDS paster Reply with quote

Tool for pasting unformatted text into VDS.

Code:

  title VDS Paster    ..by Dr. Dread
  option DECIMALSEP,"."

  %w = @winactive(I)

  list create,1
  list paste,1
  wait .2
  list create,2
  if @null(@text(1))
    info Sorry. No text in the Clipboard
    goto CLOSE
  end
  repeat
    %%line = @next(1)
    list add,2,@strdel(@trim(@strins(%%line,1,)),1)
  until @equal(@index(1),@count(1))
  list copy,2
  wait .1
  window SEND,%W,@CTRL(V)
  list close,1
  list close,2

:CLOSE
  stop


Compile it with a descriptive name and put it in your VDS Tools directory. Then use this tool from the VDS tools menu
whenever you want to paste stuff with no formatting included (you have to copy some input text to the clipboard
first, of course).

Greetz
Dr. Dread

_________________
~~ Alcohol and calculus don't mix... Don't drink and derive! ~~

String.DLL * advanced string processing
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Visual DialogScript 3 Source Code All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum




Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group