Hahahahahahahahahahahahahahahahahahahahahahahahahahahahahaha!
Search found 407 matches
- 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
- 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...
- 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
Really bad, unfortunately!Delta Pythagorean wrote: ↑31 Dec 2018, 00:05As of currently. No. Functions are set in stone as it is.
- 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%()
{
}
Function_Name := "Test"
%Function_Name%()
{
}
- 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
- 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
- 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 ...
- 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...
- 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 "\.*?+[...
- 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 ...
- 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
- 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...
- 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
- 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() ;_______________________...
- 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
}
- 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
- 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 ...
- 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()
- 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...
- 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 ...