| View previous topic :: View next topic |
| Author |
Message |
e1miran
Joined: 17 Apr 2009 Posts: 9 Location: Tampa, FL
|
Posted: Fri Sep 25, 2009 6:58 pm Post subject: |
|
|
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...  |
|
| Back to top |
|
 |
tank
Joined: 21 Dec 2007 Posts: 3700 Location: Louisville KY USA
|
Posted: Fri Sep 25, 2009 8:17 pm Post subject: |
|
|
| 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? _________________
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 |
|
 |
e1miran
Joined: 17 Apr 2009 Posts: 9 Location: Tampa, FL
|
Posted: Sat Sep 26, 2009 1:47 am Post subject: |
|
|
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. |
|
| Back to top |
|
 |
tank
Joined: 21 Dec 2007 Posts: 3700 Location: Louisville KY USA
|
Posted: Sat Sep 26, 2009 2:00 am Post subject: |
|
|
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 |
|
 |
tank
Joined: 21 Dec 2007 Posts: 3700 Location: Louisville KY USA
|
Posted: Thu Nov 12, 2009 9:11 pm Post subject: |
|
|
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 |
|
 |
|