AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

IE and Gui Browser Com Tutorial
Goto page Previous  1, 2, 3, 4, 5
 
This topic is locked: you cannot edit posts or make replies.    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
e1miran



Joined: 17 Apr 2009
Posts: 9
Location: Tampa, FL

PostPosted: Fri Sep 25, 2009 6:58 pm    Post subject: Reply with quote

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... Confused
Back to top
View user's profile Send private message
tank



Joined: 21 Dec 2007
Posts: 3700
Location: Louisville KY USA

PostPosted: Fri Sep 25, 2009 8:17 pm    Post subject: Reply with quote

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... Confused

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?
_________________

We are troubled on every side‚ yet not distressed; we are perplexed‚
but not in despair; Persecuted‚ but not forsaken; cast down‚ but not destroyed;
Back to top
View user's profile Send private message
e1miran



Joined: 17 Apr 2009
Posts: 9
Location: Tampa, FL

PostPosted: Sat Sep 26, 2009 1:47 am    Post subject: Reply with quote

Thanks tank much appreciated. I know it took effort to be nice Wink. I think I can take it from here. Plus now I see I have to study Sean's original thread as well.
Back to top
View user's profile Send private message
tank



Joined: 21 Dec 2007
Posts: 3700
Location: Louisville KY USA

PostPosted: Sat Sep 26, 2009 2:00 am    Post subject: Reply with quote

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
_________________

We are troubled on every side‚ yet not distressed; we are perplexed‚
but not in despair; Persecuted‚ but not forsaken; cast down‚ but not destroyed;
Back to top
View user's profile Send private message
tank



Joined: 21 Dec 2007
Posts: 3700
Location: Louisville KY USA

PostPosted: Thu Nov 12, 2009 9:11 pm    Post subject: Reply with quote

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
_________________

We are troubled on every side‚ yet not distressed; we are perplexed‚
but not in despair; Persecuted‚ but not forsaken; cast down‚ but not destroyed;
Back to top
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies.    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page Previous  1, 2, 3, 4, 5
Page 5 of 5

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group