![]() |
KnowBrainer Speech Recognition | ![]() |
Topic Title: How to write a command for making the mouse triple-click, and how to have multiple "SendKeys" parts in the same "if ListVar1" line? (or another way to do this) Topic Summary: Created On: 02/10/2022 11:45 AM Status: Post and Reply |
|
![]() |
![]() |
- brainerfan | - 02/10/2022 11:45 AM |
![]() |
![]() |
- Lunis Orcutt | - 02/10/2022 07:01 PM |
![]() |
![]() |
- Edgar | - 02/11/2022 07:19 PM |
![]() |
|
Noticed ButtonClick 1,3 (which I used way back) doesn't work when making commands in Dragon, and gives me an error. How would I do this?
I'm using it in something like this:
if ListVar1 = "testing" then ButtonClick 1,1 then SendKeys "^s"
...But I don't know how to add more than one "SendKeys" macro after the "then" part (and something like "if ListVar1 = "testing" then SendKeys "^s" then Wait 0.1 then ButtonClick 1,1 then SendKeys "^f"" doesn't work).
Is there a way to add multiple series of "SendKeys" (including "Wait" parts) in an if ListVar1 command? If so, how would I do this? |
|
|
|
![]() |
|
Have you tried dumbing it down with something like the following:
Sub Main ButtonClick 1,3 'we don't know what this does Wait 0.1 SendKeys "^s" Wait 0.1 ButtonClick 1,1 Wait 0.1 SendKeys "^f" End Sub ------------------------- Change "No" to "Know" w/KnowBrainer 2020 |
|
|
|
![]() |
|
if ListVar1 = "testing" then ButtonClick 1,1 then SendKeys "^s"
...But I don't know how to add more than one "SendKeys" macro after the "then" part You should probably learn where the documentation is for Dragon®’s Basic: https://www.nuance.com/products/help/dragon/dragon-for-pc/scriptref/Content/vbs/speechlinks_basic_language.htm If ListVar1 = "testing" Then ' do all the things that you need to do ButtonClick 1, 1 ButtonClick 1, 1 ButtonClick 1, 1 ' do it three times in a row if ' ButtonClick 1, 3 ' is not accepted (I don't recall it ever being acceptable) ' you could also do: ' ButtonClick 1, 2 ' ButtonClick 1, 1 SendKeys "^s", 1 End If
------------------------- -Edgar |
|
|
FuseTalk Standard Edition v4.0 - © 1999-2022 FuseTalk™ Inc. All rights reserved.