Page 1 of 1

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

Posted: 28 Jul 2017, 19:22
by sanwu
說明:用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
	}

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

Posted: 29 Jul 2017, 02:40
by kamil4402
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
}

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

Posted: 29 Jul 2017, 03:40
by Guest
謝謝回復,已解決,不過你那句英文看不太懂