Search found 172 matches

by jethrow
11 Aug 2018, 18:13
Forum: Offtopic
Topic: UI Automation v. Acc (MSAA: Microsoft Active Accessibility)
Replies: 7
Views: 416

Re: UI Automation v. Acc (MSAA: Microsoft Active Accessibility)

No problem. "Active" is a strong word, but I seek to please. Again, np - the AHK community has blessed me more that I've contributed. Thanks for the recognition, but for COM/ACC stuff props really go to folks like lexikos, Sean, tank & fincs. ... any plans ... for the future. Or the same for any oth...
by jethrow
11 Aug 2018, 11:13
Forum: Offtopic
Topic: UI Automation v. Acc (MSAA: Microsoft Active Accessibility)
Replies: 7
Views: 416

Re: UI Automation v. Acc (MSAA: Microsoft Active Accessibility)

One of the things that really interested me about UI Automation is the ability to find elements in a treescope based on given criteria - see IUIAutomationElement::FindFirst & IUIAutomationElement::FindAll

Here's an old example for FireFox: FFWait.ahk
by jethrow
11 Aug 2018, 10:51
Forum: Ask For Help
Topic: CSV delimited database help
Replies: 8
Views: 188

Re: CSV delimited database help

How are the fields with commas/line breaks identified? Typically they are enclosed in double quotes. In the past I've parsed on un-escaped double quotes first to identify the fields, then substituted the commas/line breaks in the fields.
by jethrow
16 Jun 2016, 00:07
Forum: Ask For Help
Topic: Determining whether a page in IE11 is done loading
Replies: 2
Views: 657

Re: Determining whether a page in IE11 is done loading

Here is the error i'm getting ... Specifically: busy The error shows busy is causing an issue - have you tried without busy ? If readystate alone doesn't work, you could watch for the DocumentComplete event, as shown in this post: https://autohotkey.com/board/topic/47052-basic-webpage-controls-with...
by jethrow
24 Apr 2016, 14:09
Forum: Ask For Help
Topic: COM interface with explorer issue
Replies: 1
Views: 486

Re: COM interface with explorer issue

Well, you could get it by window title or webpage name/url (see WBGet & IEGet here ) ... ... or you could utilize the fact that that the new window should be the last item in the shell.application->windows collection. You could do this by getting the window count, clicking the link, waiting for the ...
by jethrow
14 Apr 2016, 23:47
Forum: Ask For Help
Topic: GUI Inventory safe to excel file
Replies: 2
Views: 454

Re: GUI Inventory safe to excel file

Doing COM would still create an excel instance - though it could be hidden. You might be better off writing to a CSV file, which should open by default in Excel.
by jethrow
10 Feb 2016, 21:46
Forum: Ask For Help
Topic: &Class.var ?
Replies: 5
Views: 503

Re: &Class.var ?

Try the GetAddress method
by jethrow
27 Jul 2015, 00:43
Forum: Ask For Help
Topic: Variable in COM name
Replies: 2
Views: 511

Re: Variable in COM name

See the all property. When in doubt, try the call in javascript. Any of the following are appropriate:

Code: Select all

document.all(user_pass)
document.all[user_pass]
document.all.item(user_pass)
by jethrow
12 Jul 2015, 21:29
Forum: Ask For Help
Topic: Associative array not working
Replies: 4
Views: 742

Re: Associative array not working

double_jumper wrote:I just assumed it was global by default since all variables are.
Functions are local by default.
by jethrow
07 Jun 2015, 14:14
Forum: Tutorials
Topic: Web Scraping with AutoHotkey & COM Tutorial- GUI syntax writer and demo videos
Replies: 66
Views: 39304

Re: WebScraping and COM- GUI syntax writer and demo videos

AHK has some syntax designs that don't translate well into other languages. A good example is in AHK, the following 2 calls are the same: object.key object["key"] That being said, if you are focusing on web-scraping & tutorials, I'd highly recommend making your code easily translatable to jscript/ja...
by jethrow
04 Jun 2015, 00:24
Forum: Ask For Help
Topic: Key becomes sticky after update, need help.
Replies: 5
Views: 1018

Re: Key becomes sticky after update, need help.

