Search found 46 matches

by rynsp8
31 May 2019, 10:03
Forum: Ask For Help
Topic: Not able to create Outlook Mail Item
Replies: 3
Views: 614

Re: Not able to create Outlook Mail Item

Can you elaborate on the NameSpace property? Online, on Microsoft's website, it states, "The object itself provides methods for logging in and out, accessing storage objects directly by ID, accessing certain special default folders directly, and accessing data sources owned by other users." Am I to ...
by rynsp8
31 May 2019, 08:31
Forum: Ask For Help
Topic: Not able to create Outlook Mail Item
Replies: 3
Views: 614

Not able to create Outlook Mail Item

Hello all, I'm playing with Outlook and AHK. I'm attempting to just create a mail item using the below code. ol := ComObjActive("Outlook.Application") MailItem := ol.CreateItem(0) I've been able to find the OllItemTypes https://docs.microsoft.com/en-us/office/vba/api/outlook.olitemtype . When I run ...
by rynsp8
29 May 2019, 06:33
Forum: Ask For Help
Topic: Best way to access the DOM?
Replies: 3
Views: 1241

Re: Best way to access the DOM?

Ok, so Joe Glines has a great instructional site that I’ve used quite a bit. However, I find it simpler to call the DOM after I’ve declared InternetExplorer as an object. ie := ComObjectCreate(“InternetExplorer.Application”) ie.Visible := true ie.Navigate(“https://www.google.com”) ie.Document.queryS...
by rynsp8
16 May 2019, 10:50
Forum: Ask For Help
Topic: Sending to <input> element
Replies: 0
Views: 321

Sending to <input> element

Hello again, I'm attempting to send a username and password to a webpage but coming up with difficulties. ie.document.getElementByID("signOnUsername").select() sleep, 3000 Send, USERNAME sleep, 3000 ie.document.getElementByID("signOnPassword").select() sleep, 3000 Send, PASSWORD sleep, 1000 A bit co...
by rynsp8
16 May 2019, 09:54
Forum: Ask For Help
Topic: ComObjCreate Topic is solved
Replies: 2
Views: 385

Re: ComObjCreate Topic is solved

I think I answer my own question

I didn't put InternetExplorer.Application in quotations. So, it should read like below:

Code: Select all

ie := ComObjCreate("InternetExplorer.Application")
ie.Visible := true
ie.Navigate("https://www.google.com")
by rynsp8
16 May 2019, 09:49
Forum: Ask For Help
Topic: ComObjCreate Topic is solved
Replies: 2
Views: 385

ComObjCreate Topic is solved

Hello all, I'm attempting to play with ComObjCreate, and really all the ComObj methods, but I'm having difficulty. I'm really just following the example from the AutoHotKey Help document, below: ie := ComObjCreate(InternetExplorer.Application) ie.Visible := true ie.Navigate("https://www.google.com")...
by rynsp8
10 May 2019, 13:04
Forum: Ask For Help
Topic: Best way to access the DOM?
Replies: 3
Views: 1241

Best way to access the DOM?

I'm not entirely new to AHK, however, I'm not seasoned either.

Simply put, what is the best way to access the DOM from IE/Chrome, or really any browser?
by rynsp8
25 Jul 2018, 12:50
Forum: Ask For Help
Topic: For-Loop explanation
Replies: 13
Views: 2190

Re: For-Loop explanation

Thanks for the response, I guess I'm a bit dense on the 'key' portion of the loop. I need the loop to cycle through every HTML <pre> element on the page and then compare the string value of the .innerHTML for a particular string, "CLMPRUN". So the key would need to iterate incrementally from 0-61 to...
by rynsp8
24 Jul 2018, 13:19
Forum: Ask For Help
Topic: For-Loop explanation
Replies: 13
Views: 2190

For-Loop explanation

I'd like to iterate through elements and I can do it simply enough with JS in the IE console using the code below: var pre = document.parentWindow.frames("FrameB").document.all.tags("pre") pre.length for(x=0; x < pre.length; x++){ if(pre[x].innerHTML.indexOf("CLMPRUN") >= 0){ pre[x].innerHTML } } Bu...
by rynsp8
24 Jul 2018, 11:34
Forum: Ask For Help
Topic: Search for particular string value
Replies: 1
Views: 390

Re: Search for particular string value

Ok, I found the AHK function InStr and it's giving something I can work with.

Code: Select all

MsgBox % InStr(pre[21].innerHTML, "CLMPRUN")
It searches and returns 12, which is the index value of "CLMPRUN" so, now I need to add that logic into an if statement...

Still if anyone has any ideas, pass it on.
by rynsp8
24 Jul 2018, 11:24
Forum: Ask For Help
Topic: Help to click in login button
Replies: 2
Views: 580

Re: Help to click in login button

I find when I'm attempting to interact with the DOM, I have to declare each item as a variable. So for example, it'd be something like the bottom. Also, you'll want to add some wait time between input and clicks. a:= Pwb.document.getElementsByName("username")[0].value := "none" b:= Pwb.document.getE...
by rynsp8
24 Jul 2018, 11:16
Forum: Ask For Help
Topic: Search for particular string value
Replies: 1
Views: 390

Search for particular string value

Wanting to search a particular html element for a string. The html element I'm looking for will change from day to day, so using a static index will not work. I'm able to iterate through all the <pre> html elements on the page and return the .innerHTML in a message box. I get roughly 61 msgbox that ...
by rynsp8
24 Jul 2018, 08:48
Forum: Ask For Help
Topic: Cycle through HTML elements
Replies: 6
Views: 1216

Re: Cycle through HTML elements

Can I ask a separate question here MannyKSoSo? The code you've referenced above, is that strictly AHK? Or is it something else? I've been able to use JS in the IE console to iterate through and return the innerHTML I'm looking for, but that's using JS in the IE console. Now I need to translate it to...
by rynsp8
20 Jul 2018, 08:12
Forum: Ask For Help
Topic: Cycle through HTML elements
Replies: 6
Views: 1216

Re: Cycle through HTML elements

It seems like it could be useful, but it's returning an error: "Call to nonexistent function"
by rynsp8
18 Jul 2018, 10:09
Forum: Ask For Help
Topic: Cycle through HTML elements
Replies: 6
Views: 1216

Re: Cycle through HTML elements

Alright, I thought I'd attempt the below script. However, I'm getting an error: "0x80020003 - Member not found" Which is referencing my line of code attempting to return the .length of the <pre> elements. Any thoughts? [code} #Persistent #SingleInstance Force #NoEnv ;********************************...
by rynsp8
18 Jul 2018, 08:46
Forum: Ask For Help
Topic: Cycle through HTML elements
Replies: 6
Views: 1216

Cycle through HTML elements

I need some help cycling through HTML elements. I have a script that grabs 5 different items from within a 91 page report. These items exist within an iFrame, on different pages, and I've been able to successfully grab these items statically, however, I need to add a piece of logic that will iterate...
by rynsp8
04 Jun 2018, 15:21
Forum: Ask For Help
Topic: Selecting Input Element from within an iFrame
Replies: 2
Views: 851

Re: Selecting Input Element from within an iFrame

Thanks for the reply TLM. I'll be working on this project some more, but iFrames are become the worst for me... worst.
by rynsp8
14 May 2018, 14:42
Forum: Ask For Help
Topic: Selecting Input Element from within an iFrame
Replies: 2
Views: 851

Selecting Input Element from within an iFrame

Hello all! there is a report that is generated daily that records the beginning, end, and total runtime of a nightly process. I'd like to pull these times out using autohotkey. Work with the website, the input field I'm attempting to manipulate is deep with an iFrame. Below is the HTML tree structur...
by rynsp8
23 Mar 2018, 14:41
Forum: Ask For Help
Topic: Send text to <input> value
Replies: 0
Views: 441

Send text to <input> value

So, I need to send text to an input field in an HTML page that doesn't use ID or CLASS. This HTML page doesn't use ID or CLASS anywhere. I've been able to select the <input> element a few ways: 1) pwb.document.getElementsByTagName("input")[18].value 2) pwb.document.GetElementsByName("FindText")[0].V...
by rynsp8
02 Mar 2018, 11:00
Forum: Ask For Help
Topic: More DOM manipulation Topic is solved
Replies: 1
Views: 440

Re: More DOM manipulation Topic is solved

Never mind.... answered my own question.

Go to advanced search