Germany
Asked — Edited
Resolved Resolved by WBS00001!

Scripts Dont Work

Hello DJ, follow Scripts dont work: Exec(C:\Windows\Notepad.exe)

Browser(http://www.google.com)

FileWrite(c:\temp\mylog.txt, My Variable: + $x)

FileWriteLine(c:\temp\mylog.txt, My Variable: + $x)

And when SpeakRSS is active, I can not stop using a voice command it. The voice control reacts to a command when Peak RSS is active. I will stop the RSS with Spoeak Command.

Thanks


ARC Pro

Upgrade to ARC Pro

ARC Pro is your gateway to a community of like-minded robot enthusiasts and professionals, all united by a passion for advanced robot programming.

#1  

If you look at all of these, they all contain paths to things. What I do normally is something like this


$pathtoexecute = "C:\Windows\Notepad.exe")
EXEC($pathtoexecute)

or


$url = "http://www.google.com"
Browser($url)

This is normally done because I have a script that launches EXE's and I call this script from other scripts after setting the executable that needs to be run based on the action that has been requested. I also sometimes need to concatenate the data needed for identifying the exe which can be done more easily in a variable.

I haven't been in the scripting mode for quite some time, but these are the things I remember about this.

Germany
#2  

Thanks for your answer, I'm looking for a way actually a file with voice command to open, to dictate my notes, and save the file. That's why I use these commands tested only once to work me to the destination. Unfortunately, without success.

#3  

Referring to the code: It seems that the quote mark you are using is the wrong kind. This is one of yours . The correct one looks slightly different "

The quote I used is on the key with the single quote on my keyboard. Apparently the one you used has a different character code. When I paste your lines into a script, the quote marks slant to the left on the left side and the right on the right side.

When I substituted the double quote marks from my keyboard, the lines worked properly.

EDIT Looking into it further it appears the double quotes you used are hex 93 and hex 94 whereas the correct character should be hex 22.

#4  

You want to use voice commands in ARC to open a txt file and dictate anything you want to it and save the file? I don't think you can do that with ARC. The voice commands are designed for specific things not open ended text to speech. And the file reading and writing is designed for specific things as well, like specific variables and not open ended text to speech.

If you want to dictate notes perhaps a product like Dragon Naturally Speaking would be a better application.

Germany
#5  

at WBS00001, the scripts I have copied from ARC, the ARC the quotes are all correct, I've just tried this. The error occurs only when copying in the browser.

at JustinRatliff okay it may be that I can not get the realized, but that still does not explain why the instructions are given in the EZB with me not working.

Germany
#7  

Hello DJ, thanks for your help, i learn every day. Now work through your help with the keyboard layout, the following commands:


Exec("C:\Users\Sven\Desktop\Notepad.exe")

Browser("http://www.google.de")


Thanks also to WBS00001

but here i have also a problem:

$date   - work
 $month  - work
 $year  - work
 $day  - work
 $dayName  - work not  ?
 $hour - work
 $minute  - work
 $second  - work
 $monthName  - work not  ?

Start
1: Say ("$dayName")
> Error on line 1: Missing String Quotes or Invalid Expression: Mittwoch
Done (00:00:00.0259952)

Why not work with all scripts with (name) ?

and

when "SpeakRSS" is active, I can not stop using a voice command it. The voice control reacts to a command when Peak RSS is active. I will stop the "SpeakRSS" with a Speak Command. Is this a Bug?

and my last Problem at the Moment:

SoundBoard PC the command that I fix the volume?

#8  

Take the quotes out

Say ($dayName)

Also, when using say, I always pause the speech recognition and then unpause it after the speech has completed.

Saywait is the one I use instead of say.