Search found 405 matches

by vvhitevvizard
29 Jun 2020, 08:13
Forum: AutoHotkey v2 Scripts and Functions
Topic: Run Alt AHK Version (RAAV) - Run AHK v2 scripts with one click
Replies: 7
Views: 1453

Re: Run Alt AHK Version (RAAV) - Run AHK v2 scripts with one click

thanks for sharing. :thumbup: Suggestion: For this line, if (ErrorLevel) || (SubStr(ScriptFilePath, -4) != ".ahk") || (FileExist(ScriptFilePath) = "D") change it to if (ErrorLevel) || !(ScriptFilePath ~= ".*\.ahk2?$") || (FileExist(ScriptFilePath) = "D") b/c some ppl use .ahk2 extension for AHKv2. I...
by vvhitevvizard
29 Jun 2020, 05:41
Forum: AutoHotkey v2 Development
Topic: Updated to v2-119. [list of 50 suggestions]
Replies: 78
Views: 27808

Re: Updated from v2-108 to v2-112. Just a bliss! Feels so good. But a [list of bugs/suggestions]

lexikos It would be no more dangerous at worst, and safer at best, than the alternative - using Ptr directly, without the bound checking granted by Size. :D Its dangerous in that sense it creates the false impression of safety having boundary checking while using a random memory region. The express...
by vvhitevvizard
29 Jun 2020, 03:03
Forum: AutoHotkey v2 Development
Topic: Updated to v2-119. [list of 50 suggestions]
Replies: 78
Views: 27808

Re: Updated from v2-108 to v2-112. Just a bliss! Feels so good. But a [list of bugs/suggestions]

I think your "documentation issues" #3 and #5 were fixed before you posted about them. Great :D I noted above I just merged my 2 old topics into this one. Just to to have my thoughts "centralized". Previous were 2+ months old. Now I start hiding resolved/irrelevant points under spoilers. BTW, what ...
by vvhitevvizard
28 Jun 2020, 13:13
Forum: AutoHotkey v2 Development
Topic: AutoHotkey v2 - give it a new name
Replies: 18
Views: 5443

Re: AutoHotkey v2 - give it a new name

Helgef :thumbup: It wouldn't guarantee any script compatibility for now tho: a script written for v2-212 might fail with v2-211 and v2-213 but having a standardized legal command is a great yes yes yes. I like syntax. And who knows one day AHK v2 might "learn" how to run old version scripts by doin...
by vvhitevvizard
28 Jun 2020, 12:37
Forum: AutoHotkey v2 Development
Topic: [wish] "non-simple" parameter defaults and constants, cont'd
Replies: 7
Views: 4020

Re: [wish] "non-simple" parameter defaults and constants, cont'd

sirksel Thanks so much for all the great continued development of v2! Even with all the rework I periodically have to undertake for breaking changes, I don't think I could ever go back to v1! :thumbup: Recent AHK V2's vector of changes creates the impression it is THE SCRIPTING language. King of sc...
by vvhitevvizard
28 Jun 2020, 12:14
Forum: AutoHotkey v2 Development
Topic: Can I run AHK v1 and v2 Simultaneously on Same Device?
Replies: 19
Views: 5889

Re: Can I run AHK v1 and v2 Simultaneously on Same Device?

A minute ago I've just shared my experience of having multiple AHK interpreter versions side by side in another topic:
https://www.autohotkey.com/boards/viewtopic.php?f=37&t=74971
by vvhitevvizard
28 Jun 2020, 11:35
Forum: AutoHotkey v2 Development
Topic: AutoHotkey v2 - give it a new name
Replies: 18
Views: 5443

Re: AutoHotkey v2 - give it a new name

Using a commented first line like a meta info is a good idea! We should just standardize its format and start using it beforehand. All my scripts have first line commentary like ;v1.7 date | AHK v2-112 At least it helps maintaining scripts mentioning what was the last AHK version the script was test...
by vvhitevvizard
28 Jun 2020, 10:56
Forum: AutoHotkey v2 Development
Topic: Updated to v2-119. [list of 50 suggestions]
Replies: 78
Views: 27808

Re: Updated from v2-108 to v2-112. Just a bliss! Feels so good. But a [list of bugs/suggestions]

lexikos It purposely discourages you from using the function. If you use it, you should feel the weight of its long name. :D I knew u would mention it! Its use is very rare now indeed - mostly I see only 1 usage case of setting capacity big enuf to accommodate many strings concatenations w/o resort...
by vvhitevvizard
28 Jun 2020, 09:37
Forum: AutoHotkey v2 Development
Topic: Updated to v2-119. [list of 50 suggestions]
Replies: 78
Views: 27808

Re: Updated from v2-108 to v2-112. Just a bliss! Feels so good. But a [list of bugs/suggestions]

Helgef That is not what actually happens though. Execution routine after gc.onevent goes to F1() (nested function) and then we call ourselves , not an outer one. u r right :thumbup: I updated 1st post. But the point is the stuff silently crashes breaking even thru the scripts's critical error termi...
by vvhitevvizard
28 Jun 2020, 08:45
Forum: AutoHotkey v2 Development
Topic: Updated to v2-119. [list of 50 suggestions]
Replies: 78
Views: 27808

