AutoHotkey Community

It is currently May 27th, 2012, 10:36 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 82 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6
Author Message
 Post subject:
PostPosted: June 30th, 2008, 5:20 am 
Offline
User avatar

Joined: December 21st, 2007, 3:14 pm
Posts: 3826
Location: Louisville KY USA
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")

_________________
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: June 30th, 2008, 2:23 pm 
Offline

Joined: December 4th, 2006, 10:35 am
Posts: 561
Location: Galil, Israel
actually not seem to work for me.

Windows.Item not seem actual...

_________________
Joyce Jamce


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 30th, 2008, 4:41 pm 
Offline
User avatar

Joined: December 21st, 2007, 3:14 pm
Posts: 3826
Location: Louisville KY USA
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

_________________
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: June 30th, 2008, 4:43 pm 
Offline

Joined: February 12th, 2007, 7:54 am
Posts: 2462
Joy2DWorld wrote:
Windows.Item not seem actual...

To create ShellWindows object explorer.exe should be set as the shell. And Item is 0-based.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 30th, 2008, 5:36 pm 
Offline
User avatar

Joined: December 21st, 2007, 3:14 pm
Posts: 3826
Location: Louisville KY USA
hadnt thoguth about alternate shell thanks for pointing that out
yes item is 0 based this is why i said second window or tab

_________________
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: July 1st, 2008, 1:16 am 
Offline

Joined: February 12th, 2007, 7:54 am
Posts: 2462
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 1st, 2008, 1:19 am 
Offline

Joined: December 4th, 2006, 10:35 am
Posts: 561
Location: Galil, Israel
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


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 82 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 9 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