KnowBrainer Speech Recognition
Decrease font size
Increase font size
Topic Title: Create macro to execute the L on keyboard
Topic Summary:
Created On: 07/01/2022 04:56 PM
Status: Post and Reply
Linear : Threading : Single : Branch
 Create macro to execute the L on keyboard   - Robert Snow - 07/01/2022 04:56 PM  
 Create macro to execute the L on keyboard   - Lunis Orcutt - 07/01/2022 05:08 PM  
 Create macro to execute the L on keyboard   - Robert Snow - 07/03/2022 02:25 PM  
 Create macro to execute the L on keyboard   - noblemd - 07/03/2022 02:49 PM  
 Create macro to execute the L on keyboard   - Robert Snow - 07/03/2022 04:13 PM  
 Create macro to execute the L on keyboard   - noblemd - 07/03/2022 05:27 PM  
 Create macro to execute the L on keyboard   - noblemd - 07/03/2022 05:41 PM  
 Create macro to execute the L on keyboard   - Robert Snow - 07/03/2022 06:43 PM  
 Create macro to execute the L on keyboard   - Robert Snow - 07/03/2022 06:53 PM  
 Create macro to execute the L on keyboard   - Robert Snow - 07/23/2022 02:23 PM  
 Create macro to execute the L on keyboard   - Robert Snow - 07/04/2022 01:10 PM  
Keyword
 07/01/2022 04:56 PM
User is offline View Users Profile Print this message

Author Icon
Robert Snow
Top-Tier Member

Posts: 261
Joined: 04/18/2017

Windows 10 Pro

Dragon version 15.61

SketchUp Pro 22.0.354 64bit

 

I can call up different tools using the keyboard I type in a single key

L would bring up my line drawing tool.


What I have tried in the Command Browser was the following, which did not work:

myCommand Name: Draw line

Description: Draw a line in SketchUp

Group: SketchUp


Application Specific: SketchUp Application

Command Type: Auto-Tax (Text and Graphics)

Content: L


I'm not even sure if I'm going to right direction.

Bob



-------------------------

Robert Snow
Germantown, WI



 07/01/2022 05:08 PM
User is online View Users Profile Print this message

Author Icon
Lunis Orcutt
Top-Tier Member

Posts: 40989
Joined: 10/01/2006

Try changing your Text & Graphics command to an Advanced-Scripting macro. It would look as follows:

 

Sub Main

SendKeys "l"

End Sub

 

If you prefer, you can optionally create a step-by-step command



-------------------------

Change "No" to "Know" w/KnowBrainer 2022
Trial Downloads
Dragon/Sales@KnowBrainer.com 
(615) 884-4558 ex 1



 07/03/2022 02:25 PM
User is offline View Users Profile Print this message

Author Icon
Robert Snow
Top-Tier Member

Posts: 261
Joined: 04/18/2017

I can't find the information I'm looking for. I might have a better shot at what I'm doing if I could find the format when I want to create a macro.

Example:

Sub Main
SendKeys "L"
End Sub

this is more simple in nature. I want to get understanding onto how I might add additional commands are action. Our even a if statement. I found many topics and Dragon referring to using the Command Browser and all the various commands. But nothing regarding the basic structure of the macro.

Bob



-------------------------

Robert Snow
Germantown, WI

 07/03/2022 02:49 PM
User is offline View Users Profile Print this message

Author Icon
noblemd
Power Member

Posts: 68
Joined: 08/09/2019

'#Language "WWB-COM" = WinWrap Basic
There are also other Dragon specific commands.

Every WinWrap Basic command is listed here (with an example for each command): 

https://www.winwrap.com/web2/basic/#!/ref/WWB-doc_language_def.htm

 

Examples that use Debug.Print

 

'#Language "WWB-COM"
Sub Main
    Debug.Print CSByte(1.6) ' 2
End Sub
You can substtute 
MsgBox - in the above convert the number to a String by using CStr()
as in
Sub Main
    MsgBox CStr(CSByte(1.6)) ' 2
End Sub


-------------------------

Michael Noble
-------------------------
Using Sony WH1000XM5 Headphones
DP 16 Pro /  Law Enforcement / Legal
Windows 11 Pro for WS Latest Update / MS Office 365



 07/03/2022 04:13 PM
User is offline View Users Profile Print this message

Author Icon
Robert Snow
Top-Tier Member

Posts: 261
Joined: 04/18/2017

