mirror of
https://github.com/moparisthebest/Simba
synced 2025-02-16 07:10:10 -05:00
Simba: GetClipBoard/SetClipBoard Added.
This commit is contained in:
parent
b09880a116
commit
7f23ae10b5
@ -68,6 +68,7 @@ uses
|
|||||||
lclintf,
|
lclintf,
|
||||||
httpsend,
|
httpsend,
|
||||||
superobject,
|
superobject,
|
||||||
|
Clipbrd,
|
||||||
SimbaUnit,updateform, mmisc, mmlpsthread; // for GetTickCount and others.//Writeln
|
SimbaUnit,updateform, mmisc, mmlpsthread; // for GetTickCount and others.//Writeln
|
||||||
|
|
||||||
{$ifdef Linux}
|
{$ifdef Linux}
|
||||||
|
@ -264,3 +264,13 @@ function ps_Random(Int: integer): integer; extdecl;
|
|||||||
begin
|
begin
|
||||||
result := Random(int);
|
result := Random(int);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure ps_SetClipBoard(const Data: string); extdecl;
|
||||||
|
begin
|
||||||
|
Clipboard.AsText := Data;
|
||||||
|
end;
|
||||||
|
|
||||||
|
function ps_GetClipBoard: string; extdecl;
|
||||||
|
begin
|
||||||
|
Result := Clipboard.AsText;
|
||||||
|
end;
|
||||||
|
@ -193,6 +193,8 @@ AddFunction(@ps_InputQuery,'function InputQuery(const ACaption, APrompt : String
|
|||||||
AddFunction(@ps_ShowMessage,'procedure ShowMessage(msg : string);');
|
AddFunction(@ps_ShowMessage,'procedure ShowMessage(msg : string);');
|
||||||
AddFunction(@ps_messageBox,'function MessageBox(Text, Caption: string; Flags: LongInt): Integer;');
|
AddFunction(@ps_messageBox,'function MessageBox(Text, Caption: string; Flags: LongInt): Integer;');
|
||||||
AddFunction(@ps_MessageDlg,'function MessageDlg(const Caption, Msg: string; DlgType: TMsgDlgType; Buttons: TMsgDlgButtons) : integer;');
|
AddFunction(@ps_MessageDlg,'function MessageDlg(const Caption, Msg: string; DlgType: TMsgDlgType; Buttons: TMsgDlgButtons) : integer;');
|
||||||
|
AddFunction(@ps_SetClipBoard, 'procedure SetClipBoard(const Data: string);');
|
||||||
|
AddFunction(@ps_GetClipBoard, 'function GetClipBoard: string;');
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
|
|
||||||
{string}
|
{string}
|
||||||
|
@ -261,8 +261,8 @@ uses
|
|||||||
tpa, //Tpa stuff
|
tpa, //Tpa stuff
|
||||||
forms,//Forms
|
forms,//Forms
|
||||||
SynRegExpr,
|
SynRegExpr,
|
||||||
lclintf // for GetTickCount and others.
|
lclintf, // for GetTickCount and others.
|
||||||
;
|
Clipbrd;
|
||||||
{$ifdef Linux}
|
{$ifdef Linux}
|
||||||
{$define PS_SafeCall}
|
{$define PS_SafeCall}
|
||||||
{$else}
|
{$else}
|
||||||
|
Loading…
Reference in New Issue
Block a user