shortcut command

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
link76
Posts: 99
Joined: Fri Nov 04, 2011 1:52 pm

shortcut command

Post by link76 » Fri Jan 10, 2014 11:28 am

Hello,
I would like to simulate pressing CTRL + C on double click, and copy the contents selected on the dg in the clip-board,

thank you

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10332
Joined: Wed May 06, 2009 2:28 pm

Re: shortcut command

Post by dunbarx » Fri Jan 10, 2014 2:58 pm

Hi.

As a quick test, make a datagrid with several line of data in it, and a button. Place this in the button script:

Code: Select all

on mouseDoubleUp
   get the dgHilitedLines of grp 1
end mouseDoubleUp


Hilite a line in the DG, and then click the button.

Now this only returns the line number that was selected, but you can substitute any other property of the DG that you need.

Craig Newman

Post Reply