seadoggie01 Posted December 12, 2019 Share Posted December 12, 2019 I'm trying to drag and drop a file onto my GUI without hitting any particular control. I tried capturing it with the $GUI_EVENT_DROPPED event, but that only catches files dropped onto controls. Is there a way to see files dropped onto the background? I've seen a few topics related to this, but all of them are trying to drop onto a control 😐 All my code provided is Public Domain... but it may not work. Use it, change it, break it, whatever you want. Spoiler My Humble Contributions:Personal Function Documentation - A personal HelpFile for your functionsAcro.au3 UDF - Automating Acrobat ProToDo Finder - Find #ToDo: lines in your scriptsUI-SimpleWrappers UDF - Use UI Automation more Simply-erKeePass UDF - Automate KeePass, a password managerInputBoxes - Simple Input boxes for various variable types Link to comment Share on other sites More sharing options...
Nine Posted December 12, 2019 Share Posted December 12, 2019 There : #include <Constants.au3> #include <GUIConstants.au3> Local $hGUI = GUICreate ("Test", 300, 300, -1, -1,-1, $WS_EX_ACCEPTFILES) Local $idDummy = GUICtrlCreateLabel ("",0,0,300,300) GUICtrlSetState(-1, $GUI_DROPACCEPTED+$GUI_DISABLE) Local $idButton = GUICtrlCreateButton ("OK", 100,200,100,30) GUISetState () While True Switch GUIGetMsg () Case $GUI_EVENT_CLOSE, $idButton ExitLoop Case $GUI_EVENT_DROPPED ConsoleWrite ("dropped " & @GUI_DropId & @CRLF) EndSwitch WEnd seadoggie01 and pixelsearch 1 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...
seadoggie01 Posted December 12, 2019 Author Share Posted December 12, 2019 Oh, that's genius... thank you! I thought a disabled control would be visible and not take events. All my code provided is Public Domain... but it may not work. Use it, change it, break it, whatever you want. Spoiler My Humble Contributions:Personal Function Documentation - A personal HelpFile for your functionsAcro.au3 UDF - Automating Acrobat ProToDo Finder - Find #ToDo: lines in your scriptsUI-SimpleWrappers UDF - Use UI Automation more Simply-erKeePass UDF - Automate KeePass, a password managerInputBoxes - Simple Input boxes for various variable types 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