Re: Updated from v2-108 to v2-112. Just a bliss! Feels so good. But a [list of bugs/suggestions]

lexikos The changes to &var and On/Off should have zero effect on parts of the script that didn't use them in the first place. No checks for & preceding next keyword in the main cycle? :D 6... It requires a Map. You gave it a Prototype, so __Enum threw a type mismatch exception. If you don't know w...
by vvhitevvizard
28 Jun 2020, 04:56
Forum: AutoHotkey v2 Development
Topic: Updated to v2-119. [list of 50 suggestions]
Replies: 78
Views: 27808

Re: Updated from v2-108 to v2-112. Just a bliss! Feels so good. But a [list of bugs/suggestions]

Helgef Maybe its better to introduce some new #warn mode then? Check for # of recursions. E.g. 256 nested calls -> throw a warning. Or the opposite, a switch allowing it. With error signalling by default. And my example is a tad different - we call outer function inside nested function/closure. And...
by vvhitevvizard
28 Jun 2020, 04:31
Forum: AutoHotkey v2 Development
Topic: Updated to v2-119. [list of 50 suggestions]
Replies: 78
Views: 27808

Re: Updated from v2-108 to v2-112. Just a bliss! Feels so good. But a [list of bugs/suggestions]

@Helgef yeah. :) What I want is catching such stuff that might be left by an user by an oversight. :)
by vvhitevvizard
28 Jun 2020, 03:54
Forum: AutoHotkey v2 Development
Topic: Updated to v2-119. [list of 50 suggestions]
Replies: 78
Views: 27808

Re: Updated from v2-108 to v2-112. Just a bliss! Feels so good. But a [list of bugs/suggestions]

I've just updated the first post - changes start from paragraph 13, added more bugs and suggestions, and merged my 2 previous topics. So to have all the stuff in one place. :D
by vvhitevvizard
26 Jun 2020, 07:29
Forum: AutoHotkey v2 Development
Topic: Updated to v2-119. [list of 50 suggestions]
Replies: 78
Views: 27808

Updated to v2-119. [list of 50 suggestions]

07/08/2020: added #50. utilities I used throughout the topic r added to the 1st post Updated from v2-108 to v2-112. Just a bliss! Such a good trend and progression for AHK community! a) With removal of inner commands returning errors via ErrorLevel and replacing them with consistent and unified exc...
by vvhitevvizard
03 May 2020, 00:15
Forum: AutoHotkey v2 Help
Topic: quirks, possible bugs and a wish list
Replies: 4
Views: 585

Re: quirks, possible bugs and a wish list

@Helgef
Damn it. I used to think that a chained assignment with local keyword to the left declares all of them as local...

So in reality only the result of that expression returned (var t) declared as local. And indeed, static t:=0, h:=0 acts as expected. Thank u for explanation. ;)
by vvhitevvizard
02 May 2020, 23:58
Forum: AutoHotkey v2 Help
Topic: quirks, possible bugs and a wish list
Replies: 4
Views: 585

Re: quirks, possible bugs and a wish list

1. 1) It gives error for duplicate static declarations / initialisations. Your code makes no sense in relation to what you have written, and probably does nothing related to what you think it does. Yeah there r no second static declaration with another static keyword otherwise I would get "declarat...
by vvhitevvizard
02 May 2020, 23:12
Forum: AutoHotkey v2 Help
Topic: quirks, possible bugs and a wish list
Replies: 4
Views: 585

quirks, possible bugs and a wish list

My AHK knowledge might be superficial but Id like to share my impressions and expectations and point at AHK quirks, possible bugs and share some points of my wish list. :) I pointed out some official docs errata and bugs in my previous topic https://www.autohotkey.com/boards/viewtopic.php?f=37&t=740...
by vvhitevvizard
01 May 2020, 00:01
Forum: AutoHotkey v2 Scripts and Functions
Topic: ClipCursor: Confining Mouse to a window
Replies: 14
Views: 5184

Re: ClipCursor: Confining Mouse to a window

@Maestr0, now ur updated code needs "Delete" to be replaced with 0 for SetTimer calls. Lines 13 and 33.
by vvhitevvizard
30 Apr 2020, 20:45
Forum: AutoHotkey v2 Scripts and Functions
Topic: Window Spy for AHKv2 - 2020/09/10 - a122
Replies: 14
Views: 4224

Re: Window Spy for AHKv2

@TheArkive Thank u for preserving all the original calculations and stuff. This code, when compared to the original v1 code side by side, can be a good example for ones struggling to convert v1 GUI code for v2-108!
by vvhitevvizard
23 Apr 2020, 14:47
Forum: AutoHotkey v2 Help
Topic: v2-100 -> v2-108: "obj1.obj2.objN" deref Topic is solved
Replies: 3
Views: 661

Re: v2-100 -> v2-108: "obj1.obj2.objN" deref Topic is solved

Helgef thank u! :D yeah u got exactly the idea and ur 1st variant code works as expected. :bravo: This approach was solely used to override some variables from an INI file, section names for object/prototype class names and keys for properties. Its definitely not a Map case scenario. e.g. sample IN...

Go to advanced search