Run a random exe file
Moderator: Neosoft Support
-
- Posts: 5
- Joined: Mon Oct 15, 2007 7:56 am
Run a random exe file
I have 5 files in a folder called "RAINBOW":
file1.exe
file2.exe
file3.exe
file4.exe
file5.exe
I want to create an exe file that will have a button that, when pressed, will run (at random) one of the 5 exe files.
I only have a very basic knowledge of NeoBook, so could you please be explicit about exactly what I need to put in the "Actions" field. Unfortunately, I get very confused when reading the majority of posts on this forum!
Much appreciated
file1.exe
file2.exe
file3.exe
file4.exe
file5.exe
I want to create an exe file that will have a button that, when pressed, will run (at random) one of the 5 exe files.
I only have a very basic knowledge of NeoBook, so could you please be explicit about exactly what I need to put in the "Actions" field. Unfortunately, I get very confused when reading the majority of posts on this forum!
Much appreciated
- smartmedia
- Posts: 889
- Joined: Fri Apr 01, 2005 6:50 am
- Location: Hellas
- Contact:
Hi...
Try this pub..
Save the all code in a file and open it from Neobook.
Try this pub..
Save the all code in a file and open it from Neobook.
Code: Select all
NBW Publication Source File
(C)1993-2008 NeoSoft Corp.
Title=Untitled NeoBook Publication
Language=US
NeoBookVer=5,60
ScreenColors=16777216
ScreenWidth=320
ScreenHeight=200
BkndColor=0
ScreenAutoSize=Yes
LinkColor=16711680
WindowStyle=0
WindowOrder=0
WindowPos=0
WindowProps=31
BiDiMode=0
UseUpdateTimer=Yes
ReturnTime=60
ShapeTransColor=536870912
CompileType=0
MediaType=0
FilesIncluded=1
FontsIncluded=2
CopyExternalFiles=No
SetupMedia=3
SetupInstDir=C:\MyProgram
SetupTitle=Setup
SetupColors=16711680|0|65535
VersionMajor=1
VersionMinor=0
VersionRelease=0
VersionBuild=0
CustomFontName=Arial
CustomFontSize=9
CustomFontStyle=0
CustomCharset=1
CacheSize=30
ExtractOp=132
L_OK=OK
L_CANCEL=Cancel
L_YES=Yes
L_NO=No
L_CLOSE=Close
L_ERRORTITLE=Error
L_FINDTITLE=Find
L_FINDPROMPT=Find &What
L_FINDFIRST=&Find First
L_FINDNEXT=Find &Next
L_FINDERROR=Search text not found.
L_PWORDTITLE=Password required
L_PWORDMSG=Before continuing, you must first|enter the correct password.
L_PWORDPROMPT=&Password:
L_PWORDERROR=That's not the right password!
L_MEDIAERROR=In order to play this type of file you must install|the appropriate multimedia hardware and/or|software.
L_INTERNETERROR=Unable to locate Internet Browser software.
L_ABORTFUNCTION=Do you want to cancel this function?
L_EXTRACTERROR=This file could not be extracted and cannot be played.
L_INSTDIRPROMPT=Please enter the drive and directory where you would like this program to be installed. To accept the default drive and directory, simply press Enter.
L_INSTFOLDERPROMPT=Do you wish to create a program folder?
L_INSTRUNPROMPT=Do you want to run
L_INSTDISKPROMPT=Please insert disk #
L_INSTDISKERROR=That's not the correct disk, try again.
L_INSTGENERROR=The installation has terminated.
L_INSTEXITPROMPT=Do you really want to cancel the installation?
L_INSTWINTITLE=Setup
L_INSTPROGTITLE=Extracting Files...
L_SENDEMAIL=Sending Mail...
L_MAILSERVER=Please enter the name of your outgoing email server:
L_COPY=Copy to Clipboard
L_SELECTALL=Select All
L_DONWLOADFILE=Downloading: %s
L_PLEASEWAIT=Please wait...
TrayMenuBegin
MenuName=TrayOpen
MenuText=Open
MenuState=3
MenuKey=0
MenuAction=SetVar "[WindowState]" "Normal"
MenuName=TrayExit
MenuText=Exit
MenuState=3
MenuKey=0
MenuAction=Exit "" ""
MenuEnd
MasterPage
NewPage=New Page
PageStyle=0
PageColor=16777215
PageGradient1=16711680
PageGradient2=255
PageGradientDir=1
WallpaperStyle=0
ObjectType=3
Name=PushButton1
X=89
Y=73
W=133
H=40
Anchor=0
Text=Run random exe
Align=2
ImageStyle=0
XPTheme=Yes
ObjAction=Random "5" "[Rnd]"¶While "[Rnd]" "=" "0"¶Random "5" "[Rnd]"¶EndWhile¶Run "[PubDir]file[Rnd].exe" "" "Normal" "" ""
LineColor=0
LineWidth=1
LineStyle=0
FillColor=12632256
FillPattern=0
Font=Arial
FontSize=10
FontStyle=0
FontCharset=1
TextColor=0
TabOrder=2
-
- Posts: 5
- Joined: Mon Oct 15, 2007 7:56 am
- smartmedia
- Posts: 889
- Joined: Fri Apr 01, 2005 6:50 am
- Location: Hellas
- Contact:
-
- Posts: 5
- Joined: Mon Oct 15, 2007 7:56 am
notepad
Hello again,
Could you clarify what you meant by "open the notepad"
- is notepad a component within Neobook, or is a completely different application?
Could you clarify what you meant by "open the notepad"
- is notepad a component within Neobook, or is a completely different application?
-
- Posts: 5
- Joined: Mon Oct 15, 2007 7:56 am
notepad
I tried to open the notepad document that I've saved. However, when I used NeoBook to open the file, it displayed the following error message:
"C:\RunRndExe.pub
This is not a valid NeoBook publication"
Any advice would be most welcome
"C:\RunRndExe.pub
This is not a valid NeoBook publication"
Any advice would be most welcome
-
- Posts: 5
- Joined: Mon Oct 15, 2007 7:56 am