I wish ahk v2 have local function Topic is solved

Get help with using AutoHotkey (v2 or newer) and its commands and hotkeys
fwejifjjwk2
Posts: 89
Joined: 10 Aug 2019, 01:49

I wish ahk v2 have local function

03 Jun 2020, 15:44

I wish ahk v2 have local function.
So many people use lot of gosub. It hard to understand.
swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

Re: I wish ahk v2 have local function  Topic is solved

03 Jun 2020, 16:03

it does have local functions

Code: Select all

myFunction() {
	localToMyFunction() {
		; does something
	}
	
	; does some more things

	localToMyFunction()
}
not sure where gosub is supposed to fit in all of this

Return to “Ask for Help (v2)”

Who is online

Users browsing this forum: Draken, Spikea and 71 guests