Question on KeysDown ()
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Question on KeysDown ()
The Livecode Dictionary says  "The keysDown function returns empty if no keys are being pressed." But keysDown() function always returns "255" even I don't press any key. Anyone can explain this to me ? Thanks
			
			
									
									
						Re: Question on KeysDown ()
Hi,
Which version of LiveCode do you use? Check your keyboard. Do you have any devices connected to USB, bluetooth or serial port for instance, which might cause this?
If I execute the syntax
in the message box, I get 65293, which is as expected, because that's the number of the return key.
Kind regards,
Mark
			
			
									
									Which version of LiveCode do you use? Check your keyboard. Do you have any devices connected to USB, bluetooth or serial port for instance, which might cause this?
If I execute the syntax
Code: Select all
put the keysDownKind regards,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
						The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Re: Question on KeysDown ()
Hi.
Try this in a button:
You should always get a number, and then empty.
Craig Newman
			
			
									
									
						Try this in a button:
Code: Select all
on mouseUp
   put random(99)
   wait 25
   put keysDown()
end mouseUpCraig Newman
Re: Question on KeysDown ()
Thanks.. Markm Craig
I can't duplicated the problem in this computer, itls going well.
I'm going to check again my home computer again.
I checked all the number returned form keysDown function.
Where the number "255" comes from ?? ....
Thanks again.
			
			
									
									
						I can't duplicated the problem in this computer, itls going well.
I'm going to check again my home computer again.
I checked all the number returned form keysDown function.
Where the number "255" comes from ?? ....
Thanks again.

