티스토리 뷰

Autohotkey(오토핫키)

#19.오토핫키 Random

코드모아 2018. 1. 6. 21:01

#19.오토핫키 Random





안녕하세요 코드모아 입니다.


 1월 6일  #19.오토핫키 Random 에대해 강의하겠습니다.




Random : 특정범위내에서 무작위로 추출

즉, 1~30 범위중 랜덤(무작위)으로 선택






Random






문법 : 



Random,변수,최솟값,최댓값




Random범위

최솟값 ≤ 변수 ≤ 최댓값





ex)


Gui, Add, Button, x12 y29 w140 h50 gbutton,랜덤뽑기

Gui, Add, Text, x22 y9 w130 h20 , #19.오토핫키 Random

Gui, Show, w165 h90,#19.오토핫키 Random

return


button:

Random,R,1,100

msgbox,%R%

return


GuiClose:

ExitApp





#19.오토핫키 Random을 마치겠습니다.

다음강의는 #20.오토핫키 Ini파일쓰기/읽기 에대해 강의해보겠습니다.

질문 및 궁금한점은 댓글로남겨주세요.



'Autohotkey(오토핫키)' 카테고리의 다른 글

#21.오토핫키 체크박스  (0) 2018.01.08
#20.오토핫키 Ini파일쓰기/읽기  (0) 2018.01.07
#18.오토핫키 goto/gosub  (0) 2018.01.05
#17.오토핫키 SetTimer  (0) 2018.01.05
#16.오토핫키 Listbox/Listview  (1) 2018.01.04
댓글