Search found 124 matches

by Elgin
14 Jul 2016, 04:45
Forum: Ask for Help (v1)
Topic: Activate AHK with voice recongnition
Replies: 20
Views: 7773

Re: Activate AHK with voice recongnition

Guill, from your first post I was afraid you are a beginner... You'll need to read up on functions and objects in the AHK documentation and understand the concepts. Speech recognition in AHK involves COM-programming which is not exactly beginners stuff, so be prepared for a steep learning curve. Als...
by Elgin
13 Jul 2016, 14:51
Forum: Ask for Help (v1)
Topic: Activate AHK with voice recongnition
Replies: 20
Views: 7773

Re: Activate AHK with voice recongnition

It's a library. Running it alone does nothing; you need to write code that uses it. Some examples are given in the library comments. One example would be: #Include Speech Recognition.ahk TrayTip, Speech Recognition, Say something (press Escape to close) s := new CustomSpeech ;create the custom speec...
by Elgin
13 Jul 2016, 07:18
Forum: Ask for Help (v1)
Topic: Activate AHK with voice recongnition
Replies: 20
Views: 7773

Re: Activate AHK with voice recongnition

See here for the probably simplest to use code:
https://autohotkey.com/board/topic/9645 ... cognition/

Searching for "autohotkey speech recognition" will give you more results depending on what you need.
by Elgin
07 Jul 2016, 08:10
Forum: Ask for Help (v1)
Topic: Help with SAPI speech recognition Topic is solved
Replies: 8
Views: 3024

Re: Help with SAPI speech recognition Topic is solved

The response time thing seems to come up again and again, so I'll try a complete write up here: The Windows speech recognition with default settings running on a machine built in the last 10 years with a high quality, well placed microphone in a quiet environment generally gives you a response time ...
by Elgin
06 Jul 2016, 12:31
Forum: Ask for Help (v1)
Topic: Help with SAPI speech recognition Topic is solved
Replies: 8
Views: 3024

Re: Help with SAPI speech recognition Topic is solved

As you see with your message boxes, OnRecognition fires when a command has been recognized. Your speech is analyzed when you make a short pause (0.1-0.2 sec), sometimes even before that. There is no need to turn anything off; simply shutting your mouth does the job much quicker than any keypresses c...
by Elgin
06 Jul 2016, 04:47
Forum: Ask for Help (v1)
Topic: Help with SAPI speech recognition Topic is solved
Replies: 8
Views: 3024

Re: Help with SAPI speech recognition Topic is solved

I wouldn't try to inject keystrokes in to stext as you would always have to wait until the event actually fires before anything happens. How to best do this depends on what you want to use the letters for in the end. I suppose it's not all only for the message box. You can catch the keystrokes using...
by Elgin
04 Jul 2016, 05:01
Forum: Ask for Help (v1)
Topic: Help with SAPI speech recognition Topic is solved
Replies: 8
Views: 3024

Re: Help with SAPI speech recognition Topic is solved

Hi! There is no really pretty way to do this. You have to define all the combinations you want to be able to say in your grammar. In the free dictation which you activate by setting the dictation state to 1 this has already been defined for you on the whole word range by MS. An additional loop does ...
by Elgin
23 Jun 2016, 04:10
Forum: Ask for Help (v1)
Topic: ControlClick in a java window?
Replies: 5
Views: 2315

Re: ControlClick in a java window?

Hi!

Java windows mostly ignore ControlClick indeed.

With MouseGetPos/MouseMove you can return the mouse to its original position after your click(s):

Code: Select all

MouseGetPos, Xsave, Ysave
MouseClick, Left, 100, 100, 1, 0
MouseMove, %Xsave%, %Ysave%, 0
by Elgin
26 May 2016, 01:58
Forum: Ask for Help (v1)
Topic: Can you make Dragon NaturallySpeaking talk using an autohotkey script?
Replies: 21
Views: 7656

Re: Can you make Dragon NaturallySpeaking talk using an autohotkey script?

Sure:

Code: Select all

DgnEngine:= ComObjCreate("Dragon.DgnEngineControl")
DgnEngine.Register(0)
DgnEngine.RecognitionMimic("what can I say")
by Elgin
20 May 2016, 12:47
Forum: Ask for Help (v1)
Topic: AHK keyboard hook + AHKHID causing buggy behavior
Replies: 6
Views: 4116

Re: AHK keyboard hook + AHKHID causing buggy behavior

