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
Go to URL
Set Sprite Full Screen
GetPixelColour
Scroll Wheel Lock Behavior
ZGTSB-ButtonDown
Set Volume - Buddy API
Set Stroke properties
Director 7 and Lingo Authorized
Go Marker of a Movie in current Directory
A char scroller
 

 

 

Behavior Generic behavior to emulate a Keystroke

Added on 3/24/2002

 

Compatibilities:
behavior D6_5 D7 D8 D8_5 PC US

Required Xtras:
KeyboardControl Xtra Standard

This item has not yet been rated

Author: Shockdev

Behavior allows to emulate a keystroke.

Download PC Source
-- Generic behavior to emulate a keystroke
-- KeyboardControl Xtra 1.1 or later required

property Keystroke

on getPropertyDescriptionList
  set description = [:]
  addProp description, #Keystroke, [#default: "", #format:#string, #comment:"Keystroke to emulate:"]
  return description
end

on getBehaviorDescription
  return "Emulates Keystroke"
end

on mouseDown
  pressKeys
end

on pressKeys
  set Ok = KeyboardControlSendKeys(Keystroke)
  if getAt(Ok,1) <> 0 then
    -- An error has occured, show error code
    alert("Error: " & getAt(Ok,1) & " - base error code")
  end if
end

 


Contact

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

Send e-mail