AutoHotkey Community

It is currently May 27th, 2012, 3:59 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 309 posts ]  Go to page Previous  1 ... 17, 18, 19, 20, 21
Author Message
 Post subject:
PostPosted: September 14th, 2009, 4:05 pm 
Code:
#NoEnv
#SingleInstance force
SendMode Input
SetBatchLines, -1
DetectHiddenWindows, On

  IE_Init()

  Gui, +Resize +LastFound
  Gui, Show, w800 h600 Center, Test
  hGui:= WinExist()
  pwb := IE_Add(hGui, 10, 10, 780, 580)

  pipa := COM_QueryInterface(pwb, IOleInPlaceActiveObject_Interface)
  OnMessage(WM_KEYUP:=0x0101, "WM_KEYDOWN")
  OnMessage(WM_KEYDOWN:=0x0100, "WM_KEYDOWN")

  IE_LoadURL(pwb, "http://www.google.com/")
return

GuiClose:
  Gui, Destroy
  COM_Release(pwb)
  IE_Term()
  ExitApp
return

#include inc\COM.ahk
#include inc\IE.ahk

WM_KEYDOWN(wParam, lParam, nMsg, hWnd)
{
;   If   (wParam = 0x08 || wParam = 0x09 || wParam = 0x0D || wParam = 0x26 || wParam = 0x28 || wParam = 0x2E || wParam = 0x43 || wParam = 0x56 || wParam = 0x58)
   WinGetClass, Class, ahk_id %hWnd%
   If   (Class = "Internet Explorer_Server")
   {
      Global pipa
      VarSetCapacity(Msg, 28), NumPut(hWnd,Msg), NumPut(nMsg,Msg,4), NumPut(wParam,Msg,8), NumPut(lParam,Msg,12), NumPut(A_EventInfo,Msg,16), NumPut(A_GuiX,Msg,20), NumPut(A_GuiY,Msg,24)
      If DllCall(NumGet(NumGet(1*pipa)+20), "Uint", pipa, "Uint", &Msg)=0
      Return   0
   }
}


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 15th, 2009, 7:48 am 
Offline

Joined: February 12th, 2007, 7:54 am
Posts: 2462
It's missing the assignment of IOleInPlaceActiveObject_Interface.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 15th, 2009, 11:56 am 
I have found this in the forum "IE and Gui Browser Com Tutorial" :

Code:
  IOleInPlaceActiveObject_Interface:="{00000117-0000-0000-C000-000000000046}"


and it works.

Thanks a lot !!


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 15th, 2009, 1:11 pm 
Offline
User avatar

Joined: December 21st, 2007, 3:14 pm
Posts: 3826
Location: Louisville KY USA
funny that i didnt spot that rightoff
perhapsif i put this crack pipe down

_________________
No matter what your oppinion Please join this discussion
Formal request to Polyethene
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Thanks
PostPosted: September 15th, 2009, 1:35 pm 
Thanks a lot tank and Sean for your help and great job


Report this post
Top
  
Reply with quote  
 Post subject: Re: Thanks
PostPosted: September 15th, 2009, 2:10 pm 
Offline
User avatar

Joined: December 21st, 2007, 3:14 pm
Posts: 3826
Location: Louisville KY USA
YIessa wrote:
Thanks a lot tank and Sean for your help and great job
thank sean without him none of this is even possible

_________________
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: January 7th, 2010, 4:38 pm 
sorry do not know what i iam making false but always i will handle with the IEControl.ahk he gives me this error.

http://img98.imageshack.us/img98/8953/errortl.png


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: July 26th, 2010, 1:43 pm 
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?


Report this post
Top
  
Reply with quote  
PostPosted: May 19th, 2011, 6:22 pm 
Offline

Joined: May 7th, 2011, 1:27 am
Posts: 52
Hello.

How can I do the following in AutoHotKey_L ?

Code:
#include IEControl.ahk
Gui, +lastfound
Gui1_Hwnd := WinExist() , html_string := "<body bgcolor=88888><center> <font size=5>HTML
                                         <font color=FF0000 ><u>live</u></font><i> preview!!</i>
                                         </font></center><br>`n"

Gui, Add, Edit, w700 h150   vhtml_string  gSub_html_string, %html_string%
Gui_IEAdd(Gui1_Hwnd, 10, 160, 700, 325, "about:" . html_string)
Gui, Show, h500, HTML Live...
Return

Sub_html_string:
GuiControlGet, html_string
Gui_IELoadURL( "about:" . html_string)
Return

Guiescape:
Guiclose:
ExitApp


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 ... 17, 18, 19, 20, 21

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 25 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