Iconic Drag and Drop

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
WaltBrown
Posts: 466
Joined: Mon May 11, 2009 9:12 pm

Iconic Drag and Drop

Post by WaltBrown » Sun Aug 10, 2014 3:33 am

Is there a way for a standalone to sit on my desktop as an icon (Win7 in this case) and allow me to drag and drop a file on it, and NOT open yet still function? I want the user to be able to double click on it to open the stack to do any human required task, but if they drop a file on it, I want it to redirect the file, based on it's name or extension, to some other app, in this case a reader/parser, without human interaction.

For example, the stack script might have (in pseudo-code):

Code: Select all

on doubleClickOnMyIcon
    openUserInterfaceAndDoUserStuff
end doubleClickOnMyIcon

on dropAFileOnMe
    sendTheFileToAParserBasedOnItsFileExtensionWithoutOpeningTheApp
end dropAFileOnMe    
       
Does that make sense?
Thanks!
Walt Brown
Omnis traductor traditor

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10052
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Iconic Drag and Drop

Post by FourthWorld » Sun Aug 10, 2014 3:58 am

Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

WaltBrown
Posts: 466
Joined: Mon May 11, 2009 9:12 pm

Re: Iconic Drag and Drop

Post by WaltBrown » Sun Aug 10, 2014 1:03 pm

Perfect, thank you Richard. It implies I can put all my drag and drop handling in the preOpenStack handler. I'll experiment a bit more.
Walt Brown
Omnis traductor traditor

Post Reply