Search found 252 matches

by Sam Cox
Sat May 09, 2009 12:51 pm
Forum: NeoBook Action Commands
Topic: Change the date from a file
Replies: 11
Views: 4530

Sorry then -- no can help.
-- Sam
by Sam Cox
Sat May 09, 2009 9:58 am
Forum: NeoBook Action Commands
Topic: Change the date from a file
Replies: 11
Views: 4530

Hello Alex, Try it yourself. To be safe in experiments, I made a copy of a file with out-of-date time stamps. In my case, I created a copy of a PDF file and named the copy X.PDF and verified (via Right-Click > Properties) that the time stamps are not current. The full path to my file is C:\Documents...
by Sam Cox
Sat May 09, 2009 6:44 am
Forum: NeoBook Action Commands
Topic: Change the date from a file
Replies: 11
Views: 4530

It's possible that the MS-DOS COPY command will do the job. Here's a Microsoft note explaining that COPY /B FILENAMEA +,, will update the time stamps. You can invoke the COPY command from Neobook.
-- Sam
by Sam Cox
Sat May 10, 2008 8:11 am
Forum: NeoBook Action Commands
Topic: Mix a phrase
Replies: 5
Views: 2691

Hello Alex,

I am not clear about your question. The instruction FileRead "[filename]" "[N]" "[variable]" reads the Nth line of the file named [filename].

-- Sam
by Sam Cox
Sat May 10, 2008 7:07 am
Forum: NeoBook Action Commands
Topic: Mix a phrase
Replies: 5
Views: 2691

Hi Alex, To generate every possible phrase from a seed phrase such as "I go to bed" is a problem in permutations. An old thread discussing permutations in Neobook is here . Since generating permutation tables is inherently a recursive process, Neobook is not well suited to the task. With H...
by Sam Cox
Sat Mar 29, 2008 3:17 pm
Forum: NeoBook Action Commands
Topic: Lots of If's
Replies: 5
Views: 3204

I once wrote a case statement as an NB5 function (no plugins). Here's a link to a forum post with the syntax. If you're interested, I can post the entire thing.
-- Sam
by Sam Cox
Sat Jan 05, 2008 3:43 pm
Forum: NeoBook Action Commands
Topic: X mins + [Time]
Replies: 4
Views: 2046

Without getting too involved, the problem can be addressed in these steps: 1) convert starting hours:minutes to minutes 2) add more minutes 3) normalize result 4) convert result back to hours:minutes Let's do this as a subroutine so it can be accessed whenever needed. The use model will be: .assumes...
by Sam Cox
Thu May 31, 2007 2:10 pm
Forum: NeoBook Action Commands
Topic: Delete Information in [Result]
Replies: 12
Views: 5956

Here is one possible solution that works by 1) breaking the multi-line text into individual lines, 2) processing each line, 3) reassembling the text. .let [ManyLines] be the complete text SetVar "[ManyLines]" "many lines of text" .let [LineSep] be the characters that separate lin...
by Sam Cox
Thu May 31, 2007 2:07 am
Forum: NeoBook Action Commands
Topic: Delete Information in [Result]
Replies: 12
Views: 5956

This code deletes all text before the first occurrence of the word "Test": SearchStr "Test" "[Result]" "[N-Test]" If "[N-Test]" ">" "1" StrDel "[Result]" "1" "[N-Test]-1" "[Result]" Endif Th...
by Sam Cox
Wed May 30, 2007 1:00 pm
Forum: NeoBook Action Commands
Topic: Delete Information in [Result]
Replies: 12
Views: 5956

Hello Alex, From the example text you provided, exactly what portion do you wish to keep? This is the text about Software. 1- How to concept a program ? 2- Which language ? 3- How many time ? First : How to concept a program ? It is easy to concept a program. It is not only maths and english but log...
by Sam Cox
Sat May 05, 2007 6:19 pm
Forum: NeoBook Action Commands
Topic: FolderBox
Replies: 3
Views: 2910

FolderBox "Choose folder:" "[Folder]" SetVar "[Folder]" "[Folder]\" StrReplace "[Folder]" "\\" "\" "[Folder]" This works by unconditionally slapping a "\" on the end and then replacing "\\" with &quo...
by Sam Cox
Wed May 02, 2007 1:51 pm
Forum: NeoBook Action Commands
Topic: Run command and .PPS Powerpoint files
Replies: 16
Views: 11934

Try Run "powerpnt.exe" "/s file.pps" "normal" "" "" This sequence used to work for me, but on my new computer it seems that I must provide the entire path. Anyway, try "powerpnt.exe" without the path. It should work. If not, maybe someone c...
by Sam Cox
Wed May 02, 2007 1:34 pm
Forum: NeoBook Action Commands
Topic: Run command and .PPS Powerpoint files
Replies: 16
Views: 11934

This works: SetVar "[PowerPoint]" "!C:\Program Files\Microsoft Office\OFFICE11\POWERPNT.EXE" SetVar "[SlideShow]" "!C:\Downloads\gordnationalgeographic(GAE).pps" Run "[PowerPoint]" "/s [SlideShow]" "Normal" "" "&quo...
by Sam Cox
Wed May 02, 2007 1:08 pm
Forum: NeoBook Action Commands
Topic: Run command and .PPS Powerpoint files
Replies: 16
Views: 11934

Can you provide all the parameters you are providing the Run command? Powerpoint recognized the "/s" command-line parameter as an instruction to start the slide show.

-- Sam
by Sam Cox
Fri Apr 27, 2007 1:32 pm
Forum: NeoBook Action Commands
Topic: Change Tooltip...
Replies: 2
Views: 2082

setvar "[pubtitle]" "new message"

Notice that "pubtitle" has only one "T".