jWalker Posted October 26, 2011 Share Posted October 26, 2011 Hey guys! i want to make a desktop dock where you can drag and drop shortcuts or other files into. all i have is this: expandcollapse popup#include <GUIConstantsEx.au3> #include <ButtonConstants.au3> #include <EditConstants.au3> #include <WindowsConstants.au3> #include <WinAPI.au3> Global $DesktopWidth = _WinAPI_GetSystemMetrics( 78 ) Global $DesktopHeight = _WinAPI_GetSystemMetrics( 79 ) $RolloutTrigger = False $mainwidth = @DesktopWidth / 2 $mainheight = 100 $mainx = (@DesktopWidth / 2) - $mainwidth / 2 $mainy = - 25 #Region ### START Koda GUI section ### Form=C:\Users\Fi\Downloads\install\SciTe\Koda\Forms\Form1.kxf $MAIN = GUICreate("evrySETTING", $mainwidth, $mainheight, $mainx, $mainy, 0, $WS_EX_ACCEPTFILES) $DRAGBOX = GUICtrlCreateInput( "", -10, -10, $mainwidth + 10, $mainheight + 10, BitOR($GUI_SS_DEFAULT_INPUT,$ES_NOHIDESEL,$ES_READONLY)) GUICtrlSetBkColor( -1, 0x000000 ) GUICtrlSetCursor( -1, 2 ) GUISetState(@SW_SHOW) GUICtrlSetState($DRAGBOX, $GUI_DROPACCEPTED) #EndRegion ### END Koda GUI section ### While 1 If $RolloutTrigger == True Then DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $MAIN, "int", 500, "long", 0x00080000);fade-in ElseIf $RolloutTrigger == False Then DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $MAIN, "int", 500, "long", 0x00090000);fade-out EndIf $MouseXY = MouseGetPos( ) If $RolloutTrigger == False Then If $MouseXY[1] < 5 Then $RolloutTrigger = True EndIf ElseIf $RolloutTrigger == True Then If $MouseXY[1] > 60 Then $RolloutTrigger = False EndIf EndIf $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Now i want to have the ability to drag and drop files to this "toolbar". When i dragged them there, a little gui comes up to enter the name of this shortcut etc.... I have no clue how to make this possible When i read the filepath from the input... how can i show this icon there... should i take an input as a drag n drop field? any ideas and / or directions so that i can start with this? I don't want to start with anything and then realize that this leads to nothing Link to comment Share on other sites More sharing options...
bogQ Posted October 26, 2011 Share Posted October 26, 2011 When i read the filepath from the input... how can i show this icon there... should i take an input as a drag n drop field?any ideas and / or directions so that i can start with this? I don't want to start with anything and then realize that this leads to nothing maby for icons this can help TCP server and client - Learning about TCP servers and clients connectionAu3 oIrrlicht - Irrlicht projectAu3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related) There are those that believe that the perfect heist lies in the preparation.Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost. 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