Search found 110 matches

by Elgin
06 Jan 2019, 04:41
Forum: Ask For Help
Topic: AHK & Java Access Bridge
Replies: 11
Views: 1094

Re: AHK & Java Access Bridge

Would it be possible to check if specific textbox is visible ? See code below. Press F10. Or will it only be possible to check what is the current focused control (as textbox will not be focused when opening) ? Press F12 to get the current focused control. If I got the current focused control of ea...
by Elgin
05 Jan 2019, 18:27
Forum: Ask For Help
Topic: AHK & Java Access Bridge
Replies: 11
Views: 1094

Re: AHK & Java Access Bridge

The dlls are installed as part of the JRE, not the JDK; looks like someone took a shortcut when preparing that VM ;-) To check which frame is active you have several options depending on how often you need to do it: a) call GetAccessibleContextWithFocus() to get the current focused control at that m...
by Elgin
04 Jan 2019, 18:40
Forum: Ask For Help
Topic: AHK & Java Access Bridge
Replies: 11
Views: 1094

Re: AHK & Java Access Bridge

Did you try the 32 bit unicode version of AHK since you only have 32bit Java? For me my code starts/stops working in the same situations as the java access bridge explorer. I only did a few tests, though... Otherwise you could try to insert a few Msgbox commands into InitJavaAccessBridge() in the co...
by Elgin
04 Jan 2019, 16:09
Forum: Ask For Help
Topic: AHK & Java Access Bridge
Replies: 11
Views: 1094

Re: AHK & Java Access Bridge

Hi! The most current code is here: https://github.com/Elgin1/Java-Access-Bridge-for-AHK I just tested it with Win10, Java 1.8.0_191 32 and 64 bit, AHK 1.1.30.01 64 bit and it works here. The error messages you describe could occur if the Java access bridge is not enabled or AHK can't access the dll:...
by Elgin
28 Oct 2018, 08:37
Forum: Ask For Help
Topic: Controlclick in Java based program
Replies: 7
Views: 738

Re: Controlclick in Java based program

That would be doing the click action or the focus action of a control, depending on the type of the control. No relative (or other) coordinates involved, though...
by Elgin
28 Oct 2018, 07:41
Forum: Ask For Help
Topic: Controlclick in Java based program
Replies: 7
Views: 738

Re: Controlclick in Java based program

You can use it to get the screen coordinates of a Java control an then do a mouse click there, if that's what you're looling for.
by Elgin
28 Oct 2018, 02:37
Forum: Ask For Help
Topic: Controlclick in Java based program
Replies: 7
Views: 738

Re: Controlclick in Java based program

Hi!

See here on how to use the Java access bridge with AHK:
https://github.com/Elgin1/Java-Access-Bridge-for-AHK

There are several other threads on this forum, too.
by Elgin
06 Aug 2018, 13:13
Forum: Ask For Help
Topic: Using SAPI
Replies: 1
Views: 267

Re: Using SAPI

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: 435

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 thus random at best. Untested, but this sh...
by Elgin
05 Jan 2018, 11:17
Forum: Wish List
Topic: #Warn when assigning to class name Topic is solved
Replies: 5
Views: 1435

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: 3957

Re: Activate AHK with voice recongnition

Code: Select all

s.Recognize(False)
or

Code: Select all

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: 3957

Re: Activate AHK with voice recongnition

Code: Select all

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: 4793

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: 4793

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: 4793

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: 4793

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: 4793

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: 4793

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: 1831

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 ;-)

Go to advanced search