rad1um Posted September 12, 2006 Share Posted September 12, 2006 Is it possible to create threads with autoit? I didn't find any functions for that in the Refeence. Greetings Link to comment Share on other sites More sharing options...
McGod Posted September 12, 2006 Share Posted September 12, 2006 Sigh, I wish. Single Threaded application If u really need multi-thread, you can A)Run more then 1 script B)Use C++ or something equal I think there have been people have made minor things (MsgBoxs) on a second thread but, I dont see much in that field. Sorry. [indent][center][u]Formerly Chip[/u][/center]~UDFs~[/indent][u]IRC.au3 - Allows you to connect to IRC ServersINetCon.au3 - Connects/Disconnects/Check Status of InternetHardware Key - Creates a unique hardware hashScriptComm - Allows you to communicate between scripts using WM_COPYDATA[/u][indent]~Programs~[/indent][indent]SimonAu3ForumsIRC Bot~Web Site~Web Autoit Example[/indent][indent][b][/b][/indent][u][/u] Link to comment Share on other sites More sharing options...
rbhkamal Posted September 12, 2006 Share Posted September 12, 2006 Is it possible to create threads with autoit?I didn't find any functions for that in the Refeence.Greetingsif you searched you would've found two "closed" postes about this.I'm sure you will find your answer there. "When the power of love overcomes the love of power, the world will know peace"-Jimi Hendrix Link to comment Share on other sites More sharing options...
sohfeyr Posted September 13, 2006 Share Posted September 13, 2006 (edited) True threading is beyond AutoIt and really there seems to be no better way to make Valik mad than to suggest implementing it. (He has good reasons - browse the forums.)I've been able to fake it by branching scripts into asynchronous processes and communicating across the registry or file system using RunWait(@AutoItExe & " /AutoIt3ExecuteScript " & ScriptDir & "\srcfiles\branchproc.au3")With judicious use of this technique, registry calls, and some shrewd choices in terms of Run() vs RunWait(), I've been able to set up a subsystem that starts to look and feel a lot like multithreading (as long as nobody opens Task Manager) If you still want to try for true threading, there is always neogia's coroutine dll or Uten's threaded dll. There may be more out there, but those are the one's I'm most aware of. Edited September 13, 2006 by sohfeyr Mine:Time Functions - Manipulate the system clock! | WinControlList (WinGetClassList++) | .Net Setup Wrapper, Detect or install .Net | Writing and using a VB .NET COM object in AutoItNot mine, but highly recommended:AutoItTreeViewExtension plugin | Menu code | Callback helper dll | Auto3Lib - Control the uncontrollable | Creating COM objects in AutoIt | Using .Net framework classes in AutoIt Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted September 13, 2006 Moderators Share Posted September 13, 2006 True threading is beyond AutoIt and really there seems to be no better way to make Valik mad than to suggest implementing it. (He has good reasons - browse the forums.) I've been able to fake it by branching scripts into asynchronous processes and communicating across the registry or file system using RunWait(@AutoItExe & " /AutoIt3ExecuteScript " & ScriptDir & "\srcfiles\branchproc.au3") With judicious use of this technique, registry calls, and some shrewd choices in terms of Run() vs RunWait(), I've been able to set up a subsystem that starts to look and feel a lot like multithreading (as long as nobody opens Task Manager) If you still want to try for true threading, there is always neogia's coroutine dll or Uten's threaded dll. There may be more out there, but those are the one's I'm most aware of.Neogia made a .dll for it? Did I miss something ? (Shuddup Gary!) Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
GaryFrost Posted September 13, 2006 Share Posted September 13, 2006 Neogia made a .dll for it? Did I miss something ? (Shuddup Gary!)The boat? SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted September 13, 2006 Moderators Share Posted September 13, 2006 The boat?We couldn't afford the boat... so we swam! Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
sohfeyr Posted September 13, 2006 Share Posted September 13, 2006 Neogia made a .dll for it? Did I miss something ? (Shuddup Gary!)You're right! My bad, must have been thinking of something else. Even that effort is just cross-process calls, and the credit for that should go to ChrisL (see neogia's post for link). Even so, it might be worth this poster taking a look at. Mine:Time Functions - Manipulate the system clock! | WinControlList (WinGetClassList++) | .Net Setup Wrapper, Detect or install .Net | Writing and using a VB .NET COM object in AutoItNot mine, but highly recommended:AutoItTreeViewExtension plugin | Menu code | Callback helper dll | Auto3Lib - Control the uncontrollable | Creating COM objects in AutoIt | Using .Net framework classes in AutoIt 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