marpis
2010-05-17 06:42:05
I can see how to export functions, that's simple, but how can I import functions and use them in my plugin? Functions like MoveMouse and GetPage etc. that can't be written within the plugin.
2010-05-17 06:42:05
2010-05-17 13:13:26
2010-05-17 19:38:29
2010-05-18 09:30:36
From: Wizzup?
I am not sure if we have added this yet, what do you need it for? :) (I may know some better alternatives)
From: Nava2
If you are making an FPC .dll, why not just import the packages in the units?
2010-05-18 09:49:50
From: marpis
Going to make a script with authentication
2010-05-18 09:52:16
From: marpis
Going to make a script with authentication
wat:bart:
Oh, and the dll will be written in delphi.
2010-05-19 03:31:23
From: Wizzup?
OK, but why do you need Simba functions in a DLL to do authentication?
If you want the script in there entirely, you could also make the form and everything in FPC, andthen use the MML (and possible PS bindings) to make your own .exe. But that's probably more work.
2010-05-19 05:24:52
From: marpis
I just want to have as much as possible in the plugin. Well, can't call reflection functions ofcourse so they should be the only ones I leave to the Simba-side. I want to call Authenticate() on every function enter on the plugged-in functions, so that someone can't break the authing without rewrite massive codes.
EDIT: It starts to look like it's not possible to call MoveMouse() and GetPage() from a plugin? :(
program new;
function GetMyPage(str : string) : string;
begin
result := GetPage(str);
end;
begin
PassToPlugin(@GetMyPage);
end.
2010-05-19 06:15:08
2010-05-19 09:03:09
From: mastaraymond
Oh it's definitely possible; MoveMouse is already done.. You can do this by passing the TTarget_Exported structure to your plugin (GetKeyMouseTarget)..
About GetPage; you could just make a function in your script and do something like this:
program new;
function GetMyPage(str : string) : string;
begin
result := GetPage(str);
end;
begin
PassToPlugin(@GetMyPage);
end.
2010-05-19 10:49:10
From: marpis
Humm, I really hope I find a good solution for this, cause the getpage part is the most important one :rolleyes:
How come I can't do the TTarget_Exported thing whatever it is to getpage?
2010-05-19 10:53:08
From: mastaraymond
I really don't see why you'd want Simba's GetPage in your script.. :o
2010-05-19 10:57:47
From: Rasta Magician
I think all he wants is something that'll allow him to connect to a database where he can store users names and pws, to identify them.
~RM
2010-05-19 11:04:42
From: mastaraymond
Yeah, but when you are compiling a dll you could just use any internet component.. And if your making something simple that just requires a GetPage you could just create it in Simba, instead of a dll :p.
2010-05-19 11:27:51
From: mastaraymond
Yeah, but when you are compiling a dll you could just use any internet component.. And if your making something simple that just requires a GetPage you could just create it in Simba, instead of a dll :p.
2010-05-19 11:39:28
From: marpis
Yea I know but when I last tried making an authed script with plugins I couldn't get any internet things working :-\ I thought it'd be so much easier to import a function from Simba and use that.
2010-05-19 12:51:14
2010-05-19 13:29:04
From: nielsie95
Can you use MML in a closed source plugin?
2010-05-19 14:31:28
2010-05-19 14:37:59
2010-05-19 15:08:13
From: marpis
So I should download Free Pascal and make the .dll with it? Will it have internet components as default? Will it be any different than doing it with delphi? Last time I did plugin tests with delphi (simple color finding and TPA things) all went well and I didn't come across any troubles…
From: nielsie95
In the worst case you could even clone Simba and hide the editor.
2010-05-19 15:09:50