marty Professional Member


Joined: 10 May 2001 Posts: 789
|
Posted: Tue Oct 04, 2005 2:06 am Post subject: DDE Internet Explorer Question |
|
|
Hi,
I have been trying to use the DDE request WWW_RegisterURLEcho of Internet Explorer and also the WWW_URLEcho.
In order to make this DDE event work my VDS app needs to be DDE server.
I cant seem to make this work. Normally I am trying to receive an event ddemacro() when a new URL is being entered in IE.
Here is the code I have so far, the first few comments are the help about the DDE command and event
| Code: | # Help from Microsoft Below
#RegisterURLEcho
#RegisterURLEcho requests that ApplicationName be notified of URLEcho events
#whenever a URL gets loaded. Multiple servers can be registered to get these
#notifications:
# topicName: *WWW_RegisterURLEcho*
# itemName: ApplicationName (enclosed in double quotes)
# returnValue: Non-Zero for success, 0 for failure
#ApplicationName is a DDE server that is registered to receive WWW_URLEcho
#notifications from the browser with the following information:
# topicName (hsz1): WWW_URLEcho
# itemName (hsz2): URL,MIMEType,WindowID
# <Example: "http://www.home.com <http://www.google.com/url?sa=D&q=http://www.home.com>","text/html",-1>
# Transaction: XTYP_POKE
Title ddetest
DIALOG CREATE,ddetest,-1,0,455,324,DDESERVER WWW_URLEcho
#DIALOG CREATE,ddetest,-1,0,455,324,DDESERVER WWW_RegisterURLEcho
DIALOG ADD,LIST,LIST1,46,38,374,218
DIALOG ADD,BUTTON,BUTTON1,287,67,,,BUTTON1
DIALOG ADD,BUTTON,BUTTON2,287,140,64,24,BUTTON2
DIALOG SHOW
#%%rq = "ddetest"
# %%app = @ddeitem(%%rq)
# DDE link,ddetest,WWW_URLEcho
DDE LINK,IExplore,WWW_RegisterURLEcho
DDE POKE,"ddetest",0
#requestdata
# DDE LINK,IExplore,system
# %T = @ddeitem(topics)
# wait 1
# info bb %t
:Evloop
wait event
goto @event()
:DDEMACRO
info @ddemac()
DDE LINK,IExplore,WWW_GetWindowInfo
%%rq = "0xFFFFFFFF,sURL"
list add,list1,@ddeitem(%%rq)
goto evloop
:BUTTON1BUTTON
:BUTTON2BUTTON
goto evloop
:Close
exit
|
Anyone has ideas?
Thank you  |
|