Search found 103 matches

by Elgin
06 Aug 2018, 13:13
Forum: Ask For Help
Topic: Using SAPI Topic is solved
Replies: 1
Views: 45

Re: Using SAPI Topic is solved

SAPI is a part of Windows. As such you can use it just like any other Windows API (as long as you and your clients use legal copies of Windows obviously).
by Elgin
24 Feb 2018, 01:35
Forum: Ask For Help
Topic: Change Monitor Input with AHK
Replies: 1
Views: 125

Re: Change Monitor Input with AHK

Hi there! One problem I can see is that in: setMonitorInputSource(source) { DllCall("dxva2\SetVCPFeature" , "int", handle , "char", 0x60 ;VCP code for Input Source Select , "uint", source) } The handle is undefined and the correct working of the function is th...
by Elgin
05 Jan 2018, 11:17
Forum: Wish List
Topic: #Warn when assigning to class name Topic is solved
Replies: 5
Views: 633

Re: #Warn when assigning to class name Topic is solved

Solved. Thank you very much!
by Elgin
12 Dec 2017, 09:31
Forum: Ask For Help
Topic: Activate AHK with voice recongnition
Replies: 18
Views: 2479

Re: Activate AHK with voice recongnition

Code: [Select all]GeSHi © Codebox Plus

s.Recognize(False)

or

Code: [Select all]GeSHi © Codebox Plus

s.Listen(False)

should do it.
by Elgin
12 Dec 2017, 06:17
Forum: Ask For Help
Topic: Activate AHK with voice recongnition
Replies: 18
Views: 2479

Re: Activate AHK with voice recongnition

Code: [Select all]GeSHi © Codebox Plus

mysaying = tourist sale	; or: mysaying := "tourist sale"
s.Recognize([mysaying, "que pasa", "me entiendes"])


works as expected for me and displays a message box "tourist sale".
by Elgin
03 Nov 2017, 09:34
Forum: Scripts and Functions
Topic: TypeLib2AHK - Convert COM Type libraries to AHK code
Replies: 33
Views: 2569

Re: TypeLib2AHK - Convert COM Type libraries to AHK code

@cpriest: haven't had time to really look into it. It's very busy here. Your full code works for me at least with multiple events but a quick text compare between your and my code showed no clear differences... It'll be at least another one or two weeks until I have time to try things out further.
by Elgin
15 Oct 2017, 14:18
Forum: Scripts and Functions
Topic: TypeLib2AHK - Convert COM Type libraries to AHK code
Replies: 33
Views: 2569

Re: TypeLib2AHK - Convert COM Type libraries to AHK code

That made it better, but it still crashes after a few (2-4) events, so there must be something else...

Could you please post your working code? Then I can compare it and hopefully work out the kinks.
by Elgin
15 Oct 2017, 05:23
Forum: Scripts and Functions
Topic: TypeLib2AHK - Convert COM Type libraries to AHK code
Replies: 33
Views: 2569

Re: TypeLib2AHK - Convert COM Type libraries to AHK code

The test code is in the test branch on Github (uiaeventhandlertest.ahk).
by Elgin
13 Oct 2017, 05:13
Forum: Scripts and Functions
Topic: TypeLib2AHK - Convert COM Type libraries to AHK code
Replies: 33
Views: 2569

Re: TypeLib2AHK - Convert COM Type libraries to AHK code

I've done a good bit of reading... the byref is only really necessary in very few cases, e.g. when integers are passed as FIN/FOUT parameters, as the most commonly used types are handled as byref by AHK anyway. So I removed most byrefs and also removed the implementation code for interfaces that ext...
by Elgin
08 Oct 2017, 10:56
Forum: Scripts and Functions
Topic: TypeLib2AHK - Convert COM Type libraries to AHK code
Replies: 33
Views: 2569

Re: TypeLib2AHK - Convert COM Type libraries to AHK code

If you've removed the shifting, that's probably why. The 2nd post I made had a much simpler way to get the job done. Nope, it's not. I only get one event from your first code and simplified code with the shifting, as well as from mine without shifting. In any case there needs to be a solution witho...
by Elgin
06 Oct 2017, 09:17
Forum: Scripts and Functions
Topic: TypeLib2AHK - Convert COM Type libraries to AHK code
Replies: 33
Views: 2569

Re: TypeLib2AHK - Convert COM Type libraries to AHK code

Hi, I've uploaded the changes so you can give them a try: https://github.com/Elgin1/TypeLib2AHK/tree/Test Was there any particular reason for shifting the function parameters and inserting pInterface? I noticed it creates big problems with byref parameters and removed it. Seems to have no ill effect...
by Elgin
03 Oct 2017, 21:02
Forum: Ask For Help
Topic: ControlClick with Java Access Bridge
Replies: 8
Views: 760

Re: ControlClick with Java Access Bridge

For several years now I want to make it a bit nicer and put it on GitHub, but that "real life"-thing keeps getting in the way ;-)
by Elgin
03 Oct 2017, 20:53
Forum: Scripts and Functions
Topic: TypeLib2AHK - Convert COM Type libraries to AHK code
Replies: 33
Views: 2569

Re: TypeLib2AHK - Convert COM Type libraries to AHK code

The 0x80004002 does not seem to be the issue. Returning -2147467262, 0x80004002 or 0xFFFFFFFF80004002 all produces identical results. But when any other value is returned, the final AddRef does not get called anymore which I assume means that QueryInterface went wrong. So it looks like things are go...
by Elgin
03 Oct 2017, 09:14
Forum: Ask For Help
Topic: ControlClick with Java Access Bridge
Replies: 8
Views: 760

Re: ControlClick with Java Access Bridge

I was apparently too lazy to type unambiguously there...

Press Ctrl-Alt-F10 or F11


should have said "Press Ctrl-Alt-F10 or Ctrl-Alt-F11".
by Elgin
03 Oct 2017, 08:07
Forum: Scripts and Functions
Topic: TypeLib2AHK - Convert COM Type libraries to AHK code
Replies: 33
Views: 2569

Re: TypeLib2AHK - Convert COM Type libraries to AHK code

I've tested it; still doesn't work in 32bit. I've logged the function calls and found that the call to AddAutomationEventHandler doesn't complete in 32 bit. Here are the logs: 64bit startup: __New PopulateVirtualMethodTable _AddRef 52491328;1 __New PopulateVirtualMethodTable _AddRef 52491424;1 AddAu...
by Elgin
03 Oct 2017, 04:03
Forum: Ask For Help
Topic: ControlClick with Java Access Bridge
Replies: 8
Views: 760

Re: ControlClick with Java Access Bridge

Hi!

See my post in the thread that Stevoisiak linked above. If something doesn't work, let me know.
by Elgin
02 Oct 2017, 17:47
Forum: Scripts and Functions
Topic: TypeLib2AHK - Convert COM Type libraries to AHK code
Replies: 33
Views: 2569

Re: TypeLib2AHK - Convert COM Type libraries to AHK code

I gave your code a quick test and it only seems to run in 64bit but not in 32. Any idea what might cause this? I'd like to support both if possible.
by Elgin
27 Sep 2017, 03:57
Forum: Ask For Help
Topic: active accessibility get value
Replies: 15
Views: 974

Re: active accessibility get value

Since you're accessing the window through "ahk_class AxMainFrame": does it have a title at all? If not you would pass an empty string through hrx which will do nothing. Try: test := Acc_Get("Value", "4.2.8", 0, "ahk_class AxMainFrame") and get rid of the WinGe...

Go to advanced search