| View previous topic :: View next topic |
| Author |
Message |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
Posted: Wed Aug 24, 2005 2:14 am Post subject: Copy an image to the clipboard |
|
|
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 |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Wed Aug 24, 2005 9:33 am Post subject: |
|
|
You might try to load you image into a 1 x 1 pixel BROWSER element and sending @ctrl(c) to it...
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 |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1565
|
Posted: Wed Aug 24, 2005 2:28 pm Post subject: |
|
|
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 |
|
 |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
Posted: Wed Aug 24, 2005 7:42 pm Post subject: |
|
|
That is what I needed. Worked great!!! Thanks PG! _________________ Chris
Http://theblindhouse.com |
|
| Back to top |
|
 |
marty Professional Member


Joined: 10 May 2001 Posts: 789
|
Posted: Mon Dec 04, 2006 7:25 pm Post subject: |
|
|
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 |
|
 |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
Posted: Mon Dec 04, 2006 8:23 pm Post subject: |
|
|
It works when I past into paint and even photoshop _________________ Chris
Http://theblindhouse.com |
|
| Back to top |
|
 |
marty Professional Member


Joined: 10 May 2001 Posts: 789
|
Posted: Mon Dec 04, 2006 9:14 pm Post subject: |
|
|
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 |
|
 |
marty Professional Member


Joined: 10 May 2001 Posts: 789
|
Posted: Wed Dec 06, 2006 11:47 am Post subject: |
|
|
Ok forget it.
Using Delphi instead. Thanks |
|
| Back to top |
|
 |
|
|
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
|
|