nobbe Posted February 22, 2008 Share Posted February 22, 2008 hi is it possible to receive the drop of an internet browser URL to my dialog? the standard "file drop" functions dont work Link to comment Share on other sites More sharing options...
martin Posted February 22, 2008 Share Posted February 22, 2008 (edited) hi is it possible to receive the drop of an internet browser URL to my dialog? the standard "file drop" functions dont work There is probably a clever way to do it, but meanwhile, you can always use dum methods like this one #include <GUIConstants.au3> #include <misc.au3> $gui = GUICreate("Drag Any Text From Another Window To Edit", 400, 300, -1, -1, -1) $ed1 = GUICtrlCreateEdit("", 10, 10, 200, 100, -1) GUISetState(@SW_SHOW) Do If _IsPressed(1) Then;if the primary mouse button is down $ci = MouseGetPos() If IsArray($ci) Then $parent = WinGetTitle('') If $parent <> $gui Then;if it's not this gui Send("^c");copy the text While _IsPressed(1);wait for drag to end Sleep(10) WEnd $dropID = GUIGetCursorInfo($gui) ;did the drag end in the Edit? If IsArray($dropID) And $dropID[4] = $ed1 Then winactivate($gui);make sure the send goes to the edit guictrlsetstate($ed1,$GUI_FOCUS) Send("^v");paste into the edit EndIf EndIf EndIf EndIf $msg = GUIGetMsg() Sleep(10) Until $msg = $GUI_EVENT_CLOSE Edited February 22, 2008 by martin Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
DaleHohm Posted February 22, 2008 Share Posted February 22, 2008 @martin - I'm glad you seem to know what he is asking. I have no clue. Dale Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble Link to comment Share on other sites More sharing options...
corz Posted January 25, 2009 Share Posted January 25, 2009 Dale, perhaps you didn't realize that you can drag a website's favicon (or default icon, if it has no favicon of its own - the one directly to the left of the URI input) from a web browser. This enables you to drop shortcuts directly onto your desktop, or wherever - all browsers can do it, afaik. But not into an AutoIt GUI, apparently.The same question was asked here..http://www.autoitscript.com/forum/index.php?showtopic=53530And here..http://www.autoitscript.com/forum/index.ph...++from++browserBut as yet, no one has come up with a satisfying answer. I too, would like to know how to do this.;o)(or nothing is foolproof to the sufficiently talented fool.. 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