script and URL

I don't understand

hello.
I try to make a web browser with DesktopX builder.
I want to add one search box for wikipedia.
I don't understand how to create a like towards the page
I would like to make a link as that:
(http://the_site)+(text in listbox)

I use this script:
Function Object_OnLButtonUp(x,y,dragged)
If dragged = False Then
DesktopX.ScriptObject("wiki_Browser").Control.Navigate2
DesktopX.ScriptObject("???????").Control.Text
End If
End Function

thank you
4,069 views 2 replies
Reply #1 Top
I think you need to combine the website address and search text like below:


Function Object_OnLButtonUp(x,y,dragged)
If dragged = False Then
DesktopX.ScriptObject("wiki_Browser").Control.Navigate2 "http://en.wikipedia.org/wiki/" & DesktopX.ScriptObject("textbox").Control.Text
End If
End Function



Does this help?
Reply #2 Top
thank you for answer.
I have do like that.
based on: Not Too Sure By Cyberium (dxtheme)


Dim Adresse

Function Object_OnLButtonUp(x,y,dragged)
If dragged = False Then
Adresse = "http://fr.wikipedia.org/wiki/Special:Search?search=" & DesktopX.ScriptObject("entree_texte").Control.Text
DesktopX.ScriptObject("wiki_Browser").Control.Navigate2 Adresse
End If
End Function

it's OK, but I test with your script.
thank you still