Search found 407 matches

by User
01 Jan 2019, 10:04
Forum: Ask for Help (v1)
Topic: Is there any way to create a function dynamically? Topic is solved
Replies: 13
Views: 3806

Re: Is there any way to create a function dynamically? Topic is solved

just me wrote:
01 Jan 2019, 07:38
LOL, good joke!
Hahahahahahahahahahahahahahahahahahahahahahahahahahahahahaha!
by User
31 Dec 2018, 22:59
Forum: Ask for Help (v1)
Topic: Is there any way to create a function dynamically? Topic is solved
Replies: 13
Views: 3806

Re: Is there any way to create a function dynamically? Topic is solved

As of currently. No. Functions are set in stone as it is. As DeltaPythagorean stated I'm pretty sure you only can call a function dynamically. Well, it seems that it is easy to implement "function dynamic creation"! example below: 93_ image.gif Script = (join`r`n xxx := "111" yyy := "222" zzz := "3...
by User
31 Dec 2018, 10:17
Forum: Ask for Help (v1)
Topic: Is there any way to create a function dynamically? Topic is solved
Replies: 13
Views: 3806

Re: Is there any way to create a function dynamically? Topic is solved

Delta Pythagorean wrote:
31 Dec 2018, 00:05
As of currently. No. Functions are set in stone as it is.
Really bad, unfortunately!
by User
30 Dec 2018, 23:02
Forum: Ask for Help (v1)
Topic: Is there any way to create a function dynamically? Topic is solved
Replies: 13
Views: 3806

Is there any way to create a function dynamically? Topic is solved

Example below,

Function_Name := "Test"

%Function_Name%()
{

}
by User
30 Dec 2018, 21:20
Forum: Ask for Help (v1)
Topic: Is there any good alternative for script Pre-Edition for AHK?
Replies: 11
Views: 2415

Re: Is there any good alternative for script Pre-Edition for AHK?

coffee wrote:
30 Dec 2018, 21:04

Hehe! Angry one hum? Haha!

Image
by User
30 Dec 2018, 20:34
Forum: Ask for Help (v1)
Topic: Is there any good alternative for script Pre-Edition for AHK?
Replies: 11
Views: 2415

Re: Is there any good alternative for script Pre-Edition for AHK?

coffee wrote:
30 Dec 2018, 15:43
What part of "Avoid Repetition" you did not understand? Look at how many times you are repeating "functionname" in your examples!

And for that image you posted, well, :facepalm:
by User
30 Dec 2018, 20:08
Forum: Scripts and Functions (v1)
Topic: [Function] - RegExEsc() - Escape RegEx Special Characters Automatically!
Replies: 5
Views: 2256

Re: [Function] - RegExEsc() - Escape RegEx Special Characters Automatically!

String := ".. \E - Lalalallal - .. \E - Lululululuulululu - .. \E" ;from string above, I want to replace only ".. \E" at the start of the string with "@" ;"\.*?+[{|()^$ \E" are regex special characters\string ;you have to escape each one with "\" or by using "\Q" ;I want to replace only ".. \E" at ...
by User
30 Dec 2018, 19:26
Forum: Scripts and Functions (v1)
Topic: [Function] - RegExEsc() - Escape RegEx Special Characters Automatically!
Replies: 5
Views: 2256

Re: [Function] - RegExEsc() - Escape RegEx Special Characters Automatically!

String := "Lalalallal - .. \E - Lululululuulululu" ;from string above, I want to replace ".. \E" with "@" ;"\.*?+[{|()^$ \E" are regex special characters\string ;you have to escape each one with "\" or by using "\Q" ;I want to replace ".. \E" with "$1$2$3" ;"$" is a special character for "RegExRepl...
by User
30 Dec 2018, 19:00
Forum: Scripts and Functions (v1)
Topic: [Function] - RegExEsc() - Escape RegEx Special Characters Automatically!
Replies: 5
Views: 2256

Re: [Function] - RegExEsc() - Escape RegEx Special Characters Automatically!

