lee321987 Posted May 1, 2019 Share Posted May 1, 2019 Hello. I'd like to create a button that accepts drag and drop from a link in my web browser, then I'll do something with the URL that the hyperlink points to. Is this possible? Link to comment Share on other sites More sharing options...
Nine Posted May 1, 2019 Share Posted May 1, 2019 You can only do it with a rich edit... lee321987 1 “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
supraaxdd Posted May 9, 2019 Share Posted May 9, 2019 On 5/1/2019 at 4:29 AM, lee321987 said: Hello. I'd like to create a button that accepts drag and drop from a link in my web browser, then I'll do something with the URL that the hyperlink points to. Is this possible? Are you looking for a button that contains a variable that you can edit along the way or include it in something else? Regards, Supra Link to comment Share on other sites More sharing options...
lee321987 Posted May 14, 2019 Author Share Posted May 14, 2019 (edited) On 5/9/2019 at 2:44 PM, supraaxdd said: Are you looking for a button that contains a variable that you can edit along the way or include it in something else? I wrote a program that downloads a file (getting the URL from the clipboard). I want to make the button do the same thing if I drag a link from the web browser onto the button. Edited May 14, 2019 by lee321987 Link to comment Share on other sites More sharing options...
supraaxdd Posted May 15, 2019 Share Posted May 15, 2019 (edited) @lee321987, I am not an expert in this but I don't know if you are able to do that. Please wait until a more experienced member of the community comes because I don't want to give you false information. Above, Nine said: You can only do it with a rich edit... There is probably a way, but I don't know how... Regards, Supra Edited May 15, 2019 by supraaxdd lee321987 1 Link to comment Share on other sites More sharing options...
mikell Posted May 16, 2019 Share Posted May 16, 2019 (edited) Here it is using a richedit (simple way) #include <GuiRichEdit.au3> #include <GUIConstantsEx.au3> $hGUI = GUICreate("test", 650, 50, -1, 100) $hRichEdit = _GUICtrlRichEdit_Create($hGUI, "", 10, 10, 600, 30) GUISetState() While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE _GUICtrlRichEdit_Destroy($hRichEdit) Exit EndSwitch If _GUICtrlRichEdit_IsModified($hRichEdit) Then $content = _GUICtrlRichEdit_GetText($hRichEdit) _GUICtrlRichEdit_SetModified($hRichEdit, false) Msgbox(0,"", $content) ; <<<<< do what you want with the link here _GUICtrlRichEdit_SetText($hRichEdit, "") EndIf Sleep(10) Wend Edited May 16, 2019 by mikell lee321987 1 Link to comment Share on other sites More sharing options...
lee321987 Posted May 16, 2019 Author Share Posted May 16, 2019 @mikell Thank you soooo much!! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now