Search found 15 matches

by AstraVista
21 Mar 2024, 01:16
Forum: Ask for Help (v2)
Topic: [Q] RegisterActiveObject - How to convert ComObject to Class directly?
Replies: 4
Views: 303

Re: [Q] RegisterActiveObject - How to convert ComObject to Class directly?

Hi, For the function to work with it, It is needed that type of source and type of target are the same. oSource := Class274() fTestWork(oSource) vSetValue := oSource oComObj := ComObjActive(sGUID) oTarget := fTestConvert(oComObj) ; Convert to Class274 instance. fTestWork(oTarget) And I want to save ...
by AstraVista
20 Mar 2024, 02:33
Forum: Ask for Help (v2)
Topic: [Q] Enumerator - Why is cloned class different from original? Topic is solved
Replies: 4
Views: 245

Re: [Q] Enumerator - Why is cloned class is different from original? Topic is solved

Request:
I have no idea why is static __Item property put into that enumerator in the cloned class.
Is there anyone to help this question?
by AstraVista
20 Mar 2024, 02:19
Forum: Ask for Help (v2)
Topic: [Q] RegisterActiveObject - How to convert ComObject to Class directly?
Replies: 4
Views: 303

[Q] RegisterActiveObject - How to convert ComObject to Class directly?

[Q] RegisterActiveObject - How to convert ComObject to Class directly? A related article: (6) ObjRegisterActive( https://www.autohotkey.com/boards/viewtopic.php?f=96&t=124720 ) Example: class Class274 { iVarA := 0 iVarB := 0 } oSource := Class274() oSource.DeleteProp("iVarA") oSource.iVarB := 2 oSo...
by AstraVista
18 Mar 2024, 09:39
Forum: Ask for Help (v2)
Topic: [Q] Enumerator - Why is cloned class different from original? Topic is solved
Replies: 4
Views: 245

[Q] Enumerator - Why is cloned class different from original? Topic is solved

[Q] Enumerator - Why is cloned class different from original? A related topic: https://www.autohotkey.com/boards/viewtopic.php?f=83&t=127205&p=562641#p562641 Example: class Class268 { static __Item[iVar] { Get { return } Set { return } } } Source := Class268 Target := Source.Clone() for vName in So...
by AstraVista
11 Mar 2024, 13:06
Forum: Scripts and Functions (v2)
Topic: ScriptVar - Object deep clone, compile, and parse
Replies: 0
Views: 279

ScriptVar - Object deep clone, compile, and parse

ScriptVar - Object deep clone, compile, and parse ObjDeepClone(): Deep clone an object. ObjCompile() : Convert a user class object to a string packet. ObjParse() : Convert a compiled packet back to object. These can be used for string communication between scripts. This is the part of ScriptSock pr...
by AstraVista
09 Mar 2024, 05:04
Forum: Ask for Help (v2)
Topic: [Q] Multithreading - CreateThread not working
Replies: 4
Views: 156

Re: [Q] Multithreading - CreateThread not working

Thanks, I will dig into your suggestion...
by AstraVista
09 Mar 2024, 01:45
Forum: Ask for Help (v2)
Topic: [Q] Multithreading - CreateThread not working
Replies: 4
Views: 156

Re: [Q] Multithreading - CreateThread not working

Thanks for answer! Though I've use multi scripts method, I'm seeking new method. In case of SetTimer(), timer's stuck and doesn't return when using a loop inside unfortunately. So I stick to multi scripts... In some cases, I put "#SingleInstance Off" in a script, and call own script with parameters ...
by AstraVista
08 Mar 2024, 22:35
Forum: Ask for Help (v2)
Topic: [Q] Multithreading - CreateThread not working
Replies: 4
Views: 156

[Q] Multithreading - CreateThread not working

[Q] Multithreading - CreateThread not working I am thinking of multithreading in one ahk v2 script. But, each thread runs SoundBeep() once and ToolTip() once and quit. What's wrong? and how to run two threads simultaneously... Example: CallbackThreadA := CallbackCreate(Thread223A) ; "F" CallbackThr...
by AstraVista
23 Feb 2024, 10:23
Forum: Tips and Tricks
Topic: Understanding of Object Hierarchy with MsgBox()
Replies: 0
Views: 266

Understanding of Object Hierarchy with MsgBox()

Understanding of Object Hierarchy with MsgBox() Fundamental Objects: Any, Object, Class Other Objects: Func, Integer, String Comments are from AutoHotkey v2 Help. Example: ; Class, Object, Any if (0) { if (1) { ; The prototype object itself is natively an Object. ; But has no base and therefore doe...
by AstraVista
23 Feb 2024, 00:16
Forum: Ask for Help (v2)
Topic: [Q] How to enumerate user class methods
Replies: 2
Views: 104

Re: [Q] How to enumerate user class methods

Ah, thanks! Problem solved.

p.s. "Test" is omitted from editing...
by AstraVista
22 Feb 2024, 22:34
Forum: Ask for Help (v2)
Topic: [Q] How to enumerate user class methods
Replies: 2
Views: 104

[Q] How to enumerate user class methods

[Q] How to enumerate user class methods If finding Clone() in Map Class, Clone() is found in it's prototype. Example: MsgBox(Map.HasProp(" Clone ")) ; -> true MsgBox(Map.HasOwnProp("Clone")) ; -> false for aName in Map.Prototype.OwnProps() { MsgBox(aName) ; -> __Class, ... , Clone , ... } But, In u...
by AstraVista
20 Feb 2024, 05:22
Forum: Scripts and Functions (v2)
Topic: ScriptSock - Communication Between AutoHotkey Scripts
Replies: 0
Views: 368

ScriptSock - Communication Between AutoHotkey Scripts

ScriptSock Communication Between AutoHotkey Scripts AutoHotkey v2 Concept is: Source.ahk - Set or Get Variables - Target.ahk My first posting in AutoHotkey v2 forum. I have developed it for my small project. I am working on transforming code to more object-oriented implementing... :) Originated fro...
by AstraVista
17 Feb 2024, 05:01
Forum: Forum Issues
Topic: Welcome and if you need help
Replies: 87
Views: 127700

Re: Welcome and if you need help

I am fresh new to join this forum. and I am thinking what to do, and what to code.
Maybe sometime's later I expect to post my code here... :)

I posted a script in AutoHotkey v2 forum:

Go to advanced search