Drag and Drop File to Input control appends filename instead of replacing
Go to solution
Solved by PhoenixXL,
-
Recently Browsing 0 members
No registered users viewing this page.
-
Similar Content
-
By Kovacic
I am working on a script that uses drag and drop, but is supposed to be run under different creds. I noticed Drag and dropping a file does nothing when the script is being Runas other credentials..
Try this..
Using the code below, compile it, then runas another user (another domain user preferably) and try to drag a file to it. Then try it without using RunAs..
#include <GUIConstantsEx.au3> #include <WindowsConstants.au3> Example() Func Example() GUICreate("Drop a file here", 220, 200, 100, 100, -1, $WS_EX_ACCEPTFILES) $listview = GUICtrlCreateLabel("Drag a file here", 10, 10, 200, 150) GUICtrlSetState(-1, $GUI_DROPACCEPTED) GUISetState() Do $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_DROPPED Msgbox(0,"Found it!","Hey I see you dragged a file over:" & @CRLF & @GUI_DRAGFILE) EndSelect Until $msg = $GUI_EVENT_CLOSE EndFunc I tried compiling under X86 and X64 and in both cases, while running using runas does not show the file.
Has anyone found a fix for this?
-
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