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 

Embed an Internet Explorer control in your AHK Gui via COM
Goto page Previous  1, 2, 3 ... 16, 17, 18, 19, 20, 21  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
Sean



Joined: 12 Feb 2007
Posts: 2211

PostPosted: Thu Mar 26, 2009 10:45 am    Post subject: Reply with quote

1 means that the message was not processed, i.e., ignored by the webpage. What happens if using iexplore.exe? Which version of IE are you using?
Back to top
View user's profile Send private message
rulfzid



Joined: 27 Nov 2008
Posts: 62

PostPosted: Fri Mar 27, 2009 2:43 am    Post subject: Reply with quote

Sean wrote:
1 means that the message was not processed, i.e., ignored by the webpage. What happens if using iexplore.exe? Which version of IE are you using?


I'm using IE7.

I don't know what you mean by "what happens if using iexplore.exe". Is that different from this method?

If it helps any, it also exhibits the exact same behavior if use "Mozilla.Browser" instead of "Shell.Explorer".
Back to top
View user's profile Send private message
Sean



Joined: 12 Feb 2007
Posts: 2211

PostPosted: Fri Mar 27, 2009 4:26 am    Post subject: Reply with quote

rulfzid wrote:
I don't know what you mean by "what happens if using iexplore.exe". Is that different from this method?
WebBrowser control is not IE. So, did it work or not with IE7?
Back to top
View user's profile Send private message
Joy2DWorld



Joined: 04 Dec 2006
Posts: 537
Location: Galil, Israel

PostPosted: Fri Mar 27, 2009 6:04 am    Post subject: Reply with quote

Sean wrote:
rulfzid wrote:
I don't know what you mean by "what happens if using iexplore.exe". Is that different from this method?
WebBrowser control is not IE. So, did it work or not with IE7?


just to note, if helpful, thread title is "Embed an Internet Explorer control", so distinctions with webbrowser control not automatically so clear to new students.


http://msdn.microsoft.com/en-us/library/aa752084(VS.85).aspx


vs


http://msdn.microsoft.com/en-us/library/aa752085(VS.85).aspx
_________________
Joyce Jamce
Back to top
View user's profile Send private message
Sean



Joined: 12 Feb 2007
Posts: 2211

PostPosted: Fri Mar 27, 2009 10:42 am    Post subject: Reply with quote

Joy2DWorld wrote:
just to note, if helpful, thread title is "Embed an Internet Explorer control", so distinctions with webbrowser control not automatically so clear to new students.
No, I didn't mean it in that sense. Maybe I should have put it this way: IE is not a mere WebBrowser control. Anyway, I'm suspecting this is a glitch in IE7, although his saying that Mozilla.Browser control also showed the symptom confused me. If so, there are two possible solutions. Upgrade to IE8 which I did a few days ago and it works correctly with the page. Or inject JS code to force the form field to respond to Enter key.
Back to top
View user's profile Send private message
Guest






PostPosted: Fri Mar 27, 2009 11:32 am    Post subject: Reply with quote

On certain pages the embedded IE pops up javascript error dialogs while my normal IE doesn't do that, only indicates the error at the bottom of the page.

Is there a way to stop the embedded ie from using error dialogs?
Back to top
Joy2DWorld



Joined: 04 Dec 2006
Posts: 537
Location: Galil, Israel

PostPosted: Fri Mar 27, 2009 3:23 pm    Post subject: Reply with quote

Sean wrote:
Maybe I should have put it this way: IE is not a mere WebBrowser control. Anyway, I'm suspecting this is a glitch in IE7, although his saying that Mozilla.Browser control also showed the symptom confused me. If so, there are two possible solutions. Upgrade to IE8 which I did a few days ago and it works correctly with the page. Or inject JS code to force the form field to respond to Enter key.


curious about mozilla control. Wonder is anyone has a web page with breakdown of where & how to for it ?
_________________
Joyce Jamce
Back to top
View user's profile Send private message
Sean



Joined: 12 Feb 2007
Posts: 2211

PostPosted: Sat Mar 28, 2009 12:00 am    Post subject: Reply with quote

Joy2DWorld wrote:
curious about mozilla control. Wonder is anyone has a web page with breakdown of where & how to for it ?
I suppose he used the old control which is based on mozilla v1.x or around. I heard that xulrunner includes the one based on the newest engine.
https://developer.mozilla.org/en/XULRunner
Back to top
View user's profile Send private message
Sean



