Is afx: the doom of Autohotkey ? Does Acc.ahk help ?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Hotte
Posts: 32
Joined: 03 Jan 2018, 14:39

Re: Is afx: the doom of Autohotkey ? Does Acc.ahk help ?

19 Dec 2019, 12:11

@guest3456 I quoted your idea about background search in FineText() into the FineText thread because I think this is a precious contribution https://www.autohotkey.com/boards/viewtopic.php?f=6&t=17834&p=306478#p306478.

I hope you are ok with that. You may want to follow the discussion there if interested (but I left your user id away for discretion). Thank you and Merry Christmas!
guest3456
Posts: 3469
Joined: 09 Oct 2013, 10:31

Re: Is afx: the doom of Autohotkey ? Does Acc.ahk help ?

19 Dec 2019, 12:19

Hotte wrote:
19 Dec 2019, 12:11
@guest3456 I quoted your idea about background search in FineText() into the FineText thread because I think this is a precious contribution https://www.autohotkey.com/boards/viewtopic.php?f=6&t=17834&p=306478#p306478.

I hope you are ok with that. You may want to follow the discussion there if interested (but I left your user id away for discretion). Thank you and Merry Christmas!
you could've quoted me, i don't mind. i just looked at the FindText source, and i see that they are using GetWindowDC and BitBlt, which is similar to what Gdip_BitmapFromScreen() would use. are you sure its not working to capture on windows behind others?

Hotte
Posts: 32
Joined: 03 Jan 2018, 14:39

Re: Is afx: the doom of Autohotkey ? Does Acc.ahk help ?

19 Dec 2019, 13:10

Yes, I just retested it. If I move windows explorer in front of the item, it fails. If I move it away it works.
guest3456
Posts: 3469
Joined: 09 Oct 2013, 10:31

Re: Is afx: the doom of Autohotkey ? Does Acc.ahk help ?

19 Dec 2019, 20:23

Hotte wrote:
19 Dec 2019, 13:10
Yes, I just retested it. If I move windows explorer in front of the item, it fails. If I move it away it works.
what version of Windows are you on? if win7, do you have Aero theme enabled?

Hotte
Posts: 32
Joined: 03 Jan 2018, 14:39

Re: Is afx: the doom of Autohotkey ? Does Acc.ahk help ?

20 Dec 2019, 01:55

I'm running Windows 10 with standard desktop
paulpma
Posts: 65
Joined: 08 Sep 2018, 22:05

Re: Is afx: the doom of Autohotkey ? Does Acc.ahk help ?

28 Mar 2020, 00:57

Hello,

Just wondering if anyone had any updates on AFX, I have AFX OLE control to work with. FindText() is a great tool, however, when size of text is not constant and there is variability in position...

Thank you all.
letacio
Posts: 48
Joined: 08 Mar 2018, 16:05

Re: Is afx: the doom of Autohotkey ? Does Acc.ahk help ?

19 Feb 2021, 22:29

gregster wrote:
16 Dec 2019, 03:38
If you spy an explorer like Opera or Edge little shows up that could be used by ahk.
All common browsers always implemented their own controls - this is nothing new.

Opera and Edge Beta (the future release) are both Chromium-based, like Chrome, and can be automated via the chrome debugging protocol and AHK. IE has COM and there is Selenium...

The old (current) Edge has another protocol that probably could have been automated, too, but it will be gone soon anyway.

Edit: Topic moved to 'Ask For Help'.
How would this be done exactly? Could you provide an example of automating chromium based browser?

Thansk in advance!
gregster
Posts: 9111
Joined: 30 Sep 2013, 06:48

Re: Is afx: the doom of Autohotkey ? Does Acc.ahk help ?

20 Feb 2021, 03:34

letacio wrote:
19 Feb 2021, 22:29
gregster wrote:
16 Dec 2019, 03:38
Opera and Edge Beta (the future release) are both Chromium-based, like Chrome, and can be automated via the chrome debugging protocol and AHK. IE has COM and there is Selenium...
How would this be done exactly? Could you provide an example of automating chromium based browser?

Thansk in advance!
One way is using Chrome.ahk by GeekDude. The "release" package on github contains some simple examples.
I see that there is also now some video in the first post of the Chrome.ahk topic... that topic contains more code examples and there are a few other topics about Chrome.ahk.

Despite the name, it can also be used for some other Chromium-based browsers like the new Edge and Opera - but not all Chromium-based browsers support the used interface, the chrome debugging protocol. You'll have to make some slight changes to the Chrome.ahk code to use other browsers than Chrome itself, but then the syntax will be the same.
A warning: Chrome.ahk is no polished product - it has a few bugs (most are mentioned somewhere in the main topic, with fixes) and its syntax is rather bulky. A good knowledge of javascript is definitely a plus, if you want to use it seriously.
letacio
Posts: 48
Joined: 08 Mar 2018, 16:05

Re: Is afx: the doom of Autohotkey ? Does Acc.ahk help ?

21 Mar 2021, 14:40

Thanks a lot!
I'll look into it!

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: No registered users and 352 guests