Hi!
Discovering the just loaded Win32Forth, I found that EKEY doesnt provide anything when arrows are pressed, which is quite an issue when any user interface is needed.
What did I miss?
If I get this to work, maybe latter I ask about the mouse state.
Thank you for any help
Zoltan
On Sunday, 1 May 2022 at 18:15:39 UTC+1, Zoltan Spin wrote:
Hi!
Discovering the just loaded Win32Forth, I found that EKEY doesnt provide anything when arrows are pressed, which is quite an issue when any user interface is needed.
What did I miss?
If I get this to work, maybe latter I ask about the mouse state.
Thank you for any help
Zoltan
I havent used win32forth in a while so please test as I am not sure which applies
: test begin ekey? 0= while repeat ekey . ;
type test and press any F-key
do you get a number ? if yes that number represents the f-key.
or
try :
: test begin ekey? 0= while repeat ekey ekey>fkey .s ;
you can use the function ekey>fkey as shown in https://forth-standard.org/standard/facility/EKEYtoFKEY
One of these should work.
On 2/05/2022 09:05, NN wrote:...
: test begin ekey? 0= while repeat ekey . ;
type test and press any F-key
do you get a number ? if yes that number represents the f-key.
or
try :
: test begin ekey? 0= while repeat ekey ekey>fkey .s ;
how many
'standard' systems can run your two 'standard' scripts?
Hi!Hi Zoltan,
Discovering the just loaded Win32Forth, I found that EKEY doesnt provide anything when arrows are pressed, which is quite an issue when any user interface is needed.
What did I miss?
If I get this to work, maybe latter I ask about the mouse state.
Thank you for any help
Zoltan
Not out-of-the-box anyway. A quick browse of the docs brought no joy despite K-UP etc being provided.No further info on the above however Google brought up this new doc on Win32Forth by Bill Ragsdale:
Hi!
Discovering the just loaded Win32Forth, I found that EKEY doesnt provide anything when arrows are pressed, which is quite an issue when any user interface is needed.
What did I miss?
If I get this to work, maybe latter I ask about the mouse state.
Thank you for any help
Zoltan
I go on with Gforth.This will occupy me nicely for a few months, and then I need to use the mouse (anticipating some headache too ;-)
\ Win32Forth: a 32 Bit Forth for Windows 95/98/ME/NT4/W2K/XP/VISTA/W7/W8/W10 \ Version: 6.15.05 Build: 2
ekey . never got anything, like keys are disconnected. (nor anything from ekey?)
Thank you NN, Dxforth, Anton, Howerd, Jos for your quick and kind comments.
I tried again and got this:
\ Gforth 0.7.0, Copyright (C) 1995-2008 Free Software Foundation, Inc.
ekey . -7FFFFFFE ok \ up
ekey . -7FFFFFFD ok \ dn
ekey . -80000000 ok \ left
ekey . -7FFFFFFF ok \ right
\ Win32Forth: a 32 Bit Forth for Windows 95/98/ME/NT4/W2K/XP/VISTA/W7/W8/W10 \ Version: 6.15.05 Build: 2
ekey . never got anything, like keys are disconnected. (nor anything from ekey?)
I go on with Gforth.This will occupy me nicely for a few months, and then I need to use the mouse (anticipating some headache too ;-)
An opinion: Forth would be way more in use if it takes into account that people need to make visuals.
Like there are words to manipulate I/Os like in all languages, without requiring a skilled professional insight into the computer guts.
Having said that, It is beyond my limited knowledge to understand the issue, I can only highlight the need.
Thanks again,
Zoltan
On Friday, May 6, 2022 at 4:01:22 PM UTC-4, Zoltan Spin wrote:==================================================================
Thank you NN, Dxforth, Anton, Howerd, Jos for your quick and kind comments.
I tried again and got this:
\ Gforth 0.7.0, Copyright (C) 1995-2008 Free Software Foundation, Inc. ekey . -7FFFFFFE ok \ up
ekey . -7FFFFFFD ok \ dn
ekey . -80000000 ok \ left
ekey . -7FFFFFFF ok \ right
\ Win32Forth: a 32 Bit Forth for Windows 95/98/ME/NT4/W2K/XP/VISTA/W7/W8/W10
\ Version: 6.15.05 Build: 2
ekey . never got anything, like keys are disconnected. (nor anything from ekey?)
I go on with Gforth.This will occupy me nicely for a few months, and then I need to use the mouse (anticipating some headache too ;-)
An opinion: Forth would be way more in use if it takes into account that people need to make visuals.
Like there are words to manipulate I/Os like in all languages, without requiring a skilled professional insight into the computer guts.
Having said that, It is beyond my limited knowledge to understand the issue, I can only highlight the need.
Thanks again,
Zoltan
Win32Forth: a 32 Bit Forth for Windows 95/98/ME/NT4/W2K/XP/VISTA/W7/W8/W10 Version: 6.15.05 Build: 2
Platform: Windows 10 Home, 8,747k bytes free
ekey hex . D ok \ Enter
It simply did not respond to any of the arrow keys. It finally responded when I touched the Enter key.
It did not respond to any of the other similar keys, like Home, End, F1, F2... etc. until I reached F10.
ekey hex . 10010 ok \ F10 key
No response to the Delete key, but Backspace did.
ekey hex . 8 ok \ BS
So what would have changed in key handling between 6.05 and 6.15.05
--
Rick C.
- Get 1,000 miles of free Supercharging
- Tesla referral code - https://ts.la/richard11209
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 300 |
Nodes: | 16 (2 / 14) |
Uptime: | 55:35:01 |
Calls: | 6,712 |
Files: | 12,243 |
Messages: | 5,355,397 |