Search found 546 matches
- 22 Sep 2015, 06:37
- Forum: Ask for Help (v1)
- Topic: [Close]AddRef on released object - Manage Refference Count After __Delete
- Replies: 14
- Views: 3968
[Close]AddRef on released object - Manage Refference Count After __Delete
Almost clear, this found could be used well I think, see posts below . class a{ b:=new b(this) } class b{ __New(instance){ this[instance]:=true ObjRelease(&instance) } __Delete(){ for instance in this ObjAddRef(&instance) } } c:=new a return Although b in a is released after a in the same seriou pro...
- 22 Sep 2015, 06:27
- Forum: Scripts and Functions (v1)
- Topic: OnWin() - call function on window event (WinWaitXXX async)
- Replies: 53
- Views: 49430
Re: OnWin() - call function on window event (WinWaitXXX async)
While this script is a good demonstration of inter-process communication for multi-tasking, if the purpose is to monitor for windows appearing, activating or closing, a shell hook would be more suitable. shell hook can only monitor top windows belong to Shell, not contain its child window, so.. int...
- 19 Sep 2015, 09:24
- Forum: Ask for Help (v1)
- Topic: [√]Hotstring to trigger itself which send itself
- Replies: 6
- Views: 1427
Re: [√]Hotstring to trigger itself which send itself
lexikos wrote:I wouldn't have used that either.
- 19 Sep 2015, 02:51
- Forum: Ask for Help (v1)
- Topic: [√]Hotstring to trigger itself which send itself
- Replies: 6
- Views: 1427
Re: [√]Hotstring to trigger itself which send itself
Msgbox `====
- 19 Sep 2015, 01:01
- Forum: Ask for Help (v1)
- Topic: [√]Hotstring to trigger itself which send itself
- Replies: 6
- Views: 1427
Re: Hotstring to trigger itself which send itself
@lexikos
Send {=}===
Send {=}===
- 18 Sep 2015, 20:43
- Forum: Ask for Help (v1)
- Topic: [√]Hotstring to trigger itself which send itself
- Replies: 6
- Views: 1427
[√]Hotstring to trigger itself which send itself
#InputLevel 0 :*OB0:=`t:: SendLevel 1 Send {Left}{Right}==== return Can't use Send ==== , but Send {Left}{Right}==== , otherwise =`t will send nothing (send and then delete automaticly) . And I think {Left}{Right} is not a good practicce. Also, the code will send {= 5}{= 4}{= 4}.. , which I hope {=...
- 17 Sep 2015, 03:56
- Forum: Ask for Help (v1)
- Topic: Determination object type: [] AND {}
- Replies: 17
- Views: 3973
Re: Determination object type: [] AND {}
I think @arcticir want to distinguish from array or object when parse json strings.
Is this documented? Why I can't find it. What a nice feature!
see [AHK_L] Customizing Object() and Array()
Code: Select all
Array(es*){
MsgBox []
return es
}
Object(os*){
MsgBox {}
return os
}
a:=[1,2]
b:={a:1,b:2}
ExitApp
see [AHK_L] Customizing Object() and Array()
- 16 Sep 2015, 21:24
- Forum: Ask for Help (v1)
- Topic: Determination object type: [] AND {}
- Replies: 17
- Views: 3973
Re: Determination object type: [] AND {}
Thanks lexikos.
I just want to try a new method with the subject. Although I often use clone to create temporary data.
I just want to try a new method with the subject. Although I often use clone to create temporary data.
- 16 Sep 2015, 20:20
- Forum: Ask for Help (v1)
- Topic: Determination object type: [] AND {}
- Replies: 17
- Views: 3973
Re: Determination object type: [] AND {}
You should also predicate type of k, which might be not integer but string. Check if Object.Length()==Object.Delete(Object.MinIndex(), Object.MaxIndex()) && Object.SetCapacity(0)==0 (use Object.Clone if needed before Delete ) to determin whether is a continuation linear array beginning at position 1...
- 09 Sep 2015, 04:31
- Forum: Ask for Help (v1)
- Topic: [Solved]SendMessage using DllCall / command
- Replies: 6
- Views: 3249
- 09 Sep 2015, 01:46
- Forum: Ask for Help (v1)
- Topic: [Solved]SendMessage using DllCall / command
- Replies: 6
- Views: 3249
Re: SendMessage using DllCall / command
Also, ahk_id will operate on controls even if they are hidden Is it a control? :roll: No, it's a window - an input method editor (IME) window belong to SHELL / desktop window, every thread which has an window(s) that could get focus to input characters has its IME window (to transform keypress stro...
- 08 Sep 2015, 22:15
- Forum: Ask for Help (v1)
- Topic: [Solved]SendMessage using DllCall / command
- Replies: 6
- Views: 3249
Re: SendMessage using DllCall / command
DetectHiddenWindows? Timeout? Also, ahk_id will operate on controls even if they are hidden; that is, the setting of DetectHiddenWindows does not matter for controls. If omitted, it( Timeout ) defaults to 5000 (milliseconds) I think it's not this reason. hMIC:=DllCall("imm32.dll\ImmGetDefaultIMEWnd...
- 08 Sep 2015, 19:15
- Forum: Ask for Help (v1)
- Topic: [Solved]SendMessage using DllCall / command
- Replies: 6
- Views: 3249
[Solved]SendMessage using DllCall / command
DllCall("SendMessage", UInt, hMIC, UInt, WM_IME_CONTROL, Int, wParam, Int, lParam) success. SendMessage,WM_IME_CONTROL,wParam,lParam,,ahk_id %hMIC% always FAIL. So, I think there is some difference between them. WinShow can always operate on hidden windows . Every other command with a WinTitle para...
- 06 Sep 2015, 09:33
- Forum: Scripts and Functions (v1)
- Topic: OnWin() - call function on window event (WinWaitXXX async)
- Replies: 53
- Views: 49430
Re: OnWin() - call function on window event (WinWaitXXX async)
Thanks for the work~
And , how to stop watching, does it necessary? I didn't found infomation in Parameter.
Using empty callback? OnWin( event, WinTitle)
And , how to stop watching, does it necessary? I didn't found infomation in Parameter.
Using empty callback? OnWin( event, WinTitle)
- 06 Sep 2015, 07:48
- Forum: 脚本函数
- Topic: [v2] hawkeye() 监听窗口
- Replies: 9
- Views: 72169
Re: [HV2] 窗口监视模块 - Hawkeye
http://ahkscript.org/boards/viewtopic.php?f=6&t=6463 使用这个库不就可以了吗? 赞... 消息太闭塞了,得口口相传...效率何其低啊... 值得翻译,转载到中文论坛/板块。 嗯,那个OnWin还有不足,貌似是开启多进程模拟监视 :shock: 外加现在(1.0.03)还没有停止监视的功能...已反馈,说能解决 OnWin的简单翻译见 AHK8帖子 。 关于 RegisterShellHookWindow 的可运行的演示,展示了可以获取到的消息。 主要是HSHELL_WINDOWACTIVATED,较窄。 ;[url=https://msdn...
- 31 Aug 2015, 09:54
- Forum: 脚本函数
- Topic: [v2] hawkeye() 监听窗口
- Replies: 9
- Views: 72169
Re: [HV2] 窗口监视模块 - Hawkeye
突然有个问题,WinWait是否可行,是否可以同时开启多个监控,是否无需多线程。
如果可以,把需要监控的东西放到各个伪线程中等待就行了吧...不知道内部是不是也是通过监听实现的。
监控子窗口的问题论坛刚有讨论下怎样能监视这个窗口的出现?
如果可以,把需要监控的东西放到各个伪线程中等待就行了吧...不知道内部是不是也是通过监听实现的。
监控子窗口的问题论坛刚有讨论下怎样能监视这个窗口的出现?
- 28 Aug 2015, 23:56
- Forum: 其他
- Topic: Any active moderator in chinese subforum?
- Replies: 3
- Views: 12948
Re: Any active moderator in chinese subforum?
Hello, I have been [Expire]Ask for moderators privilege . There are some active member such as @arcticir. We are discussing just now, to recommend someone to be the moderator. I find it difficult to make my ideal forum mode, and I'm concentrate my attention on some other work, so, hope somebody woul...
- 28 Aug 2015, 08:08
- Forum: 脚本函数
- Topic: [v2] hawkeye() 监听窗口
- Replies: 9
- Views: 72169
Re: [HV2] 窗口监视模块 - Hawkeye
实例应用涵盖全面,很诱人... 貌似/未验证。子窗口的消息(如,最大化/最小化),需要监其窗口类中指定的消息处理过程,可以由窗口类并用钩子的方式获取一切窗口(含子窗口)的消息,但各个子窗口实例化时指定的消息处理过程可能各异,所以看需求用钩子.. 你列的消息类型出自来?怎么上面的项目比MSDN描述的还多呢? →以上用的RegisterShellHookWindow函数,我理解为SetWindowsHookEx函数了。 顶级窗口 , 即桌面级的窗口 吧? →属于桌面的,非Owned窗口,即,属于桌面的独立窗口。 “如果进程创建时没有创建窗口就无法监听进程的创建事件”即,进程创建的第一个窗口无法监听...
- 23 Aug 2015, 23:02
- Forum: Ask for Help (v1)
- Topic: [not a bug, with solution]include {goto end ... end:} error
- Replies: 12
- Views: 4161
Re: [not a bug, with solution]include {goto end ... end:} error
@trismarcklexikos wrote:You are are, as usual, overcomplicating things. And rambling.
Many thx to @lexikos
- 21 Aug 2015, 20:18
- Forum: Ask for Help (v1)
- Topic: [not a bug, with solution]include {goto end ... end:} error
- Replies: 12
- Views: 4161
Re: include {goto end ... end:} error
#include just copies the code from the other file, in-place, so I don't see how using goto like that will change the auto-execute section I mean not to change. The final a.ahk should like this: ;from b.ahk ... ;continue auto-execute section ... ;some 'class', 'function' definitions goto end ... ;so...