Code: Select all
Total := 30 ; for example
nUp := 6 ; for example select 6 items
t := 1
While t <= nUP
{
Random, Ran, 1, %Total%
if Ran not in %numbers%
numbers .= Ran ",", t ++
}
MsgBox %numbers%
Code: Select all
Total := 30 ; for example
nUp := 6 ; for example select 6 items
t := 1
While t <= nUP
{
Random, Ran, 1, %Total%
if Ran not in %numbers%
numbers .= Ran ",", t ++
}
MsgBox %numbers%
Code: Select all
Gui, -Caption -Sysmenu +AlwaysOnTop +0x40000
Gui, Show, w300 h300
Return
GuiClose:
ExitApp
Code: Select all
FileRemoveDir, C:\My_Folder\, 1
Code: Select all
NumPut(0, icon_info, 4) ; xHotspot
NumPut(0, icon_info, 8) ; yHotspot
Code: Select all
if not A_IsAdmin
Run, *RunAs C:\file.bat
else
Run, C:\file.bat
Code: Select all
if not A_IsAdmin
Run, *RunAs C:\file.bat, c:\
else
Run, C:\file.bat, c:\