Search found 11 matches

by SpaceMoth
25 Mar 2023, 13:58
Forum: Ask for Help (v2)
Topic: Very basic question on UI Access
Replies: 2
Views: 313

Re: Very basic question on UI Access

Just what I needed, thanks mikeyww. Really looking forward to learning v2!
by SpaceMoth
25 Mar 2023, 11:16
Forum: Ask for Help (v2)
Topic: Very basic question on UI Access
Replies: 2
Views: 313

Very basic question on UI Access

Hi, I've tried (a bit) to understand this but could do with a simple answer. I'm installing v2 and it's telling me about UI Access and installing to Program Files. I've never seen this message before and have installed v1 on several PCs, always in a custom directory. I don't know what is the best ch...
by SpaceMoth
22 Oct 2022, 07:19
Forum: Ask for Help (v1)
Topic: #IfWinActive with multiple ANDed conditions, as opposed to #If <expr>
Replies: 2
Views: 292

#IfWinActive with multiple ANDed conditions, as opposed to #If <expr>

I have some contextual hoteys that trigger in a particular app, when a particular filetype is open. E.g. hoteys for editing Python in Vim. Currently I'm using #If <expr>: #If WinActive("ahk_exe gvim.exe") && WinActive(".py") [::Send []{Left} ]::Send (){Left} ; ... #If But I see there are some caveat...
by SpaceMoth
20 Oct 2022, 15:12
Forum: General Discussion
Topic: How to waste a couple of hours
Replies: 0
Views: 564

How to waste a couple of hours

I just had a facepalm moment that I feel compelled to share. I've been meaning to learn AHK properly and rewrite my large kludgy script for ages. So I just started delving into the docs with that aim in mind, and one of the first things I came across was the console and Lines most recently executed....
by SpaceMoth
14 Mar 2022, 14:59
Forum: Ask for Help (v1)
Topic: Not getting wb.document.links.length property
Replies: 7
Views: 606

Re: Not getting wb.document.links.length property

Thanks Xtra. That's a great solution judging by the replies on the thread, but is way over my head. I'll need to look for something simpler.
by SpaceMoth
14 Mar 2022, 11:47
Forum: Ask for Help (v1)
Topic: Not getting wb.document.links.length property
Replies: 7
Views: 606

Re: Not getting wb.document.links.length property

Thanks. Can I be stupid here and ask a super-simple question for complete clarity? I need to navigate through several hundred pages on a web site. Each page has Previous and Next links that differ in their x/y coordinates depending what else is on the page. I'd like to automate clicking them to give...
by SpaceMoth
14 Mar 2022, 10:55
Forum: Ask for Help (v1)
Topic: Not getting wb.document.links.length property
Replies: 7
Views: 606

Re: Not getting wb.document.links.length property

Maybe this is the obvious thing I missed (I'm a beginner at this). From your link it looks like with Internet Explorer you just create the wb object, but with Chrome you have to use an external library just to get AHK to click a link on the current page - is that right? If so that's surprising (and ...
by SpaceMoth
14 Mar 2022, 09:35
Forum: Ask for Help (v1)
Topic: Not getting wb.document.links.length property
Replies: 7
Views: 606

Not getting wb.document.links.length property

This is very basic but is stopping me from getting on with my main aim (auto-clicking a specific link on a page). From searching around I see you get an object containing all the page's links and iterate over it. However when I get the length of this object i.e. the no. of links to loop over, nothin...
by SpaceMoth
10 Dec 2018, 20:08
Forum: Ask for Help (v1)
Topic: Nested context for hotkeys? Topic is solved
Replies: 2
Views: 925

Nested context for hotkeys? Topic is solved

I don't understand from the docs how to define hotkeys within nested contexts. For example, in the Vim editor I'd like some hotkeys to always apply (a and b in the example below), and some to apply only when specific filetypes are open (Python and C/C++ in the example below). The hotkeys specific to...

Go to advanced search