![]() |
KnowBrainer Speech Recognition | ![]() |
Topic Title: Syntax help Topic Summary: I'm a new DVC script user and can't figure out the syntax for mouse moments Created On: 01/01/2023 07:16 PM Status: Post and Reply |
|
![]() |
![]() |
- Hale_on_wheels | - 01/01/2023 07:16 PM |
![]() |
![]() |
- Edgar | - 01/02/2023 10:35 AM |
![]() |
![]() |
- Hale_on_wheels | - 01/02/2023 03:38 PM |
![]() |
![]() |
- Lunis Orcutt | - 01/02/2023 01:07 PM |
![]() |
![]() |
- Hale_on_wheels | - 01/02/2023 03:44 PM |
![]() |
![]() |
- Lunis Orcutt | - 01/02/2023 04:50 PM |
![]() |
![]() |
- Hale_on_wheels | - 01/02/2023 05:10 PM |
![]() |
![]() |
- Hale_on_wheels | - 01/02/2023 05:14 PM |
![]() |
![]() |
- Lunis Orcutt | - 01/02/2023 06:19 PM |
![]() |
![]() |
- MDH | - 01/02/2023 08:03 PM |
![]() |
![]() |
- Lunis Orcutt | - 01/02/2023 08:21 PM |
![]() |
|||
Here is the script I wrote. I can't get it to work MouseMove 363, 850 ButtonClick1,1 Wait 100 MouseMove 405, 949 Wait 100 ButtonClick1,1 MouseMove 47, 885 ButtonClick1,1 Wait 100 If _arg1 = "Dissolve" then SendKeys "dissolve ------------------------- Thank you |
|||
|
|||
![]() |
|||
Do you have the DVC scripting documentation? I could not find "MouseMove" in documentation; try "SetMousePosition, relative_to, X_location, Y_location" (I find that a very brief wait is often necessary after this - "Wait 100"). "ButtonClick1,1" also look suspicious - there needs to be a space (" ") - "ButtonClick 1,1".
The "relative_to" values are: relative to the screen = 0; relative to the window = 1; relative to the current mouse position = 2 ------------------------- -Edgar |
|||
|
|||
![]() |
|||
I tried using the said mouse command and got a bunch of syntax errors. I'm sure it is user error here was the new attempt I got a total of 8 syntax errors. Everything seems to work before I put the set mouse position command in. I tried putting in spaces between the coordinates. I also tried putting his face between coordinates and number one just in case, but that did not seem to help. I also really appreciate your help so far. I'm just really bad at this, apparently. SetMousePosition 1,363,850 ButtonClick 1,1 Wait 100 SetMousePosition 1,405,949 ButtonClick 1,1 Wait 100 SetMousePosition 1,47,885 click ButtonClick 1,1 Wait 100 If _arg1 = "Dissolve" then SendKeys "dissolve"
------------------------- Thank you |
|||
|
|||
![]() |
|||
Welcome (See Mission Statement)
You are using legacy DVC scripting which works fine in Dragon but slightly limited. We recommend switching to Visual Basic which Dragon has supported since the turn-of-the-century and is more universally accepted. VB can be used in many other applications. Also note that if you are using KnowBrainer 2022 you can prevent errors and construct Dragon commands 20 times faster via KnowBrainer's patented VerbalBasic feature. Assuming you have defined your list, the following VBScript should work:
Sub Main SetMousePosition 1,363,850 Wait 0.1 ButtonClick 1,1 Wait 0.1 SetMousePosition 1,405,949 Wait 0.1 ButtonClick 1,1 Wait 0.1 SetMousePosition 1,47,885 Wait 0.1 ButtonClick 1,1 Wait 0.1 If ListVar2= "Dissolve" then param1 = "dissolve" End Sub ------------------------- Change "No" to "Know" w/KnowBrainer 2022 |
|||
|
|||
![]() |
|||
I tried your code and for some reason I keep getting syntax errors. Even though on using the Advanced Scripting feature. I'm sure this is just user error as I am not the most tech savvy. I am definitely interested in learning that language you referenced earlier. Knowbrainer looks like a cool tool. That being said, I would prefer to acquire some basic knowledge of the programming languages using before buying it. That way, I'm not fully reliant on the program and it was somewhat self-sufficient. I definitely looking at purchasing the program down the road though. Once I get a little more comfortable with how to make commands. ------------------------- Thank you |
|||
|
|||
![]() |
|||
click ButtonClick 1,1 is not a legal script and will not work in legacy or DVC. You need to remove the word “click”
Try creating a new Dragon Advanced-Scripting command and copy and paste our green text in between Sub Main and End Sub. We just successfully tested our command but note that we left your argument out because we have no way of defining it on our side.
Larry Allen's Scripting for Dragon is the Bible for learning to create Advanced-Scripting commands but does not include DVC support
Our KnowBrainer Manual FREE includes a chapter on VerbalBasic which can be used in Dragon and KnowBrainer. It is also much simpler ------------------------- Change "No" to "Know" w/KnowBrainer 2022 |
|||
|
|||
![]() |
|||
Thank you for the resources I will look into those. I did try your script. This is the picture I got
------------------------- Thank you |
|||
|
|||
![]() |
|||
Here is the attached file with the screenshot. Sorry I have 3 monitors so it's a bit hard to take a screenshot.
------------------------- Thank you |
|||
|
|||
![]() |
|||
My apologies. It looks like I made a mistake in the argument. Change #2 to #1. It should be If ListVar1= "Dissolve" then param1 = "dissolve"
PLEASE do not take a picture of your entire desktop. It will barely fit on most of our screens. Just take a picture of the command window and you can even make that window a little smaller. I removed your screenshot because it's too large. To capture a snapshot of only your window press Alt+Prtsc ------------------------- Change "No" to "Know" w/KnowBrainer 2022 |
|||
|
|||
![]() |
|||
Or, to take a cropped image of the active window, use Windows Key+Shift+S (all at same time), then outline the portion of interest, let go of the keys, and it will be on your clipboard, then paste it (Ctrl+v).
MDH ------------------------- |
|||
|
|||
![]() |
|||
MDH,
This is a great and simple recommendation which seems to work in this forum. We just stole added your recommendation to the How to Attach Pictures ------------------------- Change "No" to "Know" w/KnowBrainer 2022 |
|||
|
FuseTalk Standard Edition v4.0 - © 1999-2023 FuseTalk™ Inc. All rights reserved.