Search found 407 matches

by User
28 Dec 2018, 09:53
Forum: Ask For Help
Topic: What is recommended, %Func%() or Func.Call()? Topic is solved
Replies: 11
Views: 1521

Re: What is recommended, %Func%() or Func.Call()? Topic is solved

wolf_II wrote:
27 Dec 2018, 22:17
For fewer parameters try optional parameters:
A better solution: https://www.autohotkey.com/boards/viewt ... 76&t=60402
by User
28 Dec 2018, 09:46
Forum: Ask For Help
Topic: How to dynamically pass the minimum required parameters returned by "IsFunc()" to functions?
Replies: 10
Views: 1581

Re: How to dynamically pass the minimum required parameters returned by "IsFunc()" to functions?

Test(arr*) seems to solve this problem! ;dynamically pass Required Parameters to the function? ;https://www.autohotkey.com/boards/viewtopic.php?p=255146#p255146 Test_Required_Parameters := IsFunc("Test") - 1 arr := [] Loop % Test_Required_Parameters arr[a_index] := "x_" a_index ;the "*" bellow from ...
by User
28 Dec 2018, 07:27
Forum: Ask For Help
Topic: How to dynamically pass the minimum required parameters returned by "IsFunc()" to functions?
Replies: 10
Views: 1581

How to dynamically pass the minimum required parameters returned by "IsFunc()" to functions?

How to dynamically pass the minimum required parameters returned by "IsFunc()" to functions?

Code: Select all

Test_Required_Parameters := IsFunc("Test") - 1

msgbox, % Test_Required_Parameters

Test()		;how to dynamically pass "Test_Required_Parameters" to the function?

Test(a, b, c, d)
{
msgbox, Test()
}
by User
27 Dec 2018, 22:54
Forum: Ask For Help
Topic: What is recommended, %Func%() or Func.Call()? Topic is solved
Replies: 11
Views: 1521

Re: What is recommended, %Func%() or Func.Call()? Topic is solved

For recommendations wait for better answers. One disadvantage of using Call() is that users are forced to use func("FunctionName") but still, I really don't know what is better, %func%() or func.call() ? test := "FT" %test%("Dynamic_1 - 111", "222", "333") ;works test.call("call_1 - 111", "222", "3...
by User
27 Dec 2018, 22:39
Forum: Ask For Help
Topic: What is recommended, %Func%() or Func.Call()? Topic is solved
Replies: 11
Views: 1521

Re: What is recommended, %Func%() or Func.Call()? Topic is solved

