Discussion:
ASCII code for Home, End, Page Up, Page Down
Thomas McGrath III
2013-02-27 20:44:25 UTC
Permalink
Does anyone know the correct ASCII codes for Home, End, Page Up, and Page Down ???

I haven't had a keyboard with them on it for years and I need to trap them in a keydown handler.

Thanks

-- Tom McGrath III
http://lazyriver.on-rev.com
***@mac.com
Devin Asay
2013-02-27 20:53:24 UTC
Permalink
Tom,

If I remember correctly you're going to have to use rawKeyUp or Down handlers. Here are the rawKey codes:

Home 65360
End 65367
Page Up 65365
Page Down 65366

HTH

Devin
Post by Thomas McGrath III
Does anyone know the correct ASCII codes for Home, End, Page Up, and Page Down ???
I haven't had a keyboard with them on it for years and I need to trap them in a keydown handler.
Thanks
-- Tom McGrath III
http://lazyriver.on-rev.com
_______________________________________________
use-livecode mailing list
http://lists.runrev.com/mailman/listinfo/use-livecode
Devin Asay
Office of Digital Humanities
Brigham Young University
Thomas McGrath III
2013-02-27 22:44:17 UTC
Permalink
Devin,

You are correct. I don't own an extended keyboard so I can't even test these yet.

Thanks

-- Tom McGrath III
http://lazyriver.on-rev.com
Post by Devin Asay
Tom,
Home 65360
End 65367
Page Up 65365
Page Down 65366
HTH
Devin
Post by Thomas McGrath III
Does anyone know the correct ASCII codes for Home, End, Page Up, and Page Down ???
I haven't had a keyboard with them on it for years and I need to trap them in a keydown handler.
Thanks
-- Tom McGrath III
http://lazyriver.on-rev.com
_______________________________________________
use-livecode mailing list
http://lists.runrev.com/mailman/listinfo/use-livecode
Devin Asay
Office of Digital Humanities
Brigham Young University
_______________________________________________
use-livecode mailing list
http://lists.runrev.com/mailman/listinfo/use-livecode
Mike Bonner
2013-02-27 20:53:41 UTC
Permalink
If you mean the scan codes then
home : 65360
End : 65367
PUp : 65365
pDn : 65366
Post by Thomas McGrath III
Does anyone know the correct ASCII codes for Home, End, Page Up, and Page Down ???
I haven't had a keyboard with them on it for years and I need to trap them
in a keydown handler.
Thanks
-- Tom McGrath III
http://lazyriver.on-rev.com
_______________________________________________
use-livecode mailing list
Please visit this url to subscribe, unsubscribe and manage your
http://lists.runrev.com/mailman/listinfo/use-livecode
Thomas McGrath III
2013-02-27 22:44:37 UTC
Permalink
Thanks mike,

Got it. Thanks


-- Tom McGrath III
http://lazyriver.on-rev.com
Post by Mike Bonner
If you mean the scan codes then
home : 65360
End : 65367
PUp : 65365
pDn : 65366
Post by Thomas McGrath III
Does anyone know the correct ASCII codes for Home, End, Page Up, and Page Down ???
I haven't had a keyboard with them on it for years and I need to trap them
in a keydown handler.
Thanks
-- Tom McGrath III
http://lazyriver.on-rev.com
_______________________________________________
use-livecode mailing list
Please visit this url to subscribe, unsubscribe and manage your
http://lists.runrev.com/mailman/listinfo/use-livecode
_______________________________________________
use-livecode mailing list
http://lists.runrev.com/mailman/listinfo/use-livecode
d***@aol.com
2013-02-27 21:39:35 UTC
Permalink
I don't think you want ASCII, you probably, however, could use the codes for the "rawKeyDown" handler"


home = 65310

end = 65367

pg up = 65365
pg down = 65366


No biggie:



on rawkeydown var
put var
pass rawkeyDown
end rawkeydown


Just type and read.


Craig Newman




-----Original Message-----
From: Thomas McGrath III <***@mac.com>
To: How to use LiveCode <use-***@lists.runrev.com>
Sent: Wed, Feb 27, 2013 3:45 pm
Subject: ASCII code for Home, End, Page Up, Page Down


Does anyone know the correct ASCII codes for Home, End, Page Up, and Page Down
???

I haven't had a keyboard with them on it for years and I need to trap them in a
keydown handler.

Thanks

-- Tom McGrath III
http://lazyriver.on-rev.com
***@mac.com


_______________________________________________
use-livecode mailing list
use-***@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Thomas McGrath III
2013-02-27 22:43:21 UTC
Permalink
The problem is that I don't have an extended keyboard to test with so I can't get the numbers for these keys. Thanks though.

-- Tom McGrath III
http://lazyriver.on-rev.com
Post by d***@aol.com
I don't think you want ASCII, you probably, however, could use the codes for the "rawKeyDown" handler"
home = 65310
end = 65367
pg up = 65365
pg down = 65366
on rawkeydown var
put var
pass rawkeyDown
end rawkeydown
Just type and read.
Craig Newman
-----Original Message-----
Sent: Wed, Feb 27, 2013 3:45 pm
Subject: ASCII code for Home, End, Page Up, Page Down
Does anyone know the correct ASCII codes for Home, End, Page Up, and Page Down ???
I haven't had a keyboard with them on it for years and I need to trap them in a
keydown handler.
Thanks
-- Tom McGrath III
http://lazyriver.on-rev.com
_______________________________________________
use-livecode mailing list
Please visit this url to subscribe, unsubscribe and manage your subscription
http://lists.runrev.com/mailman/listinfo/use-livecode
_______________________________________________
use-livecode mailing list
http://lists.runrev.com/mailman/listinfo/use-livecode
Continue reading on narkive:
Loading...