| View previous topic :: View next topic |
| Author |
Message |
tank
Joined: 21 Dec 2007 Posts: 1033
|
Posted: Mon Jun 30, 2008 4:20 am Post subject: |
|
|
| Code: | COM_CoInitialize()
#_oShell := COM_CreateObject("Shell.Application")
msgbox % ez_invoke("oShell.Windows.Item[1].LocationName") |
this was what i meant to do the whole time
not sure why i had revoke instead of innvoke maybe i should stop copy and paste so much
any how interesting to see
i know you have seen all the various execute js functions and even mine but check this
| Code: | COM_CoInitialize()
#_oShell := COM_CreateObject("Shell.Application")
ez_invoke("oShell.Windows.Item[1].Document.parentWindow.execScript","var xxx='this value';alert('hi')")
msgbox % ez_invoke("oShell.Windows.Item[1].Document.parentWindow.xxx") |
_________________ Read this
Com
Automate IE7 with Tabs |
|
| Back to top |
|
 |
Joy2DWorld
Joined: 04 Dec 2006 Posts: 425 Location: Galil, Israel
|
Posted: Mon Jun 30, 2008 1:23 pm Post subject: |
|
|
actually not seem to work for me.
Windows.Item not seem actual... _________________ Joyce Jamce |
|
| Back to top |
|
 |
tank
Joined: 21 Dec 2007 Posts: 1033
|
Posted: Mon Jun 30, 2008 3:41 pm Post subject: |
|
|
| Joy2DWorld wrote: | actually not seem to work for me.
Windows.Item not seem actual... |
fascinating
the below syntax is correct according to msdn
| Code: | COM_CoInitialize()
#_oShell := COM_CreateObject("Shell.Application")
ez_invoke("oShell.Windows.Item[1].Document.parentWindow.execScript","var xxx='this value';alert('hi')")
msgbox % ez_invoke("oShell.Windows.Item[1].Document.parentWindow.xxx") |
for the record so long as tab or window 2 is ie it will work
i suggest closing all non web browser windows and have only 2 ie tabs openw ehn trying this _________________ Read this
Com
Automate IE7 with Tabs |
|
| Back to top |
|
 |
Sean
Joined: 12 Feb 2007 Posts: 1397
|
Posted: Mon Jun 30, 2008 3:43 pm Post subject: |
|
|
| Joy2DWorld wrote: | | Windows.Item not seem actual... |
To create ShellWindows object explorer.exe should be set as the shell. And Item is 0-based. |
|
| Back to top |
|
 |
tank
Joined: 21 Dec 2007 Posts: 1033
|
Posted: Mon Jun 30, 2008 4:36 pm Post subject: |
|
|
hadnt thoguth about alternate shell thanks for pointing that out
yes item is 0 based this is why i said second window or tab _________________ Read this
Com
Automate IE7 with Tabs |
|
| Back to top |
|
 |
Sean
Joined: 12 Feb 2007 Posts: 1397
|
Posted: Tue Jul 01, 2008 12:16 am Post subject: |
|
|
| tank wrote: | | hadnt thoguth about alternate shell thanks for pointing that out |
Yes, numerous functions of Shell objects will not work unless explorer.exe is set as the shell. |
|
| Back to top |
|
 |
Joy2DWorld
Joined: 04 Dec 2006 Posts: 425 Location: Galil, Israel
|
Posted: Tue Jul 01, 2008 12:19 am Post subject: |
|
|
| Quote: | COM_CoInitialize()
#_oShell := COM_CreateObject("Shell.Application")
ez_invoke("oShell.Windows.Item[1].Document.parentWindow.execScript","var xxx='this value';alert('hi')")
msgbox % ez_invoke("oShell.Windows.Item[1].Document.parentWindow.xxx") | silly, but still not seem actual for me... anyhow.. _________________ Joyce Jamce |
|
| Back to top |
|
 |
|