예제 따라하기
회원들이 만든 예제 입니다. 잘 이해되지 않은 명령어를 직접 확인해보세요.
SimpsonAss | 7555842
2012.05.14 23:41
간단한 버튼이동 (GUI) 조회수 41,742









#singleinstance force

gui,add,button,xm     ym+30 w100 h24 vB1 gBTN1,확 인
gui,add,button,xm+100 ym+30 w100 h24 vB2 gBTN1,확 인
gui,add,button,xm+200 ym+30 w100 h24 vB3 gBTN1,확 인

gui,add,button,xm     ym+54 w100 h24 vB4 gBTN1,확 인
gui,add,button,xm+100 ym+54 w100 h24 vB5 gBTN1,확 인
gui,add,button,xm+200 ym+54 w100 h24 vB6 gBTN1,확 인

gui,add,button,xm+300 ym+30 w100 h24 vB20 gBTN,이동
gui,show
return

BTN:
	gui,submit,nohide
	guicontrol,-g,B20
	loop 140{
		guicontrol,move,B1,% "y" . 30-a_index
		if a_index >= 11
			guicontrol,move,B2,% "y" . 40-a_index
		if a_index >= 21
			guicontrol,move,B3,% "y" . 50-a_index
		if a_index >= 31
			guicontrol,move,B4,% "y" . 84-a_index
		if a_index >= 41
			guicontrol,move,B5,% "y" . 94-a_index
		if a_index >= 51
			guicontrol,move,B6,% "y" . 104-a_index
		sleep 1
	}
	guicontrol,+gBTN,B20
	return

BTN1:
	return

guiescape:
guiclose:
	exitapp
  • 필명
  • 레벨
  • 경험
  • 명성
  • SimpsonAss
  • 13,764
  • 348
  • 댓글
  • 가입
  • 활동
  • 17개
  • 236개
  • 5,271일
  • 120일
  • 신뢰
  • 친절
  • 인기
  • 지식
  • 기본학습
  • 도전과제
  • 회원등급
  • 회원성격
  • 0
  • 0
  • 일반회원
  • 잠수대작전
~~~~~~
글 5 RSS
알리바바
2022-01-30 | 조회 12,245
여의도김매력
2017-08-04 | 조회 16,782
SimpsonAss
AHK_B | 2012-05-14 | 조회 41,743
운장
AHK_B | 2012-05-10 | 조회 30,294