Source language: Translate to:

Internet

Questions about using NeoBook's scripting language

Moderator: Neosoft Support

Internet

Postby Neobook » Sun Oct 08, 2006 12:49 am

Could you help me for a program which I cannot make who conscist to make a racoucie for Internet to explore. I explain you, if in my entry of text I write www.google.fr and well with the function InternetLink it will send this page to me, but me what I want it is that it can which site authorize or not, therefore if I mark www.yahoo.fr, sachan that there is the word yahoo inside, a alerbox will open and to tell me “this site” parcontre is not authorized it if I mark www.google.fr, if in my sentence there is the word “google” then it will take its InternetLink and it will direct me towards google.fr

I send the .pub to you that I in tried to make



Internet.pub:



NBW Publication Source File
(C)1993-2006 NeoSoft Corp.
Language=US
NeoBookVer=5,51
ScreenColors=16777216
ScreenWidth=640
ScreenHeight=480
BkndColor=0
LinkColor=16711680
WindowStyle=0
WindowOrder=0
WindowPos=0
WindowProps=25
BiDiMode=0
AllowESC=No
UseUpdateTimer=Yes
NoCtrlAltDel=Yes
NoPrintScrn=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
Variables=[1]¶
VersionMajor=1
VersionMinor=0
VersionRelease=0
VersionBuild=0
CustomFontName=MS Sans Serif
CustomFontSize=8
CustomFontStyle=1
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=65535
PageGradient1=16711680
PageGradient2=255
PageGradientDir=1
WallpaperStyle=0
EffectSpeed=0
ObjectType=3
Name=PushButton1
X=220
Y=173
W=207
H=84
Anchor=0
Text=GO
Align=2
ImageStyle=0
ObjAction=If "[1]" ">=" ""¶setvar "[1]" "[www.google.fr]"¶InternetLink "[1]"¶Else¶AlertBox "" "NON !!!"¶EndIf
LineColor=0
LineWidth=1
LineStyle=0
FillColor=12632256
FillPattern=0
Font=Arial
FontSize=10
FontStyle=0
FontCharset=1
TextColor=0
TabOrder=1
ObjectType=9
Name=Text_Entry
X=109
Y=69
W=470
H=32
Anchor=0
VarName=[1]
EditLen=0
LineColor=0
LineWidth=1
LineStyle=0
FillColor=16777215
FillPattern=0
Font=Arial
FontSize=10
FontStyle=0
FontCharset=1
TextColor=0
TabOrder=2
ObjectType=8
Name=Text4
X=51
Y=73
W=40
H=30
Anchor=0
Font=Arial
FontSize=10
FontStyle=0
FontCharset=1
TextColor=0
Text={\rtf1\ansi\deff0\deftab254{\fonttbl{\f0\fnil\fcharset1 Arial;}}{\pard{\ql\li0\fi0\ri0\sb0\sl\sa0 \plain\f0\fs20\cf0 Link :}}}
HMargin=1
VMargin=1
LineColor=16777215
LineWidth=1
LineStyle=0
FillColor=65535
FillPattern=0
TabOrder=3


Thanks
Neobook
 
Posts: 131
Joined: Sat Jul 01, 2006 7:07 am

Postby Alex » Mon Oct 09, 2006 8:26 am

Sorry Neobook, I can't help you


Alex
Alex
 
Posts: 745
Joined: Sat Mar 04, 2006 4:53 am

Postby Neosoft Support » Mon Oct 09, 2006 12:06 pm

Try changing the actions in your "GO" button to the following:

Code: Select all
If "[1]" "=" "www.google.fr"
  InternetLink "[1]"
Else
  AlertBox "Error" "This site is not allowed."
EndIf


If you plan on having a large number of approved sites, then you might want to try setting up a database with the NeoBookDB or similar plug-in to store a list of authorized sites.
NeoSoft Support
Neosoft Support
NeoSoft Team
 
Posts: 5593
Joined: Thu Mar 31, 2005 10:48 pm
Location: Oregon, USA

Postby Neobook » Tue Oct 10, 2006 9:32 am

Thanks

Can you tell me How to do a NeobookDB for The Internet website Filter ??

Thanks
Neobook
 
Posts: 131
Joined: Sat Jul 01, 2006 7:07 am


Return to NeoBook Action Commands

Who is online

Users browsing this forum: No registered users and 1 guest