Gamestudio Links
Zorro Links
Newest Posts
WFO Training with parallel cores Zorro64
by Martin_HH. 02/24/26 19:51
Zorro version 3.0 prerelease!
by TipmyPip. 02/24/26 17:09
ZorroGPT
by TipmyPip. 02/23/26 21:52
Camera always moves upwards?
by clonman. 02/21/26 09:29
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 02/19/26 13:22
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
4 registered members (Martin_HH, TipmyPip, AndrewAMD, Grant), 5,825 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
alx, ApprenticeInMuc, PatrickH90, USER0328, Sfrdragon
19199 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
import from clipboard #406881
08/31/12 17:12
08/31/12 17:12
Joined: Aug 2012
Posts: 8
B
bijanjoon Offline OP
Newbie
bijanjoon  Offline OP
Newbie
B

Joined: Aug 2012
Posts: 8
i need import string from clipboard to 3dgs
dll , plugin or any
please help me
thanks

Re: import from clipboard [Re: bijanjoon] #406882
08/31/12 17:58
08/31/12 17:58
Joined: Apr 2008
Posts: 650
Sajeth Offline
User
Sajeth  Offline
User

Joined: Apr 2008
Posts: 650
http://msdn.microsoft.com/en-us/library/windows/desktop/ms648709(v=vs.85).aspx


Teleschrott-Fan.
Re: import from clipboard [Re: Sajeth] #406883
08/31/12 18:16
08/31/12 18:16
Joined: Aug 2012
Posts: 8
B
bijanjoon Offline OP
Newbie
bijanjoon  Offline OP
Newbie
B

Joined: Aug 2012
Posts: 8
thanks but i cant use it in 3dgs
can you say me how use it?
i just a sample to import string to 3dgs.

Re: import from clipboard [Re: bijanjoon] #406884
08/31/12 18:22
08/31/12 18:22
Joined: Aug 2012
Posts: 8
B
bijanjoon Offline OP
Newbie
bijanjoon  Offline OP
Newbie
B

Joined: Aug 2012
Posts: 8
i just need a sample to import string from clipboard to 3dgs

Re: import from clipboard [Re: bijanjoon] #406885
08/31/12 18:34
08/31/12 18:34
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline
Senior Expert
HeelX  Offline
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
Originally Posted By: bijanjoon
thanks but i cant use it in 3dgs


That is wrong. Include the windows.h from the Gamestudio include folder and use the following functions:

Code:
long WINAPI OpenClipboard(long hWndNewOwner);
long WINAPI CloseClipboard(long);
long WINAPI GetClipboardSequenceNumber(long);
long WINAPI GetClipboardOwner(long);
long WINAPI SetClipboardViewer(long hWndNewViewer);
long WINAPI GetClipboardViewer(long);
long WINAPI ChangeClipboardChain(long hWndRemove,long hWndNewNext);
long WINAPI SetClipboardData(long uFormat,long hMem);
long WINAPI GetClipboardData(long uFormat);
long WINAPI RegisterClipboardFormat(long lpszFormat);
long WINAPI CountClipboardFormats(long);
long WINAPI EnumClipboardFormats(long format);
long WINAPI GetClipboardFormatName(long format,long lpszFormatName,long cchMaxCount);
long WINAPI EmptyClipboard(long);
long WINAPI IsClipboardFormatAvailable(long format);
long WINAPI GetPriorityClipboardFormat(long paFormatPriorityList,long cFormats);
long WINAPI GetOpenClipboardWindow(long);


Re: import from clipboard [Re: HeelX] #406886
08/31/12 18:52
08/31/12 18:52
Joined: Aug 2012
Posts: 8
B
bijanjoon Offline OP
Newbie
bijanjoon  Offline OP
Newbie
B

Joined: Aug 2012
Posts: 8
are you know how to import a text by "," seperator in array?
example:
txt="aa,bb,cc,dd";
txt[1]=aa;
txt[2]=bb;
.
.
.

how do it?
thanks again

Re: import from clipboard [Re: bijanjoon] #406896
09/01/12 07:28
09/01/12 07:28
Joined: Oct 2011
Posts: 1,082
Germany
C
Ch40zzC0d3r Offline
Serious User
Ch40zzC0d3r  Offline
Serious User
C

Joined: Oct 2011
Posts: 1,082
Germany
Originally Posted By: bijanjoon
are you know how to import a text by "," seperator in array?
example:
txt="aa,bb,cc,dd";
txt[1]=aa;
txt[2]=bb;
.
.
.

how do it?
thanks again


Search for "str_stri" in the manual.

Last edited by Ch40zzC0d3r; 09/01/12 07:28.
Re: import from clipboard [Re: Ch40zzC0d3r] #406908
09/01/12 15:45
09/01/12 15:45
Joined: Aug 2012
Posts: 8
B
bijanjoon Offline OP
Newbie
bijanjoon  Offline OP
Newbie
B

Joined: Aug 2012
Posts: 8
very thanks my friend


are you can create a project about using windows.h and past from clipboard function?
i need it hardly.

////////////////////////////////////////////////
in this address one person say that recive the joints postions from kinect:
http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=406878&#Post406878

any body know how can i do it?

Re: import from clipboard [Re: bijanjoon] #406915
09/01/12 18:03
09/01/12 18:03
Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Rei_Ayanami Offline
Expert
Rei_Ayanami  Offline
Expert

Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Better not try it, if you can't even handle simple windows api...

Re: import from clipboard [Re: Rei_Ayanami] #406924
09/02/12 05:36
09/02/12 05:36
Joined: Aug 2012
Posts: 8
B
bijanjoon Offline OP
Newbie
bijanjoon  Offline OP
Newbie
B

Joined: Aug 2012
Posts: 8
oh dier friend
no say this please

part of my cod:
#include "windows.h";

but have error:
error in 'windows.h' line 6514:
syntax error
<Rect rcpaint;
>
error compiling kl.c
error E355:startup failure

Page 1 of 2 1 2

Moderated by  checkbutton, mk_1 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1