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

Post a reply


In an effort to prevent automatic submissions, we require that you complete the following challenge.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :| :mrgreen: :geek: :ugeek: :arrow: :angel: :clap: :crazy: :eh: :lolno: :problem: :shh: :shifty: :sick: :silent: :think: :thumbup: :thumbdown: :salute: :wave: :wtf: :yawn: :facepalm: :bravo: :dance: :beard: :morebeard: :xmas: :HeHe: :trollface: :cookie: :rainbow: :monkeysee: :monkeysay: :happybday: :headwall: :offtopic: :superhappy: :terms: :beer:
View more smilies

BBCode is ON
[img] is OFF
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: [已解決]找不到錯誤,請幫忙debug一下

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

Post by Guest » 29 Jul 2017, 03:40

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

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

Post by kamil4402 » 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
}

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

Post by sanwu » 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
	}

Top