dantay9 Posted September 16, 2009 Share Posted September 16, 2009 (edited) I am trying to replicate something like RocketDock, but with a little bit of QuickSilver in it. The project is progressing very well. I have run into a bit of a roadblock though. I have several GUIRegisterMsg calls and a single mouse hook. My problem is that the hook is activated before the registered message. Specifically, when I drag a file (such as a .exe) onto a spot on the toolbar that already has an icon, the program runs because the LowLevelMouseProc function is called on the $WM_LBUTTONUP command. This is called before the drag function on line 187 in Includes.au3. Because of this order, dragging a file onto a space already assigned causes the program to run. Is there a way to allow the program to run on $WM_LBUTTONUP except when something is being drug onto that spot? Files removed to conserve space. Edited September 20, 2009 by dantay9 Link to comment Share on other sites More sharing options...
dantay9 Posted September 16, 2009 Author Share Posted September 16, 2009 *bump* Maybe there is a way to tell if a file is being dragged before it is dropped? Link to comment Share on other sites More sharing options...
Yashied Posted September 16, 2009 Share Posted September 16, 2009 http://msdn.microsoft.com/en-us/library/ms679679%28VS.85%29.aspx My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More... Link to comment Share on other sites More sharing options...
dantay9 Posted September 17, 2009 Author Share Posted September 17, 2009 I see that I am able to simulate the drag function manaully. I think the DragEnter and DragOver methods are what I am looking for. I am not very good at dll calls, let alone methods. Is there a way to hook the DragEnter or DragOver methods without having to simulate the whole dragging process? Link to comment Share on other sites More sharing options...
dantay9 Posted September 17, 2009 Author Share Posted September 17, 2009 It seems, from the lack of replies, that the fix to this problem would be very involved. From what I have read from google and from the link Yashied posted, it seems I would have to write my own drag and drop functions which is difficult. Unless someone can shed some light on this solution, I think it is time to move on and try to find another fix. My problem is when I drag a file onto an already occupied space, the shortcut that was already there is executed. Does anyone have any other ideas on how to fix this problem, even if it means going at a totally different angle? Link to comment Share on other sites More sharing options...
dantay9 Posted September 18, 2009 Author Share Posted September 18, 2009 OK. I decided to just ignore any drops unless it is on an empty spot. This isn't really that much more difficult for the user, but it is easier to code. Link to comment Share on other sites More sharing options...
Yashied Posted September 18, 2009 Share Posted September 18, 2009 dantay9, look at this, but it is complex for AutoIt.I see you use my _GetRegDefIcon(), but this function is not perfect. Look at _WinAPI_AssocQueryString() from WinAPIEx.au3. It is only known to me "normal" way to get the location of icons for the registered file types and much more. My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More... 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