Hi IMEime, that code can only distinguish between two keyboards. Basically the same as my example when you remove the line "$c:: Return", which works fine. My problems as described start when I try to suppress the original keystrokes... As soon as you insert "$c:: Return" (or any other letter/number...
by Elgin
20 May 2016, 07:39
Forum: Ask for Help (v1)
Topic: AHK keyboard hook + AHKHID causing buggy behavior
Replies: 6
Views: 4116

AHK keyboard hook + AHKHID causing buggy behavior

My goal is to distinguish on which of my two keyboards a key was pressed and perform different actions. I found this: https://autohotkey.com/board/topic/38015-ahkhid-an-ahk-implementation-of-the-hid-functions/page-2#entry251836 and tried to implement it but ran into some very strange issues. The dem...
by Elgin
08 Feb 2016, 06:42
Forum: Ask for Help (v1)
Topic: Logitech G13 Gaming Keyboard
Replies: 3
Views: 2885

Re: Logitech G13 Gaming Keyboard

You can get all keys of the G13 or any of the other Logitech G keyboards via Hid:

https://autohotkey.com/board/topic/3801 ... functions/

This is a bit more complex than normal hotkeys though...
by Elgin
03 Feb 2016, 14:45
Forum: Ask for Help (v1)
Topic: Can you make Dragon NaturallySpeaking talk using an autohotkey script?
Replies: 21
Views: 7656

Re: Can you make Dragon NaturallySpeaking talk using an autohotkey script?

You can also get Dragon to speak a text. Using Dragon's own scripting engine should work: Listener:= ComObjCreate("Dragon.DgnVCmd.1") ; create Dragon's command object Listener.Register("", 1) ; register it Listener.ExecuteScript("TTSPlayString ""This is a test. Did it work?"", """"",0) ; ececute the...
by Elgin
17 Dec 2015, 18:44
Forum: Ask for Help (v1)
Topic: Uberi's AHK speech recognition for context grammars
Replies: 1
Views: 1432

Re: Uberi's AHK speech recognition for context grammars

Hi there! Uberi's code is written for easy use. This kind of commands does not really fall under that and requires more sophisticated handling to create the commands and read out the results afterwards. You'll need to expand the code to be able to create several speech rules (simple) and then think ...
by Elgin
02 Aug 2015, 16:14
Forum: Ask for Help (v1)
Topic: Reading type libs
Replies: 4
Views: 1721

Re: Reading type libs

Hi! A good while ago I started to play around with this to make a type library to AHK converter in order to have the constants and be able to fine tune of the functions which I found not easy with maul.esel's code. So far I have code to read and display all the info from a type lib and convert the c...
by Elgin
27 Jul 2015, 05:32
Forum: Ask for Help (v1)
Topic: Getting names from variables passed to a variadic function
Replies: 7
Views: 2458

Re: Getting names from variables passed to a variadic function

Your function example won't work because functionVarOne etc. are local to MyFunction. JoinVars simply has no way of knowing about them unless you also transfer their values as parameters which makes it just as much type-work as using MsgBox directly. I often use objects to pass or keep together larg...
by Elgin
23 Jun 2015, 05:09
Forum: Ask for Help (v1)
Topic: Emulate Recognition Help Needed ...
Replies: 3
Views: 1680

Re: Emulate Recognition Help Needed ...

Hi! The code for EmulateRecognition is straightforward: Listener:=ComObjCreate("SAPI.SpSharedRecognizer") Listener.EmulateRecognition("some stuff you want recognized") But: afaik it only works for emulating speech commands from grammars owned by the application which uses the EmulateRecognition comm...
by Elgin
08 May 2015, 03:11
Forum: Ask for Help (v1)
Topic: Need help learning how to activate scripts with voice
Replies: 7
Views: 5463

Re: Need help learning how to activate scripts with voice

Hi Guest, if you have Dragon Naturally Speaking Pro or Legal and you're not put off by the delays caused by loading AHK over and over (larger scripts don't load and execute instantaneously) you can do that indeed. If you want to use Windows speech recognition, the pure AHK solution is way simpler to...
by Elgin
07 May 2015, 07:14
Forum: Ask for Help (v1)
Topic: Need help learning how to activate scripts with voice
Replies: 7
Views: 5463

Re: Need help learning how to activate scripts with voice

The following should do the job: #Include Speech Recognition.ahk s := new CustomSpeech ;create the custom speech recognizer s.Recognize(["approve","something else"]) MsgBox, Speech recognition started. Say "approve" or "something else". return Esc::ExitApp class CustomSpeech extends SpeechRecognizer...
by Elgin
07 May 2015, 03:31
Forum: Ask for Help (v1)
Topic: Need help learning how to activate scripts with voice
Replies: 7
Views: 5463

Re: Need help learning how to activate scripts with voice

Hi! At the moment Uberi's code is pretty much as straightforward and simple as it can get afaik: https://gist.github.com/Uberi/6263822 If you want to understand the speech code you should read into objects and COM a little bit to get a grip on the code structure used. If you can't get going with the...

Go to advanced search