AutoHotkey Community

It is currently May 26th, 2012, 11:53 pm

All times are UTC [ DST ]




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 65 posts ]  Go to page Previous  1, 2, 3, 4, 5
Author Message
 Post subject:
PostPosted: September 25th, 2009, 7:58 pm 
Offline

Joined: April 17th, 2009, 1:50 pm
Posts: 9
Location: Tampa, FL
I'm trudging my way through COM and I've learned a few things in the past few days. I'm stuck on referencing an element within a frame. So far I am able to reference the frame named "navTop". But where do I go from there to reference indexSource 33 within "navTop" so that I can change it's value? Thanks.

Here's what I have so far:
Code:
hdrframe:=COM_Invoke(frames:=COM_Invoke(document:=COM_Invoke(pwb,"Document"),"frames"),"Item","navTop")


I hope I'm getting this... :?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 25th, 2009, 9:17 pm 
Offline
User avatar

Joined: December 21st, 2007, 3:14 pm
Posts: 3826
Location: Louisville KY USA
e1miran wrote:
I'm trudging my way through COM and I've learned a few things in the past few days. I'm stuck on referencing an element within a frame. So far I am able to reference the frame named "navTop". But where do I go from there to reference indexSource 33 within "navTop" so that I can change it's value? Thanks.

Here's what I have so far:
Code:
hdrframe:=COM_Invoke(frames:=COM_Invoke(document:=COM_Invoke(pwb,"Document"),"frames"),"Item","navTop")


I hope I'm getting this... :?

good goin I have naswered this elsewehre but ill do it again in a rare (for me) act of niceness
first i know its pitiful i havent updated this thread to support Seans rework of COM_Invoke and the dotted syntax lets start by rewriting what you already have
Code:
element33:=COM_Invoke(pwb,"Document.frames.Item[navTop].")

lets take it a step further to your element
Code:
hdrframe:=COM_Invoke(pwb,"Document.frames.Item[navTop].contentwindow.document.all.item[33].")
now all you need to decide is which property to use
value innerhtml etc can you figure this out from here?

_________________
No matter what your oppinion Please join this discussion
Formal request to Polyethene
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 26th, 2009, 2:47 am 
Offline

Joined: April 17th, 2009, 1:50 pm
Posts: 9
Location: Tampa, FL
Thanks tank much appreciated. I know it took effort to be nice ;). I think I can take it from here. Plus now I see I have to study Sean's original thread as well.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 26th, 2009, 3:00 am 
Offline
User avatar

Joined: December 21st, 2007, 3:14 pm
Posts: 3826
Location: Louisville KY USA
fyi i was nice because it was apparent you had put some effort into it

feel free to ask for help any time with that attitude in mind

by the way i seem to have mixxxed up the variable names in my earlier post but i assume you can see that

_________________
No matter what your oppinion Please join this discussion
Formal request to Polyethene
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 12th, 2009, 10:11 pm 
Offline
User avatar

Joined: December 21st, 2007, 3:14 pm
Posts: 3826
Location: Louisville KY USA
I have asked this thread be locked because it is outdated and i no longer have the time to keep up with it in the future please refer to http://www.autohotkey.com/forum/viewtopic.php?t=51020

_________________
No matter what your oppinion Please join this discussion
Formal request to Polyethene
Image


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 65 posts ]  Go to page Previous  1, 2, 3, 4, 5

All times are UTC [ DST ]


Who is online

Users browsing this forum: Apollo, Google Feedfetcher, iDrug and 55 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group