Contents
Articles
Behaviors
Books
Director News
Director Web Sites
FAQ
Games
Mailing Lists
News Groups
Project Examples
Reviews
Software
Tools
Useful Web Sites
Utilities
Xtras

Don't miss these
Create a Shortcut on desktop
Get and Set IDTag3 II of a mp3 file.
Power Point Viewer
Slide show
Print Formatted and HTML Text Using a Browser
Focus 3D
Generic Timer
asFFTFile
cXtraPrinterDoc
Dialogs Xtra
 

 

 

Behavior Copy Keydown Script

Added on 10/2/2000

 

Compatibilities:
D7 D8 PC Script

Required Xtras:
Buddy API

This item has not yet been rated

Author: MediaMacros (website)

Copies selected text with ctrl+c

global startChar, endChar, currentField

on keyDown me  
  if currentField <> void then
    if the key = "c" and the commandDown then
      copySelected()
      dontpassevent
      alert "copy"
    else
      pass
    end if
  end if
end

on copySelected me
  if startChar < endChar then
    theSelection = currentField.char[startChar..endChar]
  else
    theSelection = currentField.char[endChar..startChar]
  end if
  thetext = theSelection
  baCopyText(thetext)
end

 


Contact

MMI
36 South Court Sq
Suite 300
Newnan, GA 30263
USA

Send e-mail