Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

references to dragged and dropped objects?

$
0
0

Hello,

 

I searched the forum about this, but at the moment, without sucess.

I would like to drag an image (or a generic gui object) picked from an autoit gui and then I would drop it on another one of the same gui,

is there an easy way to accomplish this mechanism in autoit and get the references of both objects?

for example, if I compile this simple script, and then I drag an image or a file from Explorer and I drop it to the executable, I get the path of the dropped file by reading the $CmdLine[1] variable

If $CmdLine[0] = 1 Then MsgBox (0, "", "this file " & @CRLF & $CmdLine[1] & @CRLF & "was dropped to me.", 0) EndIf If $CmdLine[0] = 0 Then MsgBox (0, "", "none dropped", 0) EndIf

well, I wonder if such mechanism can be accomplished within the same script so to be able to get, maybe by an array, references to dragged object, and object receiving the dropped object

any suggestion is welcome

thanks


Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>