Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

AutoHotkey v2 Alpha Release


  • Please log in to reply
870 replies to this topic
HotKeyIt
  • Moderators
  • 7439 posts
  • Last active: Jun 22 2016 09:14 PM
  • Joined: 18 Jun 2008

Thanks ;)



Verdlin
  • Members
  • 256 posts
  • Last active: Apr 29 2016 06:46 PM
  • Joined: 21 Dec 2012

You know what I would absolutely love to see in v2? A function that evaluates expressions in AHK syntax. For example, here's a rather common format for a function that evaluates an AHK expression and returns it as a var

 

Spoiler

 

To the best of my knowledge, this is the best approach that we can use, and it still requires ugly FileRead/Delete/Append operations. Maybe this request isn't such a good idea since the string that is passed into the function needs validation to ensure it is a real expression, and not a command, etc. Just throwing this idea out here...

 

My deepest apologies if I have posted this in the wrong section.


Scripts are written and tested using AHK_H 64w (unless otherwise specified).

CFlyout. EasyIni. Dynamic Label Execution (No Reload). Word Lookup.


Lexikos
  • Administrators
  • 9844 posts
  • AutoHotkey Foundation
  • Last active:
  • Joined: 17 Oct 2006

v2.0 isn't about new features, but about making any compatibility-breaking changes that are deemed necessary.  Your suggestion could be implemented in v1.x or v2.1+.  Or you could use AutoHotkey.dll or eval().



Verdlin
  • Members
  • 256 posts
  • Last active: Apr 29 2016 06:46 PM
  • Joined: 21 Dec 2012

Ah! Yes, I figured I may have missed the point of this thread. Thanks for the info! I'll post this in the suggestions section (I currently use and love AutoHotkey.dll, but it seems like overkill for this specific purpose. There are also many issues I've come across with compiled vs non-compiled).


Scripts are written and tested using AHK_H 64w (unless otherwise specified).

CFlyout. EasyIni. Dynamic Label Execution (No Reload). Word Lookup.


SAPlayer
  • Members
  • 403 posts
  • Last active: Apr 11 2014 04:45 PM
  • Joined: 06 Nov 2012

I've got some questions on v2:

  • Why will commands like Progress or SplashImage and so on be removed?
  • When will it be fully released (estimated)?
  • Will there be an ANSI version (I have to use a dll which is ANSI-only)?

 

 

Thanks in advance

SAPlayer



Lexikos
  • Administrators
  • 9844 posts
  • AutoHotkey Foundation
  • Last active:
  • Joined: 17 Oct 2006
  • Progress and SplashImage are redundant.  You can recreate those functions with the Gui commands if you like.
  • When it's done.
  • No.  You can call an ANSI dll from the Unicode verison.


SAPlayer
  • Members
  • 403 posts
  • Last active: Apr 11 2014 04:45 PM
  • Joined: 06 Nov 2012
  • Ok, then maybe I'll write my own function for this ^^
  • I mean, will it be this year, next year or in 20 years? Can you maybe make it a little bit more exact?
  • How can this be done? Is this also possible in AHK_L?

 

Thank you



Lexikos
  • Administrators
  • 9844 posts
  • AutoHotkey Foundation
  • Last active:
  • Joined: 17 Oct 2006

I think you missed the point of "when it's done."

 

DllCall - yes, see Script Compatibility.



TLM
  • Administrators
  • 3864 posts
  • Last active:
  • Joined: 21 Aug 2006
Is it true RegEx shorthand will be removed? Sorry if this has already been asked.

Posted Image

don't duplicate, iterate!


Lexikos
  • Administrators
  • 9844 posts
  • AutoHotkey Foundation
  • Last active:
  • Joined: 17 Oct 2006

Probably not.



Lexikos
  • Administrators
  • 9844 posts
  • AutoHotkey Foundation
  • Last active:
  • Joined: 17 Oct 2006
v2.0-a044-6202b4c:
  • Merged v1.1.12.00.
  • Merged v1.1.13.00 (no actual changes).


HotKeyIt
  • Moderators
  • 7439 posts
  • Last active: Jun 22 2016 09:14 PM
  • Joined: 18 Jun 2008

Thanks ;)



Larctic
  • Members
  • 303 posts
  • Last active: May 10 2016 04:56 PM
  • Joined: 21 Jul 2012
I ask, now how do we let the script continue? 
Script does not automatically complete continuing condition, 
But I want it to run continuously, 
The #Persistent command can not be used.
#NoTrayIcon
Return
Test:  ; AHK_H V2 DLL Call
MsgBox Test
Return


Verdlin
  • Members
  • 256 posts
  • Last active: Apr 29 2016 06:46 PM
  • Joined: 21 Dec 2012

As I understand it per the doc at: http://l.autohotkey.net/v2-changes.htm

 

Scripts are "persistent" while at least one of the following conditions is satisfied:

  • At least one hotkey or hotstring has been defined by the script.
  • At least one message monitor is active (installed by OnMessage).
  • At least one Gui is visible.
  • At least one script timer is currently enabled.
  • The tray icon is visible and its menu has custom items.

If the last script thread finishes or a Gui is closed or destroyed and none of the above conditions are satisfied, the script terminates.


Scripts are written and tested using AHK_H 64w (unless otherwise specified).

CFlyout. EasyIni. Dynamic Label Execution (No Reload). Word Lookup.


Larctic
  • Members
  • 303 posts
  • Last active: May 10 2016 04:56 PM
  • Joined: 21 Jul 2012

Yes, the above conditions are not met, but I still want to continue running scripts. Thanks.