Skip to content
게임

초딩용 [게임 프로그래밍] 008번

by 흑엽 posted Nov 13, 2016

숙제입니다!
아래 소스코드를..

0.봇만들기_프로그램.ahk 로..저장후 exe파일로 만드세요. 그외 숙제지시 사항은 http://ipc.pe.kr/27527 ☜007번 숙제 설명과 동일합니다.


!!!!!이하 소스코드 부분!!!!!!!

gui, add, text, x20 y5 w280 h20, (성우의 코딩교육용 프로그램-나중에 직접 만들것)
gui, add, text, x20 y25 w280 h20, 생성할 인공지능 로봇의 개수를 입력하세요!
gui, add, edit, x60 y46 w30 h20 v봇개수 , 0
gui, add, Button, x20 y75 w110 h20, 실행
gui, add, Button, x20 y105 w110 h20, 종료
gui, Show
return


Button실행:
{
 Gui,Submit,nohide
 봇개수 := "spawn bot " +  봇개수
  
 ; ControlSend, ,{Ins} ,  ahk_class LaunchUnrealUWindowsClient ; 콘솔창 열기(작동안함 주석처리)
 WinActivate, ahk_class LaunchUnrealUWindowsClient
 ControlFocus, ahk_class LaunchUnrealUWindowsClient
 send, {Ins}  ; 콘솔창 열기
 send, %봇개수%{enter} ; 봇 생성 명령어 입력
 send, {Ins}  ; 콘솔창 닫기
}
return


GuiClose:

{
 ExitApp
}
return


Button종료:
{
 ExitApp
}
return





Copyright ⓒ 성우 All rights reserved

Powered by SungWoo / Designed by SungWoo

sketchbook5, 스케치북5

sketchbook5, 스케치북5