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 


Copy an image to the clipboard

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1753
Location: Space and Time

PostPosted: Wed Aug 24, 2005 2:14 am    Post subject: Copy an image to the clipboard Reply with quote

Is there a way to copy an image to the clipboard in VDS? This would be a nice addition to my screen capture program.

Thanks

_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Wed Aug 24, 2005 9:33 am    Post subject: Reply with quote

You might try to load you image into a 1 x 1 pixel BROWSER element and sending @ctrl(c) to it... Smile

It might look like this (I made it from my head, so haven't tested it):

Code:
external vdsbrw50.dll

  DIALOG CREATE,New Dialog,-1,0,240,160
  DIALOG ADD,BROWSER,BROWSER1,18,48,150,150,http://forum.vdsworld.com/templates/subSilver/images/logo_phpBB.gif
  DIALOG SHOW

wait 5
window send,@winexists(~BROWSER1),@ctrl(c)
info Image on clipboard?
wait event

_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1565

PostPosted: Wed Aug 24, 2005 2:28 pm    Post subject: Reply with quote

The VDSOBJ also allows you to copy and paste images from/to the clipboard, using the richedit control.

It allows activex objects as well.
Back to top
View user's profile Send private message
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1753
Location: Space and Time

PostPosted: Wed Aug 24, 2005 7:42 pm    Post subject: Reply with quote

That is what I needed. Worked great!!! Thanks PG!
_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
marty
Professional Member
Professional Member


Joined: 10 May 2001
Posts: 789

PostPosted: Mon Dec 04, 2006 7:25 pm    Post subject: Reply with quote

The copy works with VDSOBJ, but I can only paste in word or wordpad after. The image cannot be pasted in MSPaint of Infranview for example..

Is there another solution maybe?

Thanks
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1753
Location: Space and Time

PostPosted: Mon Dec 04, 2006 8:23 pm    Post subject: Reply with quote

It works when I past into paint and even photoshop
_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
marty
Professional Member
Professional Member


Joined: 10 May 2001
Posts: 789

PostPosted: Mon Dec 04, 2006 9:14 pm    Post subject: Reply with quote

Ok here is the code.. maybe I am doing something wrong here. But after the
OBJECT FORMAT,RICHEDIT1,CLIPBOARD,COPY I try to paste in mspaint and I don't have the possibility to paste...

Thanks

Code:
#define command,OBJECT
#define function,OBJECT

directory change,@path(%0)
external vdsobj.dll,DEMO
  option scale,96
  DIALOG CREATE,Test,-1,0,558,501,CLASS VDSExample
   OBJECT CLASS,VDSExample
  OBJECT SCALE,96
  OBJECT ADD,STYLE,STYLE1,,6,,BACKGRND,BACKGRND,FOREGRND,$232523
 
  OBJECT ADD,RICHEDIT,RICHEDIT1,260,6,544,132,,WRAP,SCROLL,TABS
 
   DIALOG SHOW

  OBJECT FORMAT,RICHEDIT1,CLIPBOARD,INSERTIMAGE,test.jpg
  OBJECT FORMAT,RICHEDIT1,CLIPBOARD,SELECTALL
  OBJECT FORMAT,RICHEDIT1,CLIPBOARD,SELECTALL
   wait 1
  OBJECT FORMAT,RICHEDIT1,CLIPBOARD,COPY

 
 
:evloop
wait event
goto @event()

:CLOSE

  OBJECT REMOVE,RICHEDIT1
 

exit
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
marty
Professional Member
Professional Member


Joined: 10 May 2001
Posts: 789

PostPosted: Wed Dec 06, 2006 11:47 am    Post subject: Reply with quote

Ok forget it.

Using Delphi instead. Thanks
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help 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