Search found 177 matches
- 07 Feb 2019, 02:07
- Forum: Ask for Help (v1)
- Topic: Copy from Excel Spreadsheet and Paste to Web-based program
- Replies: 2
- Views: 3038
Re: Copy from Excel Spreadsheet and Paste to Web-based program
Here's a quick example: sheet := excelSetup() document := ieSetup() MsgBox Enter values in Excel Cells B1-B3. Once complete, press OK to populate webpage ... document.getElementsByName("username")[0].value := sheet.Range("B1").Value document.getElementsByName("password")[0].value := sheet.Range("B2"...
- 06 Dec 2018, 01:52
- Forum: Ask for Help (v1)
- Topic: [AHK COM IE] How to get button url Topic is solved
- Replies: 4
- Views: 1459
Re: [AHK COM IE] How to get button url Topic is solved
A brief example of what you've tried would help ... but the simple answer is to access the button or link & get the value of it's href property. In accessing the correct button or link, you'll have to identify the element somehow - here's a basic example: for window in ComObjCreate("Shell.Applicatio...
- 09 Nov 2018, 01:20
- Forum: Other Programming Languages
- Topic: jethrow's preferred language ... and why
- Replies: 3
- Views: 5741
Re: jethrow's preferred language ... and why
Yes - IntelliJ IDEA Ultimate
- 03 Nov 2018, 16:54
- Forum: Other Programming Languages
- Topic: jethrow's preferred language ... and why
- Replies: 3
- Views: 5741
jethrow's preferred language ... and why
(initial though after reading subject) ... who cares? ... but then I think about the actual big names (current & former) in the AHK community, and I'd be curious to know their preferred development language. Short Answer : Scala , because it's a full jvm-based programming language that feels kinda ...
- 03 Nov 2018, 15:46
- Forum: Off-topic Discussion
- Topic: Do you have any religion? | What's your religion?
- Replies: 36
- Views: 19264
Re: Do you have any religion? | What's your religion?
Considering my avatar, I should prolly weigh in. After growing up somewhere between atheist & agnostic, life experience, science & logical deduction convinced me there is something both good & supreme beyond what can be physically measured. Also, though I put little credit in feelings, when you have...
- 11 Aug 2018, 18:13
- Forum: Off-topic Discussion
- Topic: UI Automation v. Acc (MSAA: Microsoft Active Accessibility)
- Replies: 7
- Views: 5225
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...
- 11 Aug 2018, 11:13
- Forum: Off-topic Discussion
- Topic: UI Automation v. Acc (MSAA: Microsoft Active Accessibility)
- Replies: 7
- Views: 5225
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
Here's an old example for FireFox: FFWait.ahk
- 11 Aug 2018, 10:51
- Forum: Ask for Help (v1)
- Topic: CSV delimited database help
- Replies: 8
- Views: 1961
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.
- 16 Jun 2016, 00:07
- Forum: Ask for Help (v1)
- Topic: Determining whether a page in IE11 is done loading
- Replies: 2
- Views: 1769
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...
- 24 Apr 2016, 14:09
- Forum: Ask for Help (v1)
- Topic: COM interface with explorer issue
- Replies: 1
- Views: 1186
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 ...
- 14 Apr 2016, 23:47
- Forum: Ask for Help (v1)
- Topic: GUI Inventory safe to excel file
- Replies: 2
- Views: 1405
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.
- 10 Feb 2016, 21:46
- Forum: Ask for Help (v1)
- Topic: &Class.var ?
- Replies: 5
- Views: 1664
Re: &Class.var ?
Try the GetAddress method
- 27 Jul 2015, 00:43
- Forum: Ask for Help (v1)
- Topic: Variable in COM name
- Replies: 2
- Views: 1288
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)
- 12 Jul 2015, 21:29
- Forum: Ask for Help (v1)
- Topic: Associative array not working
- Replies: 4
- Views: 2027
Re: Associative array not working
Functions are local by default.double_jumper wrote:I just assumed it was global by default since all variables are.
- 07 Jun 2015, 14:14
- Forum: Tutorials (v1)
- Topic: Web Scraping with AutoHotkey & COM Tutorial- GUI syntax writer and demo videos
- Replies: 68
- Views: 91536
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...
- 04 Jun 2015, 00:24
- Forum: Ask for Help (v1)
- Topic: Key becomes sticky after update, need help.
- Replies: 5
- Views: 2445
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.
- 30 May 2015, 20:23
- Forum: Ask for Help (v1)
- Topic: Variant class needed?
- Replies: 19
- Views: 9866
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...
- 30 May 2015, 20:02
- Forum: Ask for Help (v1)
- Topic: IDispatch, Access .Document of Shell.Explorer (ActiveX)
- Replies: 3
- Views: 2845
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...
- 30 May 2015, 17:04
- Forum: Ask for Help (v1)
- Topic: [SOLVED] 15,000 Word Docs Searched in 6 mins with OutPut :D
- Replies: 11
- Views: 4094
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...
- 25 May 2015, 03:03
- Forum: Ask for Help (v1)
- Topic: Variant class needed?
- Replies: 19
- Views: 9866
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...