Taking Commands Away Without Showing Their Replacement

Discuss the future of the AutoHotkey language
SOTE
Posts: 160
Joined: 15 Jun 2015, 06:21

Taking Commands Away Without Showing Their Replacement

02 Jan 2018, 02:45

I'm starting to look at AutoHotkey v2 more, but something that I noticed is the removal of many commands, without explaining what replaces them. This can clearly create confusion. While more experienced AutoHotkey programmers might be comfortable, this might not be the case for newer and casual users.

It would be great if the help file showed what replaced the old commands in the new version.
_3D_
Posts: 186
Joined: 29 Jan 2014, 14:40

Re: Taking Commands Away Without Showing Their Replacement

02 Jan 2018, 03:59

As v2 still alpha - documentation not yet changed and not complete.
Main differences:
1. Moving to function syntax stile

Code: Select all

MsgBox Hello World ;v1
MsgBox("Hello World")
2. Removed Deref (but still you can get variable value inside string using "%variable%")
3. Process commands moved to Process<Name>() functions
4. RegExMatch return object
------------
Actually no so major changes inside v2 - but v1 and v2 become completely different.
Documentation: https://lexikos.github.io/v2/docs/AutoHotkey.htm
AHKv2.0 use the future now.
guest3456
Posts: 2419
Joined: 09 Oct 2013, 10:31

Re: Taking Commands Away Without Showing Their Replacement

02 Jan 2018, 10:06

SOTE wrote:It would be great if the help file showed what replaced the old commands in the new version.
this doc lists the changes:
https://autohotkey.com/v2/v2-changes.htm

its on the website but not part of the help file. it probably should be part of the v2 help file

User avatar
jeeswg
Posts: 5140
Joined: 19 Dec 2016, 01:58
Location: UK

Re: Taking Commands Away Without Showing Their Replacement

02 Jan 2018, 13:04

- I wrote a conversion guide here:
AHK v1 to AHK v2 conversion tips/changes summary - AutoHotkey Community
https://autohotkey.com/boards/viewtopic ... 37&t=36787
- @_3D_: Btw, in earlier versions of AHK v2 alpha:
var := "%var2%"
used to be equivalent to:
var := var2
however, now they are not equivalent, the first just gives you literal text.
SOTE
Posts: 160
Joined: 15 Jun 2015, 06:21

Re: Taking Commands Away Without Showing Their Replacement

03 Jan 2018, 03:45

jeeswg wrote:- I wrote a conversion guide here:
AHK v1 to AHK v2 conversion tips/changes summary - AutoHotkey Community
https://autohotkey.com/boards/viewtopic ... 37&t=36787
- @_3D_: Btw, in earlier versions of AHK v2 alpha:
var := "%var2%"
used to be equivalent to:
var := var2
however, now they are not equivalent, the first just gives you literal text.
Jeeswg, I like this idea and checked out your post. Debatably, that is more of what is needed. A direct comparison of AHK v1 to AHK v2 that goes by each command, built-in variable, etc... changes. Of course AHK v2 isn't quite ready, but it would take the sting out of switching over or getting lost over how to do something that a person could do in AHK v1.

Return to “AutoHotkey v2 Development”

Who is online

Users browsing this forum: No registered users and 7 guests