| Author |
Message |
Forum: Support Topic: what were your syntax Gotchas? (coming from a different lang |
| raven-gm |
|
Posted: January 22nd, 2009, 4:35 pm
|
|
Replies: 7 Views: 459
|
my biggest gotcha? That by default, ending a line with a semicolon gives you a syntax error.
Second biggest? Moving from ahk to actionscript, case sensitivity. |
|
 |
Forum: Offtopic Topic: Sean is my Hero! |
| raven-gm |
|
Posted: January 22nd, 2009, 4:31 pm
|
|
Replies: 17 Views: 1306
|
For writing all the COM functions, Sean made ahk about a million times more awesome. So I'm just posting here to say thanks! You rule!
 |
|
 |
Forum: Scripts Topic: [error do not use] Auto COM_Release all global com variables |
| raven-gm |
|
Posted: January 19th, 2009, 2:25 am
|
|
Replies: 16 Views: 2209
|
|
 |
Forum: Scripts Topic: [error do not use] Auto COM_Release all global com variables |
| raven-gm |
|
Posted: January 19th, 2009, 1:54 am
|
|
Replies: 16 Views: 2209
|
| (also, is there any way to save a COM object to a file and restore it? Like python's pickle package?) Yes but it would be useless since the value of the pointer would be different each time Oh. And I can't save what is actually in the memory at that address? I guess I can save the attributes to a f... |
|
 |
Forum: Scripts Topic: [error do not use] Auto COM_Release all global com variables |
| raven-gm |
|
Posted: January 18th, 2009, 7:56 am
|
|
Replies: 16 Views: 2209
|
| you should always release COM objects. However the error i made was in the assumption that i could identify a COM object accurately. Once the application you have created pointers to exits so do those interface pointers Also according to Sean calling COM_Term() is also sufficient. This becomes an i... |
|
 |
Forum: Scripts Topic: [error do not use] Auto COM_Release all global com variables |
| raven-gm |
|
Posted: January 16th, 2009, 7:16 pm
|
|
Replies: 16 Views: 2209
|
| if im totally mis understanding these points to mean that purely from a memory standpoint, that its better to quit the app in question or release objects then please call me out on it. I dont want to do something totally wrong Tank, it's a good effort, however, might become a bit hassle sometimes. ... |
|
 |
Forum: Scripts Topic: Voice Recognition COM |
| raven-gm |
|
Posted: January 12th, 2009, 1:41 am
|
|
Replies: 128 Views: 26306
|
| So you only prefix parameters with + when the function wants a COM object? Yes. With AHK's current variable system, there is no way to distinguish a COM Object (pointer) from a plain integer. So, (otherwise redundant unary) + was chosen to distinguish them. And is there a difference between "+... |
|
 |
Forum: Scripts Topic: Voice Recognition COM |
| raven-gm |
|
Posted: January 12th, 2009, 1:16 am
|
|
Replies: 128 Views: 26306
|
| COM_Invoke(DictationState,"AddSpecialTransition","+" . 0,"+" . 2) Good work. BTW, did the above work? It should have output an error. Don't prefix + to the last parameter, must prefix + only to COM objects. COM_Invoke(DictationState,"AddSpecialTransiti... |
|
 |
Forum: Scripts Topic: Voice Recognition COM |
| raven-gm |
|
Posted: January 11th, 2009, 10:43 pm
|
|
Replies: 128 Views: 26306
|
| I was wondering for a while how to do wildcard commands (Run %ProgramName%) without having to open up the entire engine to dictation (as previously discussed). I figured it out how to do it; until now all the rules we've been working with have been very simple, starting and ending on the same state.... |
|
 |
Forum: Support Topic: Anyone interested in working on a voice command library? |
| raven-gm |
|
Posted: January 11th, 2009, 10:07 pm
|
|
Replies: 3 Views: 558
|
| I want to write a voice command library for ahk, but I'm not sure if I can do all of it alone. It's pretty COM intensive, but I think it can be done. Ideally, it would be able to be used by anyone who wrote in autohotkey, even if they were new to COM. Planned/envisioned functions Voice_Init()... |
|
 |
Forum: Scripts Topic: Voice Recognition COM |
| raven-gm |
|
Posted: January 11th, 2009, 1:49 am
|
|
Replies: 128 Views: 26306
|
| Alright! I got dynamic commands working. You can add them within the script just by saying "New Rule". Here is the main file, Speech.ahk #Persistent ;We don't have any hotkeys or GUI's, but we want the script to stick around anyways OnExit, CleanUp ;Ensures the CleanUp Routine is called to... |
|
 |
Forum: Scripts Topic: Voice Recognition COM |
| raven-gm |
|
Posted: January 7th, 2009, 6:17 am
|
|
Replies: 128 Views: 26306
|
| Nice! I suppose it's the first one using multiple Rules. Now it could extend further to multiple Grammars, multiple RecoContexts etc. It works really well. You can use Grammar.CmdRuleSetState to turn a rule on and off. I'll post my script that has sleep mode on/off and dictation mode on and off if ... |
|
 |
Forum: Scripts Topic: Voice Recognition COM |
| raven-gm |
|
Posted: January 7th, 2009, 4:54 am
|
|
Replies: 128 Views: 26306
|
I... forgot I couldn't delete things I'd posted as a guest. Ooops.
On a happier note, I have the skeletal framework for what I'm trying to do with a dynamic voice recognition system. I just need to add the bits that allow me to define new global and local commands, and maybe a training routine. |
|
 |
Forum: Scripts Topic: AHKLitening - Wrapper/helper lib for SQLitening (SQlite) |
| raven-gm |
|
Posted: January 4th, 2009, 8:14 am
|
|
Replies: 23 Views: 3776
|
| I've been trying to decide between the various ways of storing information in the various parts of SteamLab, and in doing so decided it would be really great if there were a modern and tightly integrated library of SQL-like functions for AHK. I saw some functions designed to use the Cheetah DLL, an... |
|
 |
Forum: Scripts Topic: Voice Recognition COM |
| raven-gm |
|
Posted: January 3rd, 2009, 8:45 pm
|
|
Replies: 128 Views: 26306
|
| That does not work for me. As a matter of fact, that's the only difference I had with raven-gm's code, weird. But that could be due to the fact that I speak English with an accent. Do you have the same trouble with SpSharedRecognizer too? Looks like the outcome varies with an user. It could also be... |
|
 |
| Sort by: |