Search found 169 matches

by jethrow
16 Jun 2016, 00:07
Forum: Ask For Help
Topic: Determining whether a page in IE11 is done loading
Replies: 2
Views: 418

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

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 ...
by jethrow
14 Apr 2016, 23:47
Forum: Ask For Help
Topic: GUI Inventory safe to excel file
Replies: 2
Views: 346

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

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

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]GeSHi © Codebox Plus

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

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: 53
Views: 29402

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...
by jethrow
04 Jun 2015, 00:24
Forum: Ask For Help
Topic: Key becomes sticky after update, need help.
Replies: 5
Views: 809

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

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

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 ...
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: 1231

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

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 everythin...
by jethrow
25 May 2015, 01:37
Forum: Tutorials
Topic: Web Scraping with AutoHotkey & COM Tutorial- GUI syntax writer and demo videos
Replies: 53
Views: 29402

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...
by jethrow
26 Apr 2015, 02:24
Forum: Ask For Help
Topic: Variant class needed?
Replies: 19
Views: 2669

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

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

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

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 ...
by jethrow
08 Apr 2015, 10:07
Forum: Ask For Help
Topic: Static class variables
Replies: 43
Views: 4869

Re: Static class variables

... even though .Base. is not specified? Instance.B does not exist, so it accesses the base key, which holds reference to an object. Then, it accesses the [1] key & changes it to True. I think you are misunderstanding variables vs objects . A variable holds reference to an object ... it isn't a...
by jethrow
06 Apr 2015, 23:02
Forum: Ask For Help
Topic: Static class variables
Replies: 43
Views: 4869

Re: Static class variables

Nope - if you provide a strait-forward question with a simplistic code example to demonstrate your point, I'd elaborate more. As a rule of thumb, though, objects don't get copied internally.
by jethrow
26 Mar 2015, 19:15
Forum: AutoHotkey v2 Development
Topic: Command syntax - "This parameter can be an expression"
Replies: 25
Views: 5895

Re: Command syntax - "This parameter can be an expression"

however the discussion is whether or not the small subset of command arguments that can accept expressions WITHOUT using the % (to force expression mode) should remain or not Do we have a list of these? Visual examples of where it wouldn't be desirable to require a % for expressions could help clar...

Go to advanced search