This what I;m looking for. How to under stand the formate to use the cobe. The structure.Thw following is way over my head but there must be standatrs on how to acompish this. I need a site or book or examples. I was hoping Dragon would have a few examples, I could learn with. The example below is only to show my lack of structure knowleage. The code it's self needs nothing to me. Its things like Case, Sub, EndIf Etc. I need to understand.

Bob

Private Sub Form_QueryUnload ( Cancel As Integer, _
                               UnloadMode As Integer )
    Select Case BasicIdeCtl1.Shutdown
    Case -1 ' WinWrap® Basic execution is nested.
        Timer1.Interval = 100
        Cancel = True
    Case 0 ' Shutdown okay.
    Case 1 ' Shutdown canceled by the user.
        Cancel = True
    End Select
End Sub
 
Private Sub Form_Unload ( Cancel As Integer )
    Cancel = Not BasicIdeCtl1.Disconnect
End Sub
 
Private Sub Timer1_Timer ( )
    If Not BasicIdeCtl1.InEvent Then
       Timer1.Interval = 0
       Unload Me
    End If
End Sub


-------------------------

Robert Snow
Germantown, WI

 07/03/2022 05:27 PM
User is offline View Users Profile Print this message

Author Icon
noblemd
Power Member

Posts: 68
Joined: 08/09/2019

Learn the Basic programing language - READ BOOKS

To understand what commands do, start simple...

Read the example explanations in 

WinWrap® | Basic Documentation

Try the commands (statements)

Substitute simple values in the examples - see what happens...

For example the Select Case statement:

'#Language "WWB-COM"

Sub Main
    X = "A" ' Change this value to B then something other than A or B

    Select Case X     ' the value to evauate
    Case "A"            ' If X=A
        MsgBox "X=A"
    Case "B"            ' If X=B
        MsgBox "X=B" 
    Case Else           ' X = something else
        MsgBox "X does not = A or B"
    End Select
End Sub

If X is equal to A then the message box would say X=A
If X is equal to B then the message box would say X=B
(Case Else = some other value)
If X is NOT equal to A or B then the message box would say X does not = A or B

 



-------------------------

Michael Noble
-------------------------
Using Sony WH1000XM5 Headphones
DP 16 Pro /  Law Enforcement / Legal
Windows 11 Pro for WS Latest Update / MS Office 365

 07/03/2022 05:41 PM
User is offline View Users Profile Print this message

Author Icon
noblemd
Power Member

Posts: 68
Joined: 08/09/2019

How to learn programming? [Beginner's 101 Guide] (hackr.io)



-------------------------

Michael Noble
-------------------------
Using Sony WH1000XM5 Headphones
DP 16 Pro /  Law Enforcement / Legal
Windows 11 Pro for WS Latest Update / MS Office 365

 07/03/2022 06:43 PM
User is offline View Users Profile Print this message

Author Icon
Robert Snow
Top-Tier Member

Posts: 261
Joined: 04/18/2017

Thank you. I'm going to dig into it tonight.

I did find what I was looking for in Dragon. 

Dragon scripting language extensions quick reference

Bob



-------------------------

Robert Snow
Germantown, WI

 07/03/2022 06:53 PM
User is offline View Users Profile Print this message

Author Icon
Robert Snow
Top-Tier Member

Posts: 261
Joined: 04/18/2017

They seem to offer a ton of different programs. Which one would be closest to dragon.

Bob



-------------------------

Robert Snow
Germantown, WI

 07/23/2022 02:23 PM
User is offline View Users Profile Print this message

Author Icon
Robert Snow
Top-Tier Member

Posts: 261
Joined: 04/18/2017

 

I have started to use hackr and it is a good source. I also bought Dragon Pro A Set Further and it is a beatiful source for understanding. Thanks for the direction.

Bob

 

 




-------------------------

Robert Snow
Germantown, WI

 07/04/2022 01:10 PM
User is offline View Users Profile Print this message

Author Icon
Robert Snow
Top-Tier Member

Posts: 261
Joined: 04/18/2017

I have since found out that the voice recognition program Nuance Dragon, by default, will execute all of the tool commands that have a single letter for execution.

Bob



-------------------------

Robert Snow
Germantown, WI

Statistics
32634 users are registered to the KnowBrainer Speech Recognition forum.
There are currently 1 users logged in.
The most users ever online was 12124 on 09/09/2020 at 04:59 AM.
There are currently 230 guests browsing this forum, which makes a total of 231 users using this forum.

FuseTalk Standard Edition v4.0 - © 1999-2023 FuseTalk™ Inc. All rights reserved.