Code: Select all
ListLines Off
#If, some_func()
~LButton Up::
ListLines Off
outputdebug hello world
return
#If
some_func()
{
ListLines Off
outputdebug 11
return 1
}
Code: Select all
ListLines Off
#If, some_func()
~LButton Up::
ListLines Off
outputdebug hello world
return
#If
some_func()
{
ListLines Off
outputdebug 11
return 1
}
Code: Select all
#SingleInstance force
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
;some code in autoexection section...
return ;end of autoexecution section (I need this return)
;section with hotkeys and timer-routines started...
;I want to show lines for that #If-statement
ListLines On
#If, some_func1()
~1::
outputdebug hello 1
return
#If
some_func1()
{
return 1
}
;I don't want to show lines for that #If-statement
ListLines Off
#If, some_func2()
~2::
outputdebug hello 2
return
#If
some_func2()
{
return 1
}
Code: Select all
;I want to show lines for that #If-statement
~1::
ListLines On
if (!some_func1())
return
outputdebug hello
return
some_func1()
{
return 1
}
;I don't want to show lines for that #If-statement
~2::
ListLines Off
if (!some_func2())
return
outputdebug hello
return
some_func2()
{
return 1
}
Users browsing this forum: pgeugene and 78 guests