[已解決]找不到錯誤,請幫忙debug一下

遇到了问题?请先进行搜索(中文和英文),然后在此提问

Moderators: tmplinshi, arcticir

sanwu
Posts: 1
Joined: 28 Jul 2017, 19:13

[已解決]找不到錯誤,請幫忙debug一下

28 Jul 2017, 19:22

說明:用ctrl+左鍵點取一個5*12的長方矩陣

搞了半天不知道錯在那?
程式碼:

Code: Select all

	X = 730
	loop 12{
		Y = 590
		loop 5{
				MouseMove, X, Y
				send ^{LButton}
				Sleep, 100
				Y = Y+50
		}	X = X+40
	}
Last edited by sanwu on 29 Jul 2017, 04:06, edited 2 times in total.
kamil4402
Posts: 7
Joined: 29 Jul 2017, 01:15

Re: [求助]找不到錯誤,請幫忙debug一下

29 Jul 2017, 02:40

https://autohotkey.com/docs/Variables.htm

Code: Select all

X = 730
loop 12{
	Y = 590
	loop 5{
		MouseMove, X, Y
		send ^{LButton}
		Sleep, 100
		Y := Y+50  ; if you write Y = Y + 50, it asign string "T + 50" to Y
	} X := X+40
}
Guest

Re: [求助]找不到錯誤,請幫忙debug一下

29 Jul 2017, 03:40

謝謝回復,已解決,不過你那句英文看不太懂

Return to “请求帮助”

Who is online

Users browsing this forum: No registered users and 17 guests