dMZX Forums: key detection - dMZX Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

key detection

#1 User is offline   CHEZZY 

  • sometimes... I dream about cheese
  • PipPipPipPip
  • Group: Members
  • Posts: 996
  • Joined: 08-April 06
  • Location:New Zealand

Posted 07 February 2007 - 05:00 AM

Is there any other way for a robot to detect a key being pressed other than :keyX label, key_pressed counter or if keypressed command?
user posted image
koji: SCRUMTRELLESCENT!
0

#2 User is offline   zombieguy 

  • Veteran Member
  • Group: Banned
  • Posts: 1,939
  • Joined: 29-June 02
  • Gender:Male
  • Location:Australia, Queensland.

Posted 07 February 2007 - 08:28 AM

if "key44" = 1 "label"
if "key_code" = 44 "label"
if "key_release" = 44 "label"

To get the numbers you need (44 is Z), create a robot with this code and press keys.
: "a"
* "&key_code&"
goto "a"

Next time try the help file.
0

#3 User is offline   CHEZZY 

  • sometimes... I dream about cheese
  • PipPipPipPip
  • Group: Members
  • Posts: 996
  • Joined: 08-April 06
  • Location:New Zealand

Posted 08 February 2007 - 06:39 AM

Thanks, works smooth now.

Quote

Next time try the help file.

Such a lovely site and you expect me to read a dead piece of text?
Ok.
user posted image
koji: SCRUMTRELLESCENT!
0

#4 User is offline   Xx*SaturnineMatthias*xX 

  • Your mother.
  • PipPipPipPip
  • Group: Members
  • Posts: 799
  • Joined: 07-November 06
  • Gender:Male
  • Location:Knaresborough, UK

Posted 08 February 2007 - 04:37 PM

Is it generally bad karma to use "key_pressed"? I still use it for when I need to distinguish between keys that have the same key_code code (eg page down and numpad 3 (also a page down)
this is a signature
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users