Notifications
Clear all
[Closed] WebBrowser drag Image – GET URL
Aug 07, 2015 2:27 pm
How to get the URL of a webpage if I drag an image from Web Browser(Firefox, GoogleChrome etc)?
rollout DropRollout "Drag and Drop"
(
dotNetControl DropArea "System.Windows.Forms.PictureBox" pos:[0,0] width:120 height:100
on DropArea DragOver s e do
(
e.Effect = if e.data.ContainsFileDropList() then e.Effect.Move else e.Effect.None
)
on DropArea DragDrop s e do
(
if e.data.ContainsFileDropList() do
(
data = e.data.GetFileDropList()
files = for k=0 to data.count-1 collect data.item[k]
print files
)
)
on DropRollout Open do
(
DropArea.AllowDrop = on
)
)
createDialog DropRollout 120 100
I can’t find a solution. I just get “C:\Temp\jua333cr.bmp” – the renamed downloaded image.
1 Reply
Aug 07, 2015 2:27 pm
ImageURL = (e.Data.GetText())
But still, how to get the URL of the Web Page where this image was taken from?