E1M1 Posted December 20, 2009 Share Posted December 20, 2009 I Have seen few examples about PluginOpen() I tried PluginOpen("testplugin.dll") Main() and testplugin.dll: using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace testplugin { public class Class1 { static void Main(string[] args) { Console.WriteLine("hello from plugin"); Console.ReadKey(); } } } and error: D:\My Documents\cs\dll\testplugin\testplugin\bin\Debug\test.au3(2,6) : ERROR: Main(): undefined function. Main() What I do wrong? In example exripts there was 3 examples or 4 but the problem was thet plugins were closed source :S Can anyone do 1 opensource plugin and then show how to use it? Can I run plugin in background? so that it would repeat it's loop and autoit would do it's ownloop at same time. edited Link to comment Share on other sites More sharing options...
Zedna Posted December 20, 2009 Share Posted December 20, 2009 Can anyone do 1 opensource plugin and then show how to use it?Look at SDKhttp://www.autoitscript.com/autoit3/files/beta/plugin_sdk/au3_plugin_sdk.zip Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
E1M1 Posted December 20, 2009 Author Share Posted December 20, 2009 tnx, how to make dll run so that it wont pause my script? edited Link to comment Share on other sites More sharing options...
Zedna Posted December 20, 2009 Share Posted December 20, 2009 (edited) tnx, how to make dll run so that it wont pause my script? Autoit natively doesn't support multithreading. So it's quite difficult. You can do some mutlithreading inside your DLL (not related to Autoit's GUI). You can use timers, in this way you can achieve invoking your function even if main Autoit script is working on something. But it will pause main script, execute function and unpause main script, so it's not multithreading. #Include <Timers.au3> _Timer_SetTimer($hWnd[, $iElapse = 250[, $sTimerFunc = ""[, $iTimerID = -1]]]) Edited December 20, 2009 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now