AutoHotkey Community

It is currently May 26th, 2012, 4:36 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 309 posts ]  Go to page Previous  1 ... 14, 15, 16, 17, 18, 19, 20, 21  Next
Author Message
 Post subject:
PostPosted: March 26th, 2009, 10:45 am 
Offline

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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 27th, 2009, 2:43 am 
Offline

Joined: November 27th, 2008, 9:44 am
Posts: 62
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".


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 27th, 2009, 4:26 am 
Offline

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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 27th, 2009, 6:04 am 
Offline

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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 27th, 2009, 10:42 am 
Offline

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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 27th, 2009, 11:32 am 
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?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 27th, 2009, 3:23 pm 
Offline

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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 28th, 2009, 12:00 am 
Offline

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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 28th, 2009, 12:05 am 
Offline

Joined: February 12th, 2007, 7:54 am
Posts: 2462
Quote:
Is there a way to stop the embedded ie from using error dialogs?
Code:
COM_Invoke(pweb,"Silent",True)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 28th, 2009, 1:14 pm 
Sean wrote:
Code:
COM_Invoke(pweb,"Silent",True)


Thanks!


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 28th, 2009, 2:14 pm 
Offline

Joined: July 17th, 2008, 9:46 am
Posts: 225
Hi Sean,
thanks for your great functions :) 8)
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 :( Why not ?
Greets and thanks in advance,
DHMH


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 28th, 2009, 4:55 pm 
Offline

Joined: February 12th, 2007, 7:54 am
Posts: 2462
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 March 29th, 2009, 1:37 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 29th, 2009, 10:06 am 
Offline

Joined: July 17th, 2008, 9:46 am
Posts: 225
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 :( can you help me to fix this ?
Greets and thanks,
dhmh


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 29th, 2009, 1:44 pm 
Offline

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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 29th, 2009, 1:58 pm 
Offline

Joined: July 17th, 2008, 9:46 am
Posts: 225
Ok, thank you Sean! Now it works!
But there also isn´t a scrollbar :( 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 ! :roll: :o :lol: Thank you!


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 309 posts ]  Go to page Previous  1 ... 14, 15, 16, 17, 18, 19, 20, 21  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: maul.esel and 13 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