Hello everyone, its me again. This time i require some help with X-GUI.dll
I can't seem to get the coding right or something. I have the coding i am using to one of my friends, and it worked for them, but it wont work for me. No Clue what the problem is.
menu channel {
Open Website in script:{
var %a = $$?="website url"
window -p @navigator
echo -a $dll(nHTMLn_2.95.dll,attach,$window(@navigator).hwnd)
echo -a $dll(nHTMLn_2.95.dll,navigate,%a)
}
Mouse Window:window -p @mouse
}
menu @mouse {
Dclick: echo -s X = $mouse.x | echo -s Y = $mouse.y
}
ON *:SIGNAL:xGUI:{
if ($1 == @navigator) && ($2 == rclick) && ($3 == 1) { echo -a $dll(nHTMLn_2.95.dll,navigate,back) }
elseif ($1 == @navigator) && ($2 == rclick) && ($3 == 2) { echo -a $dll(nHTMLn_2.95.dll,navigate,forward) }
elseif ($1 == @navigator) && ($2 == rclick) && ($3 == 3) { echo -a $dll(nHTMLn_2.95.dll,navigate,refresh) }
elseif ($1 == @navigator) && ($2 == rclick) && ($3 == 4) { echo -a $dll(nHTMLn_2.95.dll,navigate,home) }
elseif ($1 == @navigator) && ($2 == rclick) && ($3 == 5) { echo -a $dll(nHTMLn_2.95.dll,navigate,stop) }
elseif ($1 == @navigator) && ($2 == rclick) && ($3 == 6) { echo -a $dll(nHTMLn_2.95.dll,navigate,search) }
else { halt }
}
alias addbuttons {
dll x-GUI.dll Mark @navigator
dll x-GUI.dll Create @navigator > button 1 0 0 30 20 flat > Back
dll x-GUI.dll Create @navigator > button 2 30 0 30 20 flat > Forward
dll x-GUI.dll Create @navigator > button 3 60 0 30 20 flat > Refresh
dll x-GUI.dll Create @navigator > button 4 90 0 30 20 flat > Home
dll x-GUI.dll Create @navigator > button 5 120 0 30 20 flat > Stop
dll x-GUI.dll Create @navigator > button 6 150 0 30 20 flat > Search
dll x-GUI.dll Create @navigator > text 7 180 0 50 20 center > Right click to use
}
Anyone see an error in this?
Thanks in advanced,
--SpAzZ--