Search content:

 

Personal Menu
Username:
Password:
Save password

Become a member

Forgot Password?

 

Don't miss these
simChatting Xtra
Creating a Marquee Tool
Check QuickTime Version
PictureXtra
Cross Platform Projects
myWallpaper
Wait for Mouseclick
Scale-Alphamania
Happy Hour Fonts
Date Master
MediaMacros Xtras Mall
 

 

 

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

 


Upload Provided by ABCUpload ASP

Contact

MMI
22 West Court Sq
Suite 2C
Newnan, GA 30263
USA

Fax - (206) 339-5833

Send e-mail