Try using KeyWait to make sure the modifier key (win key) is released before the send statement occurs.
by jethrow
30 May 2015, 20:23
Forum: Ask For Help
Topic: Variant class needed?
Replies: 19
Views: 3490

Re: Variant class needed?

Thanks for the info/examples ... that's pretty much everything I needed :) Here's another version, manually constructing the VARIANT instead of using a SafeArray ... This is slightly faster to access, but slower to create/destroy ... I hadn't even considered reusing the save variant structure (inter...
by jethrow
30 May 2015, 20:02
Forum: Ask For Help
Topic: IDispatch, Access .Document of Shell.Explorer (ActiveX)
Replies: 3
Views: 1327

Re: IDispatch, Access .Document of Shell.Explorer (ActiveX)

Here's an extended example using HTMLFile - thought this focuses more on having your AHK script respond to webpage events, rather than javascript responding to events & communicating with AHK: WM_KEYDOWN = 0x100 GoSub, GetHTML OnMessage(WM_KEYDOWN, "WM_KeyDown") Gui Add, ActiveX, w350 h300 x0 y0 vdo...
by jethrow
30 May 2015, 17:04
Forum: Ask For Help
Topic: [SOLVED] 15,000 Word Docs Searched in 6 mins with OutPut :D
Replies: 11
Views: 1641

Re: 15,000 Word Docs Searched in 6 mins with OutPut :D

wdApp.Visible := False ?? Note that the Application object is not Visible by default. Just remove the wdApp.Visible := True line. one more thing if the file is open in some other system ... ; ... Loop, %A_DeskTop%\*.docx ; The directory to look in for .docx files { try wdDoc := wdApp.Documents.Open...
by jethrow
25 May 2015, 03:03
Forum: Ask For Help
Topic: Variant class needed?
Replies: 19
Views: 3490

Re: Variant class needed?

... lack of understanding on my part around variants & memory ... I read through handle VARIANT structures - shouldn't ComVar be all that's needed for working with variants? Passing the variant and getting the value is just the following - & the object delete function should clean everything up? Va...
by jethrow
25 May 2015, 01:37
Forum: Tutorials
Topic: Web Scraping with AutoHotkey & COM Tutorial- GUI syntax writer and demo videos
Replies: 66
Views: 39304

Re: Intro to WebScraping and COM

Nice - should help make IE Com stuff way easy for beginners. Plus videos are good - & I felt way famous after watching ... ... a couple things... The "M" in COM & DOM stands for Model False=0 & 0!=-1 meaning -1=True I prefix raw pointers with "p" to signify it's a pointer (pwb, pdoc, etc.) - outside...
by jethrow
26 Apr 2015, 02:24
Forum: Ask For Help
Topic: Variant class needed?
Replies: 19
Views: 3490

Re: Variant class needed?

UppyDan wrote:I have been looking at IUIAutomation code written by Jethro and Nepter a few years back ...
Note that a lack of understanding on my part around variants & memory was one reason I put this project on hold - and at this point it's unlikely I'll finish the library.
by jethrow
12 Apr 2015, 04:42
Forum: Ask For Help
Topic: Static class variables
Replies: 43
Views: 6541

Re: Static class variables

... This seems to be the inevitable cost of clearness ... Also, the way I see it, This.Base.A or This.Base.Base.A are more descriptive related to the relationsship than a hard-coded class name. I'm not sure how much experience you have in OOP, or how far you plan to go, but I'd be curious to see if...
by jethrow
10 Apr 2015, 07:14
Forum: Ask For Help
Topic: Static class variables
Replies: 43
Views: 6541

Re: Static class variables

The problem can occur anytime the user is trying to change an instance object and accidentally uses a key of a class object. This would immediately affect all running instances relying on the class object. So, you're accessing a key from the base which holds an object, and you want that object to h...
by jethrow
09 Apr 2015, 10:30
Forum: Ask For Help
Topic: Static class variables
Replies: 43
Views: 6541

Re: Static class variables

The way I see it, instances should be able to overwrite keys/variables inherited by the base class for the instance only in either case, not only for non-object keys/variables. So, let's take Internet Explorer, for example. Say we have an object key , let's use the document object, that is defined ...

Go to advanced search