Search found 14 matches

by isurface
15 Jan 2014, 08:57
Forum: 其他
Topic: 关于中文子论坛
Replies: 17
Views: 44554

Re: 关于中文子论坛

这里挺好的,中英文都可以用。
我通过百度指数或者google趋势,发现不论在世界范围还是中国大陆,用AHK的人数都比AU3要多。不过AHK的论坛显得冷清。
by isurface
07 Nov 2013, 23:36
Forum: Ask for Help (v1)
Topic: Why a function name can't be followed by spaces?
Replies: 13
Views: 5718

Re: Why a function name can't be followed by spaces?

I means "printf("%s\n", "123" "abc") is not concatenation".
by isurface
07 Nov 2013, 02:51
Forum: Ask for Help (v1)
Topic: Why a function name can't be followed by spaces?
Replies: 13
Views: 5718

Re: Why a function name can't be followed by spaces?

MsgBox (this is not a function call) @isurface: That's not concatenation. It's a function call with a string containing format codes. Part of the library, not the language. It's also totally different to AutoHotkey's auto -concatenation. Thanks, you correct my mistakes, MsgBox is indeed a counter e...
by isurface
07 Nov 2013, 01:28
Forum: Ask for Help (v1)
Topic: Why a function name can't be followed by spaces?
Replies: 13
Views: 5718

Re: Why a function name can't be followed by spaces?

@Coco, @jethrow In fact, there is also a concatenation in C language. printf("%s\n", "123" "abc") It will output: 123abc However, printf("%s\n", str ("123")) will arises an error, if str is not a pointer to function . So I think AHK also can support space follow by function name. And the logic is ve...
by isurface
06 Nov 2013, 20:02
Forum: Ask for Help (v1)
Topic: Why a function name can't be followed by spaces?
Replies: 13
Views: 5718

Re: Why a function name can't be followed by spaces?

Nice, It's reasonable. I think the syntax of auto-concatenation is ugly.

Thank you.
by isurface
06 Nov 2013, 10:57
Forum: Ask for Help (v1)
Topic: Why a function name can't be followed by spaces?
Replies: 13
Views: 5718

Re: Why a function name can't be followed by spaces?

Coco wrote:one thing comes into mind: if (expression) vs function_name (args)
Thanks Coco.

But there is no point, the syntax of if(true), without space is valid in V2.
by isurface
06 Nov 2013, 10:44
Forum: Ask for Help (v1)
Topic: Why a function name can't be followed by spaces?
Replies: 13
Views: 5718

Why a function name can't be followed by spaces?

There is a comment is source code : Can't be a function definition or call without an open-parenthesis as first char found by the above.
Is there any problems with spaces?

Thanks.
by isurface
06 Nov 2013, 03:45
Forum: Wish List
Topic: The online document of AHK2 is out of date
Replies: 1
Views: 1517

The online document of AHK2 is out of date

WinGetProcessPath, WinGetList can't be found in the document, and WinGet still remain, which is removed from V2.
http://lexikos.github.io/AutoHotkey_L-D ... /index.htm

Could someone update them?

Thank you very much.
by isurface
02 Nov 2013, 02:46
Forum: Ask for Help (v2)
Topic: assignment in V2
Replies: 9
Views: 4983

Re: assignment in V2

Amazing, very concise. It looks like ASM.

Code: Select all

add, var, 2, 3
add(p, q) {
    return p + q
}
by isurface
02 Nov 2013, 02:26
Forum: Scripts and Functions (v1)
Topic: Writing to SCITE output panel
Replies: 1
Views: 2292

Writing to SCITE output panel

hi, I writed a simple function to output information to SCITE panel , it's useful for debug. Examples ; repeat three times, "#" means the head, "@`n" means the tail print("ABC", 3, "@`n", "#") ; output: #ABCABCABC@ ; Only repeat two times print("ABC", 2) ; output: ABCABC print("ABC", "###`n") ; outp...
by isurface
02 Nov 2013, 01:20
Forum: Ask for Help (v2)
Topic: assignment in V2
Replies: 9
Views: 4983

Re: assignment in V2

Thanks all, they are just what I wanted.

Hi Jethrow,

Could you explain this a bit more? What's "comma" means here? I have never seen this syntax.
jethrow wrote:

Code: Select all

Assign, var,
(
line1
line2
line3
)


Assign(p) {
	return p
}
by isurface
01 Nov 2013, 09:45
Forum: Ask for Help (v2)
Topic: assignment in V2
Replies: 9
Views: 4983

Re: assignment in V2

trismarck wrote:This works in 1.1

Code: Select all

var :=
(
"This is a string.
that is a very long string
and it spans multiple
lines. "
)
MsgBox, % var
Thanks, but V2 does not support this format.
by isurface
01 Nov 2013, 09:10
Forum: Ask for Help (v2)
Topic: assignment in V2
Replies: 9
Views: 4983

assignment in V2

Since V2 removed "=" assignment, I cannot use the following code.
var =
(
line1
line2
line3
}

but the replacement which I know is too complex. such as:
var := "line1`n"
. "line2`n"
. "line3`n"

Who can tell me a simple one?

Thanks.
by isurface
20 Oct 2013, 04:19
Forum: Off-topic Discussion
Topic: single-step debug in scite
Replies: 0
Views: 1981

single-step debug in scite

hi,
I'm very curious to know what's the basic principle of single-step debug in scite. Anyone who can help me?

Thanks,

Go to advanced search