Please offer a few more examples. ;) String := "Lalalallal - \.*?+[{|()^$ \E - Lululululuulululu" ;from string above, I want to replace "\.*?+[{|()^$ \E" with "@" ;"\.*?+[{|()^$ \E" are regex special characters\string ;you have to escape each one with "\" or by using "\Q" ;I want to replace "\.*?+[...
by User
30 Dec 2018, 12:50
Forum: Ask for Help (v1)
Topic: Is there any good alternative for script Pre-Edition for AHK?
Replies: 11
Views: 2415

Re: Is there any good alternative for script Pre-Edition for AHK?

The static only serves to keep the expression from resolving on each call, so in theory there is only a time savings by using it, why would you need it in this case? Well, it avoids code repetition! (I really hate code repetitions!) In the example below, I only need to write "Test" Once! If I want ...
by User
30 Dec 2018, 10:14
Forum: Ask for Help (v1)
Topic: Is there any good alternative for script Pre-Edition for AHK?
Replies: 11
Views: 2415

Re: Is there any good alternative for script Pre-Edition for AHK?

nnnik wrote:
30 Dec 2018, 10:09
You never said that you need static - nor do i see any good reason to use from the things you shared.
I reccomend asking questions correctly if you want good answers.
Hehe! Lol!
by User
30 Dec 2018, 09:34
Forum: Forum Issues
Topic: Receiving Email Notifications Again! (2 Months Later) Topic is solved
Replies: 2
Views: 1373

Receiving Email Notifications Again! (2 Months Later) Topic is solved

After this thread of mine being blocked because "Yet I refuse to ask myself what is different about me than everyone else?" , somebody from this forum staff silently re-enabled email notifications for my account, well, almost 2 Months Later! Just posting this, in case you are not receiving email not...
by User
30 Dec 2018, 09:22
Forum: Ask for Help (v1)
Topic: Is there any good alternative for script Pre-Edition for AHK?
Replies: 11
Views: 2415

Re: Is there any good alternative for script Pre-Edition for AHK?

nnnik wrote:
30 Dec 2018, 06:00
Just remove the static assignment in your original post and it will work out.
What? I need to use it in a static assignment and you propose a solution that requires static assignment to not be used?
by User
30 Dec 2018, 00:46
Forum: Ask for Help (v1)
Topic: Is there any good alternative for script Pre-Edition for AHK?
Replies: 11
Views: 2415

Is there any good alternative for script Pre-Edition for AHK?

Because of this problem , I tried to pre-edit scripts before executing them! But I'm really not in the mood to finish writing the function below, so, if there is any other alternative out there, please share here! 95_ z_ image.gif Script = (join`r`n Test() yyy() xxx() Test() ;_______________________...
by User
29 Dec 2018, 15:16
Forum: Ask for Help (v1)
Topic: A_ThisFunc not working!
Replies: 1
Views: 595

A_ThisFunc not working!

A_ThisFunc does not work in the code below! Any suggestions?

Code: Select all

test()


test()	;____________________ function _________________
{
static x := A_ThisFunc


msgbox, % x
}
by User
29 Dec 2018, 10:37
Forum: Ask for Help (v1)
Topic: What is recommended, %Func%() or Func.Call()? Topic is solved
Replies: 11
Views: 1837

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

Helgef wrote:
29 Dec 2018, 01:41
Your question is on the same level as asking which is recommend, ++var or var++
No it is not! (Not even close!)
by User
28 Dec 2018, 22:33
Forum: Ask for Help (v1)
Topic: OnMessage() MaxThreads parameter limited by "#MaxThreads"?
Replies: 0
Views: 479

OnMessage() MaxThreads parameter limited by "#MaxThreads"?

Hi, I noticed that OnMessage() MaxThreads parameter is limited by "#MaxThreads"? Is that supposed to be like that? Is there any workaround to make OnMessage() MaxThreads parameter self-dependent and not limited by "#MaxThreads"? ;onMessage() does not work if function requires more than 4 parameters ...
by User
28 Dec 2018, 15:41
Forum: Ask for Help (v1)
Topic: What is recommended, %Func%() or Func.Call()? Topic is solved
Replies: 11
Views: 1837

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

So it seems that %Func%() is recommended over Func.Call()
by User
28 Dec 2018, 12:20
Forum: Ask for Help (v1)
Topic: Is DeregisterShellHookWindow really necessary?
Replies: 0
Views: 490

Is DeregisterShellHookWindow really necessary?

Hi, Lets say "RegisterShellHookWindow" was used for "A_ScriptHwnd" window! So, when the script exits (on ExitApp), "A_ScriptHwnd" window is automatically destroyed, thus, do I really need to use "DeregisterShellHookWindow" on script exit or does the "Shell Hook" or whatever do it automatically on "A...
by User
28 Dec 2018, 10:30
Forum: Ask for Help (v1)
Topic: How to dynamically pass the minimum required parameters returned by "IsFunc()" to functions?
Replies: 13
Views: 2205

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

Wow, just found out that "OnMessage()" fails if function requires more than 4 parameters! I think the solution above could be easily implemented in "OnMessage()"? Anyway, fail example below: ;onMessage() does not work if function requires more than 4 parameters OnMessage(0x201, "Test") ;0x201, left ...

Go to advanced search