Joined: 12 Feb 2007
Posts: 2211

PostPosted: Sat Mar 28, 2009 12:05 am    Post subject: Reply with quote

Quote:
Is there a way to stop the embedded ie from using error dialogs?
Code:
COM_Invoke(pweb,"Silent",True)
Back to top
View user's profile Send private message
Guest






PostPosted: Sat Mar 28, 2009 1:14 pm    Post subject: Reply with quote

Sean wrote:
Code:
COM_Invoke(pweb,"Silent",True)


Thanks!
Back to top
DHMH



Joined: 17 Jul 2008
Posts: 194

PostPosted: Sat Mar 28, 2009 2:14 pm    Post subject: Reply with quote

Hi Sean,
thanks for your great functions Smile Cool
Maybe you can help me with my problem:
I create a control using this:
Code:
pwb := COM_AtlAxCreateControl(WinExist(), "Shell.Explorer")

But i want to re-positioning the control with ControlMove :
Code:
ControlMove,ahk_class Internet Explorer_Server1,0,30,800,600,%scriptname% - %ver% - %preview%
But this doesnīt work Sad Why not ?
Greets and thanks in advance,
DHMH
_________________
Tips & Tricks for Windows XP and Vista... only german! sorry!
German Computerboard
Back to top
View user's profile Send private message Visit poster's website
Sean



Joined: 12 Feb 2007
Posts: 2211

PostPosted: Sat Mar 28, 2009 4:55 pm    Post subject: Reply with quote

DHMH wrote:
Code:
ControlMove,ahk_class Internet Explorer_Server1,0,30,800,600,%scriptname% - %ver% - %preview%
Your caption is incorrect. BTW, if you want to move/size it later, better use COM_AtlAxCreateContainer.
Code:
pwb := COM_AtlAxGetControl(hAx:=COM_AtlAxCreateContainer(WinExist(), 10, 10, 800, 600, "Shell.Explorer"))

Code:
ControlMove,, 0, 30, 800, 600, ahk_id %hAx%


Last edited by Sean on Sun Mar 29, 2009 1:37 pm; edited 1 time in total
Back to top
View user's profile Send private message
DHMH



Joined: 17 Jul 2008
Posts: 194

PostPosted: Sun Mar 29, 2009 10:06 am    Post subject: Reply with quote

Thank you Sean!
Two things:
- 1st thing is: In your Script isnīt a function called COM_GetControl()
- 2nd thing is: Normally i would use IE_Add() for the creation of the control, but there isnīt a scrollbar Sad can you help me to fix this ?
Greets and thanks,
dhmh
_________________
Tips & Tricks for Windows XP and Vista... only german! sorry!
German Computerboard
Back to top
View user's profile Send private message Visit poster's website
Sean



Joined: 12 Feb 2007
Posts: 2211

PostPosted: Sun Mar 29, 2009 1:44 pm    Post subject: Reply with quote

DHMH wrote:
- 1st thing is: In your Script isnīt a function called COM_GetControl()
Oh, sorry, it's COM_AtlAxGetControl(). Now, I usually don't test the code posted in the forum as my custom COM library is too different from COM.ahk in the forum.
Quote:
- 2nd thing is: Normally i would use IE_Add() for the creation of the control, but there isnīt a scrollbar
Don't use IE.ahk, it's no longer maintained. I don't even keep it in my machine, neither CoHelper.ahk nor COM.ahk. Use instead the code just posted. Although I'm not so sure, the function in COM.ahk may have set the flag for the scroll bar.
Back to top
View user's profile Send private message
DHMH



Joined: 17 Jul 2008
Posts: 194

PostPosted: Sun Mar 29, 2009 1:58 pm    Post subject: Reply with quote

Ok, thank you Sean! Now it works!
But there also isnīt a scrollbar Sad Can you help me to insert the flag ?
(from Page 1) ? I donīt know, where to insert
Quote:
Code:
, "Uint", 0x10000000 | 0x40000000 | 0x04200000   ; WS_VISIBLE | WS_CHILD | ...
?
Please help me!
Greets,
DHMH

// EDIT:
Sorry Sean, it was my fault, the problem was the Size of the window, the sourcebar was hidden ! Rolling Eyes Surprised Laughing Thank you!
_________________
Tips & Tricks for Windows XP and Vista... only german! sorry!
German Computerboard
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page Previous  1, 2, 3 ... 16, 17, 18, 19, 20, 21  Next
Page 17 of 21

 
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