amazing-andrew / AutoHotkey.Interop

A wrapper to natively interact and embed autohotkey into your .net program.
GNU General Public License v2.0
187 stars 55 forks source link

Multithreading #2

Closed A-VORONKIN closed 8 years ago

A-VORONKIN commented 8 years ago

Is it support Multithreading? I want check some variable with GetVar and do PixelSearch at the same time. I tried to create 2 ahk objects (AutoHotkeyEngine ahk for GetVar andAutoHotkeyEngine sahk for ExecRaw (PixelSearch) but I still can`t use them at the same time).

amazing-andrew commented 8 years ago

The AHKDLL will only load once using the .NET standard DLLCALL functions. For this project it means that it does not do multithreading and technically, even if you create multiple AutoHotkeyEngine it will still reference the same loaded AHKDLL.

amazing-andrew commented 8 years ago

I hear you can use multiple AppDomains or load the DLL multiple times manually to create mutlithreading.