For fewer parameters try optional parameters: or use something like %test%("Dynamic_2 - 111", "222", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0") There are some cases where you can't define optional parameters, such as for built-in functions, functions created by other people, etc, e...
by User
27 Dec 2018, 21:30
Forum: Ask For Help
Topic: What is recommended, %Func%() or Func.Call()? Topic is solved
Replies: 11
Views: 1521

What is recommended, %Func%() or Func.Call()? Topic is solved

What is recommended, %Func%() or Func.Call()? and how to force function call on few parameters? test := "FT" %test%("Dynamic_1 - 111", "222", "333", "444", "555", "666") %test%("Dynamic_2 - 111", "222") ;few parameters, so not called (How to force function call?) ;_____ func("Ft").call("func.call_1 ...
by User
27 Dec 2018, 16:39
Forum: Ask For Help
Topic: On() Function
Replies: 5
Views: 879

Re: On() Function

FanaticGuru wrote:
27 Dec 2018, 14:17
That's sad! It would be nice to be able to use something like, for example, On(Control_Id, "Text_Change", Execute_Function_X), etc, etc!

Anyway, thanks for your reply!
by User
27 Dec 2018, 13:39
Forum: Scripts and Functions
Topic: [Function] - Win_Hwnd_Options() - Set Options to Hwnd of Windows (The Options are automatically deleted on Win destroy)
Replies: 2
Views: 840

Re: [Function] - Win_Hwnd_Options() - Set Options to Hwnd of Windows (The Options are automatically deleted on Win destr

I just noticed right now "WinActive()" AHK built-in function, so: WinActive("A") or WinExist("A") should be used instead "Get_Active_Win_Hwnd()"! ________ #If RegEXMatch(Win_Hwnd_Options(Get_Active_Win_Hwnd()), "Allow_F1_Hotkey") - replace the above with: - #If RegEXMatch(Win_Hwnd_Options(WinExist("...
by User
27 Dec 2018, 12:46
Forum: Ask For Help
Topic: Hwnd Creation Time?
Replies: 5
Views: 1128

Re: Hwnd Creation Time?

@User: You've been experimenting with shell hooks recently, can't you just log when windows are created? Yes you right! I end up doing better (for my needs of course), by associating options to Hwnd of windows, and, by using "shell hooks" those options are automatically deleted as soon their associ...
by User
27 Dec 2018, 10:56
Forum: Scripts and Functions
Topic: [Function] - Win_Hwnd_Options() - Set Options to Hwnd of Windows (The Options are automatically deleted on Win destroy)
Replies: 2
Views: 840

Re: [Function] - Win_Hwnd_Options() - Set Options to Hwnd of Windows (The Options are automatically deleted on Win destr

(v1.1) Not really a new version (just fixed the below): Static RunAtScriptExecution2 := MsgNum := DllCall( "RegisterWindowMessage", Str,"SHELLHOOK" ) - the above was replaced\Fixed with the below: - Static SH_MsgNum := DllCall( "RegisterWindowMessage", Str,"SHELLHOOK" ) loop, 3 { gui, % a_index ":de...
by User
26 Dec 2018, 23:47
Forum: Scripts and Functions
Topic: [Function] - Win_Hwnd_Options() - Set Options to Hwnd of Windows (The Options are automatically deleted on Win destroy)
Replies: 2
Views: 840

[Function] - Win_Hwnd_Options() - Set Options to Hwnd of Windows (The Options are automatically deleted on Win destroy)

Win_Hwnd_Options() function sets Options to Hwnd of Windows! The Options are automatically deleted as soon the Windows are destroyed! [OBS], I set the function OnMessage() maxthreads to 1000 (not sure if it is really necessary, bu anyway ...) v1.1 (clickhere) v1.0 (below) 97_ Image.png loop, 3 { gui...
by User
26 Dec 2018, 23:20
Forum: Ask For Help
Topic: On() Function
Replies: 5
Views: 879

Re: On() Function

Scr1pter wrote:
26 Dec 2018, 11:12
Thanks for your reply!

Yes, [Class] WinHook seems to be a really good class for window events!

Unfortunately, as @FanaticGuru said, "I don't think those two functions can catch the control events"!
by User
26 Dec 2018, 23:06
Forum: Ask For Help
Topic: Hwnd Creation Time?
Replies: 5
Views: 1128

Re: Hwnd Creation Time?

anomalocaris wrote:
26 Dec 2018, 21:40
Wow, thanks for your reply, but "C" is beyond my knowledge in every way!

But in my own opinion, if "TickCount" creation time was associated to every Hwnd, that would be Awseome!
by User
26 Dec 2018, 17:13
Forum: Ask For Help
Topic: Hwnd Creation Time?
Replies: 5
Views: 1128

Hwnd Creation Time?

Hi,

Is it possible to get Hwnd Creation Time? For example, get the "TickCount" (The number of milliseconds since the computer was rebooted) associated to an Hwnd when it was created!
by User
26 Dec 2018, 15:23
Forum: Scripts and Functions
Topic: [Class] WinHook
Replies: 32
Views: 7918

Re: [Class] WinHook

Hi,

This class seems pretty good!

Lets say "Control_Id" variable contains the hwnd of a specific control, so, how can I use this class to monitor "Control_Id" events! (Examples below:)

something like:

On(Control_Id, "destroy", Executefunction_A)
On(Control_Id, "hide", Executefunction_B)

Thanks!
by User
26 Dec 2018, 10:47
Forum: Ask For Help
Topic: On() Function
Replies: 5
Views: 879

On() Function

Hi,

Is there any function out there that can do the below examples? Thanks!

On(WinTitle, Event, ExecuteFunction)

On("ahk_id" Hwnd, "Destroy", ExecuteFunction_A)

On("ahk_id" Hwnd, "Resize", ExecuteFunction_B)

On("ahk_id" Hwnd, "Hide", ExecuteFunction_C)
by User
25 Dec 2018, 21:40
Forum: Forum Issues
Topic: Why Am I Still Not Receiving Email Notifications?
Replies: 25
Views: 5709

Re: Why Am I Still Not Receiving Email Notifications?

the emails are sent if you have done all the above. If you are not receiving them then something on your side is blocking them Yes, all the above is already done! Nothing is being blocked on my side! That's why this problem is still not fixed almost 2 months later, because instead you try to fix it...
by User
25 Dec 2018, 20:42
Forum: Forum Issues
Topic: Why Am I Still Not Receiving Email Notifications?
Replies: 25
Views: 5709

Re: Why Am I Still Not Receiving Email Notifications?

joedf wrote:
25 Dec 2018, 19:51
I have sent you a PM. Do you receive an email for PMs?
No, I don't! (and I didn't receive email notification from the last PM you sent me!)
by User
25 Dec 2018, 13:22
Forum: Ask For Help
Topic: Is there any "Shell Hook" Alternative?
Replies: 1
Views: 396

Is there any "Shell Hook" Alternative?

"Shell Hook" has some absurdities that I really don't want to use it! For example, "HSHELL_WINDOWDESTROYED" is triggered when windows are "destroyed" but it is also triggered when windows are "Hidden"! (Hehe, these so called developers really make me Lol times to times!) Anyway, the code below demon...
by User
25 Dec 2018, 10:53
Forum: Ask For Help
Topic: How to instruct Windows OS to notify Autohotkey when a specific Window is destroyed?
Replies: 1
Views: 324

How to instruct Windows OS to notify Autohotkey when a specific Window is destroyed?

Hi,

I would like Windows OS to notify Autohotkey when a specific window is destroyed! Is it possible?

Go to advanced search