[AHK_H v2] 'ComObjConnect' Thread direct connection Topic is solved

Ask for help, how to use AHK_H, etc.
lsh
Posts: 10
Joined: 14 Sep 2017, 07:02

[AHK_H v2] 'ComObjConnect' Thread direct connection

06 Jan 2018, 16:04

Is there a way to connect " ComObjConnect(test....)" to the " _ test " in the thread to obtain a direct "Test_EventName([Params..., ComObject]) "?
......................................................

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus

HotKeyIt
Posts: 1665
Joined: 29 Sep 2013, 18:35
Contact:

Re: [AHK_H v2] 'ComObjConnect' Thread direct connection

06 Jan 2018, 18:59

You don't need COM to do that, it would even cause problems with COM due to multi-threading.
Instead use CriticalObject:

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus

lsh
Posts: 10
Joined: 14 Sep 2017, 07:02

Re: [AHK_H v2] 'ComObjConnect' Thread direct connection

07 Jan 2018, 06:55

' CriticalObject ' is understood as a way to prevent problems caused by interference during multi-threading.
Is that right?

In the following ' script ', ' ie_BeforeNavigate2 ' in ' Thread ', only the areas where simple messages are received are isolated from the mainscript.
The area of the ' ie_BeforeNavigate2 ' in ' Thread ' would be a series of simple repetitive tasks.

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus



Because,
I want the pure function of ' ComObjConnect ', which is to connect the starting point of the memory named 'ie' to 'ie_' in 'Thread'.

Commands such as ' COM_FindConnectionPoint ' and ' RtlMoveMemory ' are not familiar commands and therefore need help.

Attachment :
ExeThread ' knows to have about 3,500 " thread " available. -> https://autohotkey.com/boards/viewtopic.php?f=67&t=37060&p=170491&hilit=262+indexes#p170584
If there is a 'comobj' directly in each thread, about 330 to 500 are likely possible, right?
HotKeyIt
Posts: 1665
Joined: 29 Sep 2013, 18:35
Contact:

Re: [AHK_H v2] 'ComObjConnect' Thread direct connection  Topic is solved

07 Jan 2018, 07:42

lsh wrote:' CriticalObject ' is understood as a way to prevent problems caused by interference during multi-threading.
Is that right?
Yes

Try this ;)

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus


Return to “Ask For Help”

Who is online

Users browsing this forum: No registered users and 1 guest