Source language: Translate to:

Progress bar

Questions about using NeoBook's scripting language

Moderator: Neosoft Support

Progress bar

Postby HackinHoodLogicsTm » Wed Nov 27, 2013 4:02 pm

:P Please can any one help me make a progress bar. Thanks in advance.
I am proud to be a Neobooker!!!
www.neosoftware.com
Special Thanks To
Mr. David Riley
User avatar
HackinHoodLogicsTm
 
Posts: 120
Joined: Wed Aug 28, 2013 7:03 am
Location: Ghana

Re: Progress bar

Postby Neosoft Support » Wed Nov 27, 2013 10:55 pm

NeoSoft Support
Neosoft Support
NeoSoft Team
 
Posts: 5602
Joined: Thu Mar 31, 2005 10:48 pm
Location: Oregon, USA

Re: Progress bar

Postby HackinHoodLogicsTm » Wed Nov 27, 2013 11:29 pm

Thanks. Pls how do i make a script that upon closing it will search for a word and replace them with a diferent word. Thanx in advance
I am proud to be a Neobooker!!!
www.neosoftware.com
Special Thanks To
Mr. David Riley
User avatar
HackinHoodLogicsTm
 
Posts: 120
Joined: Wed Aug 28, 2013 7:03 am
Location: Ghana

Re: Progress bar

Postby Neosoft Support » Thu Nov 28, 2013 12:38 pm

Search for a word where? In a file?
NeoSoft Support
Neosoft Support
NeoSoft Team
 
Posts: 5602
Joined: Thu Mar 31, 2005 10:48 pm
Location: Oregon, USA

Re: Progress bar

Postby HackinHoodLogicsTm » Fri Nov 29, 2013 11:51 am

Hi, i mean search for a word in a text entry and replace them with a different word.
I am proud to be a Neobooker!!!
www.neosoftware.com
Special Thanks To
Mr. David Riley
User avatar
HackinHoodLogicsTm
 
Posts: 120
Joined: Wed Aug 28, 2013 7:03 am
Location: Ghana

Re: Progress bar

Postby CN_Iceman » Fri Nov 29, 2013 1:51 pm

From NeoBook Help...

StrReplace
Purpose: Replace all occurrences of a character or substring within a string.
Category: Strings
Syntax: StrReplace "string" "old chars" "new chars" "variable" "options"
string - The original string.
old chars - The characters to replace.
new chars - The replacement characters.
variable - The name of a variable to store the modified string.

options - Enter "CaseSensitive" here to search using the exact characters entered. Leave this parameter blank to perform a case insensitive search (upper and lower case characters are treated the same).

Example: The following example replaces each occurrence of the word "dog" in the source string with "cat":

StrReplace "My dog is a good dog." "dog" "cat" "[Result]" ""

You can also use this Action to remove a character by leaving the replacement characters parameter empty. For example:

StrReplace "My doggy is a good doggy." "gy" "" "[Result]" ""

Greetings.
Greetings/Saludos, Jose.
www.icemansoft.es
User avatar
CN_Iceman
 
Posts: 297
Joined: Tue Mar 01, 2011 11:04 am
Location: España

Re: Progress bar

Postby HackinHoodLogicsTm » Sat Nov 30, 2013 1:56 am

Hi. It does not work when i try to replace two more words with the strreplace. Please i am try to make an application that requires to replace 20 words. Please can any help. Thanx:P
I am proud to be a Neobooker!!!
www.neosoftware.com
Special Thanks To
Mr. David Riley
User avatar
HackinHoodLogicsTm
 
Posts: 120
Joined: Wed Aug 28, 2013 7:03 am
Location: Ghana

Re: Progress bar

Postby HPW » Sat Nov 30, 2013 2:10 am

Show your code. We can not guess what you are doing.
Hans-Peter
User avatar
HPW
 
Posts: 2516
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Re: Progress bar

Postby HackinHoodLogicsTm » Sat Nov 30, 2013 5:41 am

Hi, thanks guys for your replies, i had to do it in this way.

Code: Select all
Filesavebox "save files" "Text files|*.txt" "[textdir]" "[compile]"
filewrite "[compile].txt" "All" "[text entry]"
fileread "[comile].txt" "All" "[text]"
strreplace "[text]" "deck" "pc" "[text1]"
filewrite "[compile].txt" "All" "[text1]"


and i had to change the variable to store the other word like "[text2]" then it worked as i wanted. Thanx to all contributions
I am proud to be a Neobooker!!!
www.neosoftware.com
Special Thanks To
Mr. David Riley
User avatar
HackinHoodLogicsTm
 
Posts: 120
Joined: Wed Aug 28, 2013 7:03 am
Location: Ghana


Return to NeoBook Action Commands

Who is online

Users browsing this forum: No registered users and 1 guest

cron