Re: Nerves getting raw from rawKeyDown
However, by moving the pass rawkeydown statement inside the switch statement the problemI described in the previous message is solved: on rawKeyDown RAWK switch RAWK case 121 put "Fred Flintstone" into fld "fTEXT" break case 122 put "Barney" into fld "fTEXT" break default pass rawKeyDown end switch end rawKeyDown Time "someone" wrote some considerably better documentation on pass rawkeydown . . .:) ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Nerves getting raw from rawKeyDown
Still not as quite as simple as it seems: on rawKeyDown RAWK switch RAWK case 121 put "Fred Flintstone" into fld "fTEXT" break case 122 put "Barney" into fld "fTEXT" break default put "Dino" into fld "fTEXT" end switch pass rawKeyDown end rawKeyDown When I press the 'q' button I get qDino in fld "fTEXT" and when I press the 'y' button I get yFred Flintstone which is a REAL problem as I would like Fred Flintstone without prefixes! Obviously pass rawkeydown sends the keydown of those keys that have already been filtered. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Nerves getting raw from rawKeyDown
> Bless you, fifty-thousand times; > > I had the "switch" part, but had forgotten to write: > > switch RAWK (had only written switch ) > > saved my life: > > Look for your name "in lights" in the 1.0.2 release of my Devawriter; coming > out in about 2 hours! > > Love you buckets!!! Richmond. :-D ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Nerves getting raw from rawKeyDown
On 11/28/09 2:40 PM, Sarah Reichelt wrote: On Sat, Nov 28, 2009 at 10:32 PM, Richmond Mathewson wrote: In RunRev 4 pass rawkeydown doesn't seem to work: have a card script full to brimming with lots of case . . . break statements inside a rawkeydown thing, e.g: on rawKeyDown RAWK case RAWK = 121 put "Fred Flintstone" into fld "fTEXT" break pass rawKeyDown end rawKeyDown this means that everytime I click the 'Y' key 'Fred Flintstone' appears in my field, AND . . . all the other keys on my keyboard are disabled! so; no DELETE, no ARROW keys, and nothing else. STINKS. You seem to have forgotten to put in the "switch" part, so I guess the "break" is stopping the handler every time. Try something like this: on rawKeyDown RAWK switch RAWK case 121 put "Fred Flintstone" into fld "fTEXT" break case 122 put "Barney" into fld "fTEXT" break default put "Dino" into fld "fTEXT" end switch pass rawKeyDown end rawKeyDown Cheers, Sarah Bless you, fifty-thousand times; I had the "switch" part, but had forgotten to write: switch RAWK (had only written switch ) saved my life: Look for your name "in lights" in the 1.0.2 release of my Devawriter; coming out in about 2 hours! Love you buckets!!! Richmond. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Nerves getting raw from rawKeyDown
On Sat, Nov 28, 2009 at 10:32 PM, Richmond Mathewson wrote: > In RunRev 4 > > pass rawkeydown doesn't seem to work: > > have a card script full to brimming with lots of > > case . . . break > > statements inside a rawkeydown thing, e.g: > > on rawKeyDown RAWK > case RAWK = 121 > put "Fred Flintstone" into fld "fTEXT" > break > > pass rawKeyDown > > end rawKeyDown > > this means that everytime I click the 'Y' key > 'Fred Flintstone' appears in my field, > > AND . . . > > all the other keys on my keyboard are disabled! > > so; no DELETE, no ARROW keys, and nothing else. > > STINKS. You seem to have forgotten to put in the "switch" part, so I guess the "break" is stopping the handler every time. Try something like this: on rawKeyDown RAWK switch RAWK case 121 put "Fred Flintstone" into fld "fTEXT" break case 122 put "Barney" into fld "fTEXT" break default put "Dino" into fld "fTEXT" end switch pass rawKeyDown end rawKeyDown Cheers, Sarah ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Nerves getting raw from rawKeyDown
In RunRev 4 pass rawkeydown doesn't seem to work: have a card script full to brimming with lots of case . . . break statements inside a rawkeydown thing, e.g: on rawKeyDown RAWK case RAWK = 121 put "Fred Flintstone" into fld "fTEXT" break pass rawKeyDown end rawKeyDown this means that everytime I click the 'Y' key 'Fred Flintstone' appears in my field, AND . . . all the other keys on my keyboard are disabled! so; no DELETE, no ARROW keys, and nothing else. STINKS. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: rawKeyDown and Unicode
I would suggest trying it without passing the rawKeyDown message if you have already handled it i.e. if RAWK = 0 Cheers, Sarah Sent from my iPhone On 21/09/2009, at 11:17 PM, Richmond Mathewson > wrote: 'Tis michty queer: This works: on mouseUp set the useUnicode to true set the unicodeText of fld "BLURB" to the unicodeText of fld "BLURB" & numToChar(2000) select after fld "BLURB" end mouseUp this appends the unicode char 2000 to my textField BUT this doesn't: on rawKeyDown RAWK set the useUnicode to true if RAWK = 0 then set the useUnicode to true set the unicodeText of fld "BLURB" to the unicodeText of fld "BLURB" & numToChar(2000) select after fld "BLURB" end if pass rawKeyDown end rawKeyDown this appends the ascii equivalent (i.e. rem 2000) a richt scunner! Any helpful suggestions welcomed with open arms . . . :) sincerely, Richmond. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
rawKeyDown and Unicode
Err . . . here I am replying to my own posting again: but, any other person out there who is loony enough to be mucking around with unicode might find the effects of my 7th cup of coffee useful . . . :) I wrote: - This works: on mouseUp set the useUnicode to true set the unicodeText of fld "BLURB" to the unicodeText of fld "BLURB" & numToChar(2000) select after fld "BLURB" end mouseUp this appends the unicode char 2000 to my textField BUT this doesn't: on rawKeyDown RAWK set the useUnicode to true if RAWK = 0 then set the useUnicode to true set the unicodeText of fld "BLURB" to the unicodeText of fld "BLURB" & numToChar(2000) select after fld "BLURB" end if pass rawKeyDown end rawKeyDown this appends the ascii equivalent (i.e. rem 2000) --- this ONLY doesn't work if the rawKeyDown value is 0 (zero). So: on rawKeyDown RAWK set the useUnicode to true if RAWK = 49 then set the useUnicode to true set the unicodeText of fld "BLURB" to the unicodeText of fld "BLURB" & numToChar(2000) select after fld "BLURB" end if pass rawKeyDown end rawKeyDown works absolutely fine. - And to think that I never took any notice of my Philosophy Prof. burbling on about the dangers of inductive reasoning! ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
rawKeyDown and Unicode
'Tis michty queer: This works: on mouseUp set the useUnicode to true set the unicodeText of fld "BLURB" to the unicodeText of fld "BLURB" & numToChar(2000) select after fld "BLURB" end mouseUp this appends the unicode char 2000 to my textField BUT this doesn't: on rawKeyDown RAWK set the useUnicode to true if RAWK = 0 then set the useUnicode to true set the unicodeText of fld "BLURB" to the unicodeText of fld "BLURB" & numToChar(2000) select after fld "BLURB" end if pass rawKeyDown end rawKeyDown this appends the ascii equivalent (i.e. rem 2000) a richt scunner! Any helpful suggestions welcomed with open arms . . . :) sincerely, Richmond. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
AW: AW: AW: rawkeydown and numtochar don't work as expected
Good question, I have to dig into it :) Thanks > -Ursprüngliche Nachricht- > Von: use-revolution-boun...@lists.runrev.com [mailto:use-revolution- > boun...@lists.runrev.com] Im Auftrag von Richmond Mathewson > Gesendet: Freitag, 17. Juli 2009 17:18 > An: How to use Revolution > Betreff: Re: AW: AW: rawkeydown and numtochar don't work as expected > > Tiemo Hollmann TB wrote: > > Thanks for the idea Richmond, I have to try how to arrange with my > > rawkeydown > > Tiemo > > > > > Why is it so important that you use rawKeyDown rather than keyDown ? > >> -Ursprüngliche Nachricht- > >> Von: use-revolution-boun...@lists.runrev.com [mailto:use-revolution- > >> boun...@lists.runrev.com] Im Auftrag von Richmond Mathewson > >> Gesendet: Freitag, 17. Juli 2009 15:36 > >> An: How to use Revolution > >> Betreff: Re: AW: rawkeydown and numtochar don't work as expected > >> > >> Tiemo Hollmann TB wrote: > >> > >>> Hi Richmond, > >>> thats exactly, what I've done (exept it were two fields), but testing > >>> > >> your > >> > >>> approach gives me my same (wrong) result. > >>> I am working with Rev 3.5 on Win XP, german keyboard > >>> ? returns: { > >>> ; returns: < > >>> : returns: > > >>> ( returns: * > >>> ß returns: [ > >>> > >>> any idea, what is going wrong here? > >>> Thanks > >>> Tiemo > >>> > >>> > >> Well, I just tried this: > >> > >> Opened up my trial stack with the Bulgarian keyboard layout: > >> > >> now when I press the key that should give me '?' I get something else. > >> > >> This is because rawKeyDown gives you the underlying key, not what is > >> specified by your keyboard layout; and as Windows XP and Mac are made > >> in North America, the underlying key is the standard USA key. > >> > >> HOWEVER . . . > >> > >> on keyDown QUAY > >> put QUAY into fld "PROB" > >> end keyDown > >> > >> will do what you want it to. > >> > >> Love, Richmond. > >> > >> > > ___ > use-revolution mailing list > use-revolution@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: AW: AW: rawkeydown and numtochar don't work as expected
Tiemo Hollmann TB wrote: Thanks for the idea Richmond, I have to try how to arrange with my rawkeydown Tiemo Why is it so important that you use rawKeyDown rather than keyDown ? -Ursprüngliche Nachricht- Von: use-revolution-boun...@lists.runrev.com [mailto:use-revolution- boun...@lists.runrev.com] Im Auftrag von Richmond Mathewson Gesendet: Freitag, 17. Juli 2009 15:36 An: How to use Revolution Betreff: Re: AW: rawkeydown and numtochar don't work as expected Tiemo Hollmann TB wrote: Hi Richmond, thats exactly, what I've done (exept it were two fields), but testing your approach gives me my same (wrong) result. I am working with Rev 3.5 on Win XP, german keyboard ? returns: { ; returns: < : returns: > ( returns: * ß returns: [ any idea, what is going wrong here? Thanks Tiemo Well, I just tried this: Opened up my trial stack with the Bulgarian keyboard layout: now when I press the key that should give me '?' I get something else. This is because rawKeyDown gives you the underlying key, not what is specified by your keyboard layout; and as Windows XP and Mac are made in North America, the underlying key is the standard USA key. HOWEVER . . . on keyDown QUAY put QUAY into fld "PROB" end keyDown will do what you want it to. Love, Richmond. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
AW: AW: rawkeydown and numtochar don't work as expected
Thanks for the idea Richmond, I have to try how to arrange with my rawkeydown Tiemo > -Ursprüngliche Nachricht- > Von: use-revolution-boun...@lists.runrev.com [mailto:use-revolution- > boun...@lists.runrev.com] Im Auftrag von Richmond Mathewson > Gesendet: Freitag, 17. Juli 2009 15:36 > An: How to use Revolution > Betreff: Re: AW: rawkeydown and numtochar don't work as expected > > Tiemo Hollmann TB wrote: > > Hi Richmond, > > thats exactly, what I've done (exept it were two fields), but testing > your > > approach gives me my same (wrong) result. > > I am working with Rev 3.5 on Win XP, german keyboard > > ? returns: { > > ; returns: < > > : returns: > > > ( returns: * > > ß returns: [ > > > > any idea, what is going wrong here? > > Thanks > > Tiemo > > > > > Well, I just tried this: > > Opened up my trial stack with the Bulgarian keyboard layout: > > now when I press the key that should give me '?' I get something else. > > This is because rawKeyDown gives you the underlying key, not what is > specified by your keyboard layout; and as Windows XP and Mac are made > in North America, the underlying key is the standard USA key. > > HOWEVER . . . > > on keyDown QUAY > put QUAY into fld "PROB" > end keyDown > > will do what you want it to. > > Love, Richmond. > ___ > use-revolution mailing list > use-revolution@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: AW: rawkeydown and numtochar don't work as expected
Tiemo Hollmann TB wrote: Hi Richmond, thats exactly, what I've done (exept it were two fields), but testing your approach gives me my same (wrong) result. I am working with Rev 3.5 on Win XP, german keyboard ? returns: { ; returns: < : returns: > ( returns: * ß returns: [ any idea, what is going wrong here? Thanks Tiemo Well, I just tried this: Opened up my trial stack with the Bulgarian keyboard layout: now when I press the key that should give me '?' I get something else. This is because rawKeyDown gives you the underlying key, not what is specified by your keyboard layout; and as Windows XP and Mac are made in North America, the underlying key is the standard USA key. HOWEVER . . . on keyDown QUAY put QUAY into fld "PROB" end keyDown will do what you want it to. Love, Richmond. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
AW: rawkeydown and numtochar don't work as expected
Hi Richmond, thats exactly, what I've done (exept it were two fields), but testing your approach gives me my same (wrong) result. I am working with Rev 3.5 on Win XP, german keyboard ? returns: { ; returns: < : returns: > ( returns: * ß returns: [ any idea, what is going wrong here? Thanks Tiemo > -Ursprüngliche Nachricht- > Von: use-revolution-boun...@lists.runrev.com [mailto:use-revolution- > boun...@lists.runrev.com] Im Auftrag von Richmond Mathewson > Gesendet: Freitag, 17. Juli 2009 13:06 > An: How to use Revolution > Betreff: Re: rawkeydown and numtochar don't work as expected > > Tiemo Hollmann TB wrote: > > Hello, > > > > I am trying to capture a field input with rawkeydown and after doing > some > > other processings to regenerate the input with numtochar. > > > > For all a-zA-Z1-0 it works fine and also for some special char, like > "!,.-", > > But for other input, like "?;:_" the numtochar function returns other > values > > as my input. All signs are lower than 255, some are lower than 127, some > are > > greater than 126. > > > > Is this a matter of the charset - what I can't change - , or another > thing I > > forgot or am I on the wrong lane at all and it can't be done, what I > want? > > > > Thanks for your experience > > > > Tiemo > > > I may be misreading your message, BUT: > > I set up a stack with a single card containing a fld called "PROB", > > the cardScript is as follows: > > on rawKeyDown QUAY > put numToChar(QUAY) into fld "PROB" > end rawKeyDown > > so every time I press a key on my keyboard it should show up > in fld "PROB" > > all the problematic keyDowns you mentioned ( ?;:_ ) work fine. > > This is on a G4 Mac (RR 2.6.1) and on Ubuntu '86 8.04.3 LTS (RR 2.2.1). > ___ > use-revolution mailing list > use-revolution@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: rawkeydown and numtochar don't work as expected
Tiemo Hollmann TB wrote: Hello, I am trying to capture a field input with rawkeydown and after doing some other processings to regenerate the input with numtochar. For all a-zA-Z1-0 it works fine and also for some special char, like "!,.-", But for other input, like "?;:_" the numtochar function returns other values as my input. All signs are lower than 255, some are lower than 127, some are greater than 126. Is this a matter of the charset - what I can't change - , or another thing I forgot or am I on the wrong lane at all and it can't be done, what I want? Thanks for your experience Tiemo I may be misreading your message, BUT: I set up a stack with a single card containing a fld called "PROB", the cardScript is as follows: on rawKeyDown QUAY put numToChar(QUAY) into fld "PROB" end rawKeyDown so every time I press a key on my keyboard it should show up in fld "PROB" all the problematic keyDowns you mentioned ( ?;:_ ) work fine. This is on a G4 Mac (RR 2.6.1) and on Ubuntu '86 8.04.3 LTS (RR 2.2.1). ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
rawkeydown and numtochar don't work as expected
Hello, I am trying to capture a field input with rawkeydown and after doing some other processings to regenerate the input with numtochar. For all a-zA-Z1-0 it works fine and also for some special char, like "!,.-", But for other input, like "?;:_" the numtochar function returns other values as my input. All signs are lower than 255, some are lower than 127, some are greater than 126. Is this a matter of the charset - what I can't change - , or another thing I forgot or am I on the wrong lane at all and it can't be done, what I want? Thanks for your experience Tiemo ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: rawKeyDown cooking my brain.
Richmond Mathewson wrote: On my Macintosh, at least, this stack does not do its stuff when I press any of the modifier keys (Ctrl, Alt, Command). The OS does not report to applications when only a modifier key is pressed. (It's a little better on Windows for a few keys I think.) The OS only sends a message after the accompanying alpha key is pressed. This also applies to "commandkeydown" and other similar system messages, they only trigger after the second key is pressed. ... [why no 'altKeyDown' and 'shiftKeyDown' ???] The alt key is "optionKeydown", but again, you'll only get the message after the second key is pressed. The OS doesn't send a message for shift at all, because that key instead causes a different numeric parameter to be sent. -- Jacqueline Landman Gay | [EMAIL PROTECTED] HyperActive Software | http://www.hyperactivesw.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: rawKeyDown cooking my brain.
On Mon, Nov 3, 2008 at 5:53 AM, Richmond Mathewson <[EMAIL PROTECTED]> wrote: > Was just mucking around with a stack called "KEY NAMER" which I uploaded to > revOnline a couple of years ago. It is a crude little stack that has this > script in its single card: > > on rawkeydown KDWN > put KDWN into fld "KNAME" > end rawkeydown > > and, when you press a key down, surprise, surprise, you get a jolly numeric > output in field "KNAME": not rocket science, but useful nevertheless. > > BUT . . . > > On my Macintosh, at least, this stack does not do its stuff when I press > any of the modifier keys (Ctrl, Alt, Command). > How about: on rawKeyDown KDWN if the shiftKey is down then ..... else if the commandKey is down then else . end if end rawKeyDown Cheers, Sarah ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
rawKeyDown cooking my brain.
Was just mucking around with a stack called "KEY NAMER" which I uploaded to revOnline a couple of years ago. It is a crude little stack that has this script in its single card: on rawkeydown KDWN put KDWN into fld "KNAME" end rawkeydown and, when you press a key down, surprise, surprise, you get a jolly numeric output in field "KNAME": not rocket science, but useful nevertheless. BUT . . . On my Macintosh, at least, this stack does not do its stuff when I press any of the modifier keys (Ctrl, Alt, Command). Therefore when I, for instance, press Command-A, the numeric output is exactly the same as pressing the A key by itself. This is not good, as the likes of myself and Marcus Lindley might find it useful to simulate Command/Ctrl-A, or other combinations which do not respond to rawKeyDown. Now, I am aware there are: controlKeyDown commandKeyDown messages and shiftKey altKey functions [why no 'altKeyDown' and 'shiftKeyDown' ???] so, I suppose, one would have to trap both command/controlKey and rawKeyDown simultaneously to fake command/control-A . . . Err, I think I have just answered my own question; what a monkey! sincerely, Richmond Mathewson. A Thorn in the flesh is better than a failed Systems Development Life Cycle. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
rawKeyDown not working in SAs?
I've got a scrolling group (named "OverlayAndImageGroup ") that is composed of an image of a map, and numerous text fields and other smaller groups. I have been trying to add the capability to use the mouse's scrolling wheel to scroll the group "OverlayAndImageGroup" up and down. When I add to the group "OverlayAndImageGroup" the script --below 3 handlers added 2007-12-18 on rawKeyDown theKeyNumber --put theKeyNumber into msg if theKeyNumber is 65308 then increaseScroll -- mouse wheel down else if theKeyNumber is 65309 then decreaseScroll -- mouse wheel up else pass rawKeyDown -- don't forget this! end rawKeyDown on decreaseScroll set the vScroll of group "OverlayandImageGroup" to the vScroll of group "OverlayandImageGroup" - 51 put the ScreenmouseLoc into thisLoc --below done to get calcLatLong run to update latitude set the ScreenmouseLoc to item 1 of thisLoc, item 2 of thisLoc + 1 end decreaseScroll on increaseScroll set the vScroll of group "OverlayandImageGroup" to the vScroll of group "OverlayandImageGroup" + 51 put the ScreenmouseLoc into thisLoc--below done to get calcLatLong run to update latitude set the ScreenmouseLoc to item 1 of thisLoc, item 2 of thisLoc - 1 end increaseScroll it works perfectly as long as I am in the "development" environment. I also have built into this "Map" stack, the ability to measure distances areas, etc., from a mouseDown handler in the "Map" stack script, and to get latitude - longitude read outs from a mouseMove handler in the "Map" stack's card level script. It, too works perfectly as long as I am in the "development" environment (one has to open a "Tools" palette to start measuring, a process that sets globals that control the measuring processes). BUT when I create a standalone (for both Mac and Windows), neither the mouse scrolling wheel works to scroll the group "OverlayandImageGroup" up or down, nor does the ability to measure distances, areas, etc. work. The mouseMove does, however, continue to feed into my lat-longitude script and give me lat & long. Has anyone else run into this kind of a problem? One can download the offending rev stack (18.2 MB unzipped, 6.5 MB zipped) from the url http://ddm.geo.umass.edu/ddm-umass/ddm-umass-2008-01-17-rev.zip if you want to get to SAs that do work, visit the web page http://ddm.geo.umass.edu/ddm-umass/index.html I'm using Intel Macs (a MacBookPro and desktop Pro) and OS 10.4 & 10.5 and both Rev 2.8.1 and 2.9.0-dp-3 Build 520 and all behavior is the same on the platforms, and on the Windows SA's I've created. ___ Along the same lines, is there a rawKeyDown code for left-right scrolling? I've used Sarah's KeyCoder.rev project (thanks, Sarah!) with no joy as well as the code: on rawKeyDown pKey put pKey into msg end rawKeyDown in a v and h scrolling field and get no rawKeyCode when i try to scroll left-right appreciate help. Chris -- Dr. Christopher D. Condit, Associate Prof., Dept. of Geosciences Univ. Massachusetts, 611 North Pleasant St., Amherst, MA, 01003-9297 [EMAIL PROTECTED] 413-545-0272 My Web Page: http://www.geo.umass.edu/faculty/condit.htm Revolution Dynamic Digital Maps: http://ddm.geo.umass.edu ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Rawkeydown and the mouse wheel
Yes: Forward Scroll : 65309 Back Scroll: 65308 and they show up with my "Key Namer" stack (RevOnline); which surpised me! Love, Richmond A Thorn in the flesh is better than a failed Systems Development Life Cycle. ___ Yahoo! Answers - Got a question? Someone out there knows the answer. Try it now. http://uk.answers.yahoo.com/ ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Rawkeydown and the mouse wheel
Short answer: yes. Le 29 sept. 07 à 11:25, jbv a écrit : Hi list, are the rawkeydown key codes 65308 / 65309 similar on Mac and XP ? (I don't have any mousewheel to test on Mac). Best regards from Paris, Eric Chatonet. Plugins and tutorials for Revolution: http://www.sosmartsoftware.com/ Email: [EMAIL PROTECTED]/ ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Rawkeydown and the mouse wheel
Hi list, are the rawkeydown key codes 65308 / 65309 similar on Mac and XP ? (I don't have any mousewheel to test on Mac). Thanks, JB ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Rawkeydown and the mouse wheel
Howard Bornstein wrote: ...if I scroll the mouse wheel, it only works under the following conditions: 1) if the cursor is directly over one of the buttons in the group. (if it's over white space within the group, scrolling doesn't happen) 2) if the cursor is over any other object outside the group (i.e. if there's a button or field or image outside the group and the cursor is over it) However, if the cursor is just over the card with nothing under it, the mouse wheel "key" messages apparently are not sent. This is very strange. Typing a key, no matter where the cursor is, gets echoed properly, meaning the rawkeydown handler is getting the key strokes. However, it only gets the mouse wheel "key" message when the cursor is over an object. How come the rawkeydown handler isn't getting the mouse wheel input when the cursor isn't over an object? Yep, I've been bitten by that myself. Not sure why it's that way, and since the card receives all other key events in rawKeyDown I would think that for consistency the scroll wheel should be sent outside of controls as well. The workaround is to put a graphic or other object across the full extent of the group's content region, so at least the message will be sent. -- Richard Gaskin Managing Editor, revJournal ___ Rev tips, tutorials and more: http://www.revJournal.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Rawkeydown and the mouse wheel
I'm trying to use the mouse wheel to scroll a group in a stack using the rawkeydown handler. I've seen Mark Waddingham's comments that groups don't respond to key messages: "I think this is a consequence of mouse-wheel messages being sent as key's at present and groups not responding to any key messages at the moment." However, it seems like it should be easy to get around this by simply putting the rawkeydown handler in the stack script and pointing it at the group scroll values when it detects the mousewheel codes. Alas, something odd is happening with all this. I set up a group with a few buttons and sized it so that scroll bars appeared when I turned them on. I put the following handler in the stack script. on rawkeydown keystroke put the vscroll of group 1 into vs if keystroke is 65308 then set the vscroll of group 1 to vs - 10 else if keystroke is 65309 then set the vscroll of group 1 to vs + 10 end if put keystroke pass rawkeydown end rawkeydown Anything I type, no matter where the cursor is, gets echoed in the message box, as is expected. However, if I scroll the mouse wheel, it only works under the following conditions: 1) if the cursor is directly over one of the buttons in the group. (if it's over white space within the group, scrolling doesn't happen) 2) if the cursor is over any other object outside the group (i.e. if there's a button or field or image outside the group and the cursor is over it) However, if the cursor is just over the card with nothing under it, the mouse wheel "key" messages apparently are not sent. This is very strange. Typing a key, no matter where the cursor is, gets echoed properly, meaning the rawkeydown handler is getting the key strokes. However, it only gets the mouse wheel "key" message when the cursor is over an object. How come the rawkeydown handler isn't getting the mouse wheel input when the cursor isn't over an object? Aside from putting a giant invisible button behind my entire stack (which is impractical for my current application) does anyone know of any other means to make the rawkeydown handler see the mouse wheel messages all the time? -- Regards, Howard Bornstein --- www.designeq.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: rawKeyDown and key codes
Hi Paul, Here (Mac 10.4.10 ; Rev 2.8.1) the script from Ken is working well : for example, when typing the comma I get 44 (in the message box) Best regards from Grenoble André Le 23 sept. 07 à 23:52, Paul Gabel a écrit : Hi Ken: Thanks for your suggestion, but unfortunately it doesn't work. When I type anything in the field, nothing shows up. Any other thoughts? Paul Gabel --- On Sep 23, 2007, at 2:08 PM, Ken Ray wrote: On Sun, 23 Sep 2007 13:15:21 -0700, Paul Gabel wrote: Hello everybody: In the Docs under rawKeyDown I find this sample script ... on rawKeyDown theKeyNumber if theKeyNumber is 65308 then increaseScroll -- mouse wheel down else if theKeyNumber is 65309 then decreaseScroll -- mouse wheel up else pass rawKeyDown -- don't forget this! end rawKeyDown ... but I can't figure out how to get theKeyNumber in the first place. I know it's just a rawKeyDown parameter here, but how would I, for example, determine "theKeyNumber" for a comma so that I can trap for it? Is there a list some place? Thanks. You can always create a dummy field with the script: on rawKeyDown pKey put pKey end rawKeyDown Then type the comma in the field and you'll get your result. Ken Ray Sons of Thunder Software, Inc. Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
rawKeyDown and key codes
"Key Detailer" is available under "Richmond" on RevOnline! sincerely, Richmond Mathewson A Thorn in the flesh is better than a failed Systems Development Life Cycle. ___ Want ideas for reducing your carbon footprint? Visit Yahoo! For Good http://uk.promotions.yahoo.com/forgood/environment.html ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: rawKeyDown and key codes
Paul, On Sep 23, 2007, at 2:15 PM, Paul Gabel wrote: Hello everybody: In the Docs under rawKeyDown I find this sample script ... on rawKeyDown theKeyNumber if theKeyNumber is 65308 then increaseScroll -- mouse wheel down else if theKeyNumber is 65309 then decreaseScroll -- mouse wheel up else pass rawKeyDown -- don't forget this! end rawKeyDown ... but I can't figure out how to get theKeyNumber in the first place. I know it's just a rawKeyDown parameter here, but how would I, for example, determine "theKeyNumber" for a comma so that I can trap for it? Is there a list some place? Thanks. This is a little late in the game, but you should check out Sarah Reichelt's handy utility, KeyCoder. It's on her web site at troz.net/Rev/misc/KeyCoder.rev.gz>. It was a big help to me on a project when I needed to get rawKey codes for various non-ASCII keys. Devin Devin Asay Humanities Technology and Research Support Center Brigham Young University ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: rawKeyDown and key codes
Hi Ken & Bjoernke: My deepest apologies to both of you. After staring at the computer screen all day, I just lost focus (a common excuse, but a good one). I was staring at the field and forgot to look at the message box. I will store your suggestions so I never have to ask again. Thank you. - On Sep 23, 2007, at 3:04 PM, Björnke von Gierke wrote: As this is one of the cornerstones of many apps, it certainly should work. Note that nothing will happen in the field itself. Instead, a number should be appear in the message box. That will be the number you want. For your convenience I made a step by step guide: 1. Make a new stack 2. Drag a field from the tools palette to your stack 3. Open the script of that field, and input the following lines: on rawKeyDown pKey put pKey end rawKeyDown 4. Change to the browse (or run) tool, by clicking the arrow in the tools palette 5. Click on the field with the script 6. Hit any key on your Keyboard (I guess you're interested in the comma) 7. In the message box, the number of the key appears (for comma: 44) sorry if this seems overly pushy Bjoernke On 23 Sep 2007, at 23:52, Paul Gabel wrote: Hi Ken: Thanks for your suggestion, but unfortunately it doesn't work. When I type anything in the field, nothing shows up. Any other thoughts? Paul Gabel --- On Sep 23, 2007, at 2:08 PM, Ken Ray wrote: On Sun, 23 Sep 2007 13:15:21 -0700, Paul Gabel wrote: Hello everybody: In the Docs under rawKeyDown I find this sample script ... on rawKeyDown theKeyNumber if theKeyNumber is 65308 then increaseScroll -- mouse wheel down else if theKeyNumber is 65309 then decreaseScroll -- mouse wheel up else pass rawKeyDown -- don't forget this! end rawKeyDown ... but I can't figure out how to get theKeyNumber in the first place. I know it's just a rawKeyDown parameter here, but how would I, for example, determine "theKeyNumber" for a comma so that I can trap for it? Is there a list some place? Thanks. You can always create a dummy field with the script: on rawKeyDown pKey put pKey end rawKeyDown Then type the comma in the field and you'll get your result. -- official ChatRev page: http://chatrev.bjoernke.com Chat with other RunRev developers: go stack URL "http://homepage.mac.com/bvg/chatrev1.3.rev"; ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: rawKeyDown and key codes
As this is one of the cornerstones of many apps, it certainly should work. Note that nothing will happen in the field itself. Instead, a number should be appear in the message box. That will be the number you want. For your convenience I made a step by step guide: 1. Make a new stack 2. Drag a field from the tools palette to your stack 3. Open the script of that field, and input the following lines: on rawKeyDown pKey put pKey end rawKeyDown 4. Change to the browse (or run) tool, by clicking the arrow in the tools palette 5. Click on the field with the script 6. Hit any key on your Keyboard (I guess you're interested in the comma) 7. In the message box, the number of the key appears (for comma: 44) sorry if this seems overly pushy Bjoernke On 23 Sep 2007, at 23:52, Paul Gabel wrote: Hi Ken: Thanks for your suggestion, but unfortunately it doesn't work. When I type anything in the field, nothing shows up. Any other thoughts? Paul Gabel --- On Sep 23, 2007, at 2:08 PM, Ken Ray wrote: On Sun, 23 Sep 2007 13:15:21 -0700, Paul Gabel wrote: Hello everybody: In the Docs under rawKeyDown I find this sample script ... on rawKeyDown theKeyNumber if theKeyNumber is 65308 then increaseScroll -- mouse wheel down else if theKeyNumber is 65309 then decreaseScroll -- mouse wheel up else pass rawKeyDown -- don't forget this! end rawKeyDown ... but I can't figure out how to get theKeyNumber in the first place. I know it's just a rawKeyDown parameter here, but how would I, for example, determine "theKeyNumber" for a comma so that I can trap for it? Is there a list some place? Thanks. You can always create a dummy field with the script: on rawKeyDown pKey put pKey end rawKeyDown Then type the comma in the field and you'll get your result. -- official ChatRev page: http://chatrev.bjoernke.com Chat with other RunRev developers: go stack URL "http://homepage.mac.com/bvg/chatrev1.3.rev"; ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: rawKeyDown and key codes
Hi Ken: Thanks for your suggestion, but unfortunately it doesn't work. When I type anything in the field, nothing shows up. Any other thoughts? Paul Gabel --- On Sep 23, 2007, at 2:08 PM, Ken Ray wrote: On Sun, 23 Sep 2007 13:15:21 -0700, Paul Gabel wrote: Hello everybody: In the Docs under rawKeyDown I find this sample script ... on rawKeyDown theKeyNumber if theKeyNumber is 65308 then increaseScroll -- mouse wheel down else if theKeyNumber is 65309 then decreaseScroll -- mouse wheel up else pass rawKeyDown -- don't forget this! end rawKeyDown ... but I can't figure out how to get theKeyNumber in the first place. I know it's just a rawKeyDown parameter here, but how would I, for example, determine "theKeyNumber" for a comma so that I can trap for it? Is there a list some place? Thanks. You can always create a dummy field with the script: on rawKeyDown pKey put pKey end rawKeyDown Then type the comma in the field and you'll get your result. Ken Ray Sons of Thunder Software, Inc. Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: rawKeyDown and key codes
On Sun, 23 Sep 2007 13:15:21 -0700, Paul Gabel wrote: > Hello everybody: > > In the Docs under rawKeyDown I find this sample script ... > > on rawKeyDown theKeyNumber > if theKeyNumber is 65308 then increaseScroll -- mouse wheel down > else if theKeyNumber is 65309 then decreaseScroll -- mouse wheel up > else pass rawKeyDown -- don't forget this! > end rawKeyDown > > ... but I can't figure out how to get theKeyNumber in the first > place. I know it's just a rawKeyDown parameter here, but how would I, > for example, determine "theKeyNumber" for a comma so that I can trap > for it? Is there a list some place? Thanks. You can always create a dummy field with the script: on rawKeyDown pKey put pKey end rawKeyDown Then type the comma in the field and you'll get your result. Ken Ray Sons of Thunder Software, Inc. Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
rawKeyDown and key codes
Hello everybody: In the Docs under rawKeyDown I find this sample script ... on rawKeyDown theKeyNumber if theKeyNumber is 65308 then increaseScroll -- mouse wheel down else if theKeyNumber is 65309 then decreaseScroll -- mouse wheel up else pass rawKeyDown -- don't forget this! end rawKeyDown ... but I can't figure out how to get theKeyNumber in the first place. I know it's just a rawKeyDown parameter here, but how would I, for example, determine "theKeyNumber" for a comma so that I can trap for it? Is there a list some place? Thanks. Paul Gabel ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: rawKeyDown codes
Thank for the info, Dar - the codes I'm looking at are pretty basic - like delete & backspace - I shall have a read. JC Dar Scott wrote: On Nov 16, 2006, at 1:32 PM, John Craig wrote: Does anyone know if the codes used in rawKeyDown are consistent across all platforms? The code are somewhat consistent, but I don't think rawKeyDown works exactly the same across all platforms--not sure. The codes are keysyms (first used on X11, and now Revolution and tkl) and you might find some descriptions online that addresses platform interpretations. The keysyms seem to attempt to address keys and characters in a useful mix. Even so, some important keys are missing and the character encoding predates Unicode. Perhaps this will be rectified. So, I'd look around online for possible gotchas and then test on primary platforms. Dar ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: rawKeyDown codes
On Nov 16, 2006, at 1:32 PM, John Craig wrote: Does anyone know if the codes used in rawKeyDown are consistent across all platforms? The code are somewhat consistent, but I don't think rawKeyDown works exactly the same across all platforms--not sure. The codes are keysyms (first used on X11, and now Revolution and tkl) and you might find some descriptions online that addresses platform interpretations. The keysyms seem to attempt to address keys and characters in a useful mix. Even so, some important keys are missing and the character encoding predates Unicode. Perhaps this will be rectified. So, I'd look around online for possible gotchas and then test on primary platforms. Dar ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
rawKeyDown codes
Does anyone know if the codes used in rawKeyDown are consistent across all platforms? Thanks, JC. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: rawKeyDown - Cross Platform ???
On Aug 2, 2006, at 5:25 AM, Richmond Mathewson wrote: Does anybody know whether rawKeyDown numbers are the same cross-platform? Here are some clues: I think I remember seeing long ago differences. I now suspect they might be predictable. For the most part, they are the same. The word keysym is used for the code in the old MetaCard documentation. I suspect the keysym codes are those from X11. I think the keysym is at a slightly higher level than keycode, which might be hardware dependent. I think the keysym might be based on a glyph on the top of the key. (A counter example test might be to see if the return on the Mac keyboard and the return on Windows keyboard are the same. Then again, some might say those are equivalent glyphs.) There might be multiple glyphs on a keyboard. I have never seen a definitive table or standard. I think I have seen some partial tables in a specific use. Yikes. I just found something. I don't know if it is real or a proposal. This should give you a hint: http://www.cl.cam.ac.uk/~mgk25/ucs/X11.keysyms.pdf I think this is a proposal that adds the new Unicode keysyms, but it should give you a good idea. I agree. Runrev should note common differences. I also think they should refer to a standard or provide a table, perhaps derived from such, or provide other information that would help in programmers using these numbers. That would also allow people to determine whether an interesting code is a bug or not. Let us know what you learn, if you feel inclined. Dar Scott ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: rawKeyDown - Cross Platform ???
Hi Richmond, Dear Sean (and all other readers!), Your message is one of those ones that are useful but also don't answer the initial question:- 1. Yes, I will use "on enterKey" and "on returnKey" as per your advice, because if I use "rawKeyDown" it BLOCKS TEXT ENTRY TO TEXT FIELDS! then PLEASE "PASS RAWKEYDOWN" at the end of your script in that case :-) 2. I am also, gently, working on some sort of a game that demands all sorts of keyboard control - and should, ideally, be OK cross-platform. Sorry, i have no idea if the keys are identical. sincerely, Richmond Mathewson Best from germanski Klaus Major [EMAIL PROTECTED] http://www.major-k.de ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
rawKeyDown - Cross Platform ???
Dear Sean (and all other readers!), Your message is one of those ones that are useful but also don't answer the initial question:- 1. Yes, I will use "on enterKey" and "on returnKey" as per your advice, because if I use "rawKeyDown" it BLOCKS TEXT ENTRY TO TEXT FIELDS! 2. I am also, gently, working on some sort of a game that demands all sorts of keyboard control - and should, ideally, be OK cross-platform. sincerely, Richmond Mathewson "Philosophical problems are confusions arising owing to the fluidity of meanings users attach to words and phrases." Mathewson, 2006 ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: rawKeyDown - Cross Platform ???
Sorry if this was already answered, it's the bad part about being on digest mode ;-) Richmond why not just use the "on enterKey" and "on returnKey" messages to check for those two instead of "rawKeyDown" ? _ FREE pop-up blocking with the new MSN Toolbar get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
rawKeyDown - Cross Platform ???
Does anybody know whether rawKeyDown numbers are the same cross-platform? http://members.maclaunch.com/richmond/KEY NAMER.rev.zip I am trying to get away from cute little red tick GIFs for my EFL pupils to click on to check things and moving to hitting either the ENTER or RETURN key. As I author on Mac OS X but deploy on Ubuntu Linux I am a bit scared: AND, on a more global scale, if rawKeyDown numbers are not the same some sort of table of equivalents is called for. sincerely, Richmond Mathewson "Philosophical problems are confusions arising owing to the fluidity of meanings users attach to words and phrases." Mathewson, 2006 ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: send "Rawkeydown param" problem
On 2/12/06, J. Landman Gay <[EMAIL PROTECTED]> wrote: > > > > I'm in one of those black "I hate Rev" moods, based on my inability to > > find the information I need to solve my problem. > > Hopefully you are only grey now. > > -- Yes, I looked at the new docs in 2.7 and they seem much improved. -- Regards, Howard Bornstein --- www.designeq.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: send "Rawkeydown param" problem
Ken- Yowza! Nice functions - thanks. -- -Mark Wieder [EMAIL PROTECTED] ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: send "Rawkeydown param" problem
It looks like you got some good answers, Howard. I was away for a few hours, but the list came through! Thanks Ken and Jacque. Phil Howard Bornstein wrote: I solved this problem by commenting out the "pass rawkeydown" statement at the end of the handler. I'm not sure why this helped or was needed. Maybe there was a recursion issue, but since this handler was in the stack script, wouldn't the next destination in the hierarchy be the engine itself? This doesn't solve my difficulties with getting useful information out of the rev docs. I haven't looked at the 2.7 version yet but I hope there are improvements in this regard. -- Regards, Howard Bornstein --- www.designeq.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: send "Rawkeydown param" problem
Ken Ray wrote: ExecutionContexts are in the form: ,, Howard: Ken's right and my previous answer was about something else. Listen to him. The stuff I was talking about had to do with the errors list and the line and token error numbers, which wasn't what you asked. -- Jacqueline Landman Gay | [EMAIL PROTECTED] HyperActive Software | http://www.hyperactivesw.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: send "Rawkeydown param" problem
On 2/12/06 6:54 PM, "Howard Bornstein" <[EMAIL PROTECTED]> wrote: > On 2/12/06, Phil Davis <[EMAIL PROTECTED]> wrote: >> Hi Howard, >> You could try displaying 'the executionContexts' in an 'errorDialog' >> handler of your stack script - maybe that will give you some clues as to >> what's happening. >> >> Phil Davis > > Where did you find information about "the executionContexts"? I > couldn't find any reference to it in the docs so I don't know how to > interpret the results. > > It gave: stack > "/Users/howard/Projects/LandyVision/LandyPlayer.rev",errorDialog,198 > > What does 198 refer to? ExecutionContexts are in the form: ,, so 198 is the line number. Here's a handler I use to reformat the executionContexts into a "human-readable" form: function stsFormatContexts pContexts -- ExecutionContexts is in form: ,, -- Assumes CR-delimited contexts put "" into retVal repeat for each line tLine in pContexts put tLine into tContext put item -1 of tContext into tLineNum put item -2 of tContext into tHandlerName delete item -2 to -1 of tContext do "put the long name of" && tContext && "into tObj" put offset("of stack",tObj) into tChar if tChar <> 0 then put char 1 to tChar+7 of tObj && quote & GetStack(tObj) & \ quote into tObj else put "stack" && quote & GetStack(tObj) & quote into tObj end if put "line" && tLineNum && "of handler" && quote & tHandlerName & \ quote && "of" && tObj & cr after retVal end repeat delete last char of retVal return retVal end stsFormatContexts function GetStack pObj -- Needs to handle all sorts of incoming values - -- file names, long names, abbr names, etc., from -- all kind of objects and return the stack's short name local tRetVal put ".rev" into tStackExtension if word 1 of pObj = "stack" then if offset("of stack " & quote,pObj) <> 0 then -- substack get matchText(pObj,"stack \"(.*?)\" of stack",tRetVal) else -- main stack get matchText(pObj,"stack \"(.*?)\"",tRetVal) end if else -- object on a stack get matchText(pObj,"of stack \"(.*?)\" of stack \".*?\"",tRetVal) if it is false then get matchText(pObj,"of stack \"(.*?)\"",tRetVal) if it is false then put pObj into tRetVal end if end if end if put length(tStackExtension) into tExtLen if char (-1 * tExtLen) to -1 of tRetVal = tStackExtension then -- file path, convert to stack name put the short name of stack tRetVal into tRetVal end if return tRetVal end GetStack HTH, Ken Ray Sons of Thunder Software Web site: http://www.sonsothunder.com/ Email: [EMAIL PROTECTED] ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: send "Rawkeydown param" problem
Howard Bornstein wrote: On 2/12/06, Phil Davis <[EMAIL PROTECTED]> wrote: Hi Howard, You could try displaying 'the executionContexts' in an 'errorDialog' handler of your stack script - maybe that will give you some clues as to what's happening. Phil Davis Where did you find information about "the executionContexts"? I couldn't find any reference to it in the docs so I don't know how to interpret the results. It is undocumented and likely to remain so. The "executionContexts" is intended only for use within the IDE, though some people are using it elsewhere. It is not guaranteed to remain unchanged and it is unsupported. It gave: stack "/Users/howard/Projects/LandyVision/LandyPlayer.rev",errorDialog,198 What does 198 refer to? The line number of the error in the errors list -- see below. For that matter, there doesn't seem to be complete info about the errorDialog message. It says line one contains "Information about the statement that caused the error." In my case, line 1 shows: 573,10,1,rawkeydown Well, I know it's telling me that the rawkeydown handler caused the error, but what does 573,10,1 mean? the number are, in order: the line number in the script where the error occured, the column (or token) where the error occured (usually corresponds to a word) and the parameter that is being manipulated or passed, if any. In your example, the error occured on line 573 of the script at word or token 10. There is a parameter of "1" being manipulated (I think; I've forgotten some of this.) In addition, the errorDialog dictionary entry refers to the cErrorsList property of the stack "revErrorDisplay" as having useful info. This property contains (on my system) 631 error entries. Right. That is the list you check to find out what error 198 is. Line 198 of that list gives you an English description of the problem, which is, "Factor: error in left operand". Apparently it doesn't like that "1". I have no idea what they are, if they're simply a list of errors or if they're pertinent to my situation, etc. Again, there is no other reference to this property anywhere in the Rev documentation that I could find. They are a lookup list so that Rev's error dialog can contain an English-language description for the user. In general, these are only for use within the IDE and they occasionally change, so if you plan to include the list in a standalone, you should update it if you rebuild with a newer engine version. I'm in one of those black "I hate Rev" moods, based on my inability to find the information I need to solve my problem. Hopefully you are only grey now. -- Jacqueline Landman Gay | [EMAIL PROTECTED] HyperActive Software | http://www.hyperactivesw.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: send "Rawkeydown param" problem
I solved this problem by commenting out the "pass rawkeydown" statement at the end of the handler. I'm not sure why this helped or was needed. Maybe there was a recursion issue, but since this handler was in the stack script, wouldn't the next destination in the hierarchy be the engine itself? This doesn't solve my difficulties with getting useful information out of the rev docs. I haven't looked at the 2.7 version yet but I hope there are improvements in this regard. -- Regards, Howard Bornstein --- www.designeq.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: send "Rawkeydown param" problem
On 2/12/06, Phil Davis <[EMAIL PROTECTED]> wrote: > Hi Howard, > You could try displaying 'the executionContexts' in an 'errorDialog' > handler of your stack script - maybe that will give you some clues as to > what's happening. > > Phil Davis Where did you find information about "the executionContexts"? I couldn't find any reference to it in the docs so I don't know how to interpret the results. It gave: stack "/Users/howard/Projects/LandyVision/LandyPlayer.rev",errorDialog,198 What does 198 refer to? For that matter, there doesn't seem to be complete info about the errorDialog message. It says line one contains "Information about the statement that caused the error." In my case, line 1 shows: 573,10,1,rawkeydown Well, I know it's telling me that the rawkeydown handler caused the error, but what does 573,10,1 mean? In addition, the errorDialog dictionary entry refers to the cErrorsList property of the stack "revErrorDisplay" as having useful info. This property contains (on my system) 631 error entries. I have no idea what they are, if they're simply a list of errors or if they're pertinent to my situation, etc. Again, there is no other reference to this property anywhere in the Rev documentation that I could find. I'm in one of those black "I hate Rev" moods, based on my inability to find the information I need to solve my problem. -- Regards, Howard Bornstein --- www.designeq.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: send "Rawkeydown param" problem
Hi Howard, I wonder if your error has to do with the fact that 'rawKeyDown' is always followed by a 'keyDown' message under "normal" circumstances. (Says to self: Naaah, that's not it - you can generate 'rawKeyDown' messages without subsequent keyDown's via a mouse wheel, and without problems.) You could try displaying 'the executionContexts' in an 'errorDialog' handler of your stack script - maybe that will give you some clues as to what's happening. Phil Davis Howard Bornstein wrote: This is weird. I occasionally need to stuff my rawkeydown handler with a parameter from another script. The rawkeydown handler is in the stack script. When I use a command like it works but also sends up a "can't find handler" error. It obviously finds the handler since it works as expected. Any idea why this error is getting generated? The error will be ignored in my standalone, but I'd like to know why this is happening. -- Regards, Howard Bornstein --- www.designeq.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
send "Rawkeydown param" problem
This is weird. I occasionally need to stuff my rawkeydown handler with a parameter from another script. The rawkeydown handler is in the stack script. When I use a command like it works but also sends up a "can't find handler" error. It obviously finds the handler since it works as expected. Any idea why this error is getting generated? The error will be ignored in my standalone, but I'd like to know why this is happening. -- Regards, Howard Bornstein --- www.designeq.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: rawkeydown
In a message dated 12/7/05 8:46:36 AM, [EMAIL PROTECTED] writes: > I tried that here with a G4 and a wireless "Gyration" Keyboard and it > shows me four numbers for F10,Enter,k,9 etc. SO I assume it is > working. I did not lookup the numbers to see if they were correct. > Actually, there should be 5 numbers. > > I don't know if you looked at the "Keyboard Shortcuts" Tab in the > "Keyboard & Mouse" Pane in the "System Preferences..." > With "Full Keyboard Access" on the F keys are treated differently out > of the box on the newer powerbooks. Did you try turning off the F key > shortcuts? etc. > > Yes, I tried all of those things. Good ideas, though. Thanks. > The other thing I thought of was the International Keyboard Pane > "Input Source Options" and/or the Universal Access Pane. > > I've looked all over these areas for mention of F9 or the Enter key or k, i or 9, but haven't found anything. > What systems/computers did this work on? Maybe I can test them here > to see this working. > > Thanks a lot for offering to help. I'm only using this app on my Powerbook G4. I used to have an aluminum G4 Powerbook 1.25 mHz speed and it worked fine. Then 2 weeks ago, I got the latest Powerbook G4 and now it messes up. I went back to the store and tried it on one of their demo Powerbooks and it also didn't work. > > On Dec 7, 2005, at 12:52 AM, [EMAIL PROTECTED] wrote: > > > until I got the latest Powerbook. Now suddenly, the > > computer gets all fouled up when I type certain key combinations. I > > wish I could > > figure it out. > > ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: rawkeydown
Fred, I tried that here with a G4 and a wireless "Gyration" Keyboard and it shows me four numbers for F10,Enter,k,9 etc. SO I assume it is working. I did not lookup the numbers to see if they were correct. I don't know if you looked at the "Keyboard Shortcuts" Tab in the "Keyboard & Mouse" Pane in the "System Preferences..." With "Full Keyboard Access" on the F keys are treated differently out of the box on the newer powerbooks. Did you try turning off the F key shortcuts? etc. The other thing I thought of was the International Keyboard Pane "Input Source Options" and/or the Universal Access Pane. What systems/computers did this work on? Maybe I can test them here to see this working. Tom On Dec 7, 2005, at 12:52 AM, [EMAIL PROTECTED] wrote: until I got the latest Powerbook. Now suddenly, the computer gets all fouled up when I type certain key combinations. I wish I could figure it out. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
rawkeydown
I have created a stack that allows you to type with one hand. It uses a technique called "chording" where you press several keys down at the same time. It has worked fine for me until I got the latest Powerbook. Now suddenly, the computer gets all fouled up when I type certain key combinations. I wish I could figure it out. My stack takes advantage of "rawkeydown". You can see it in action if you make a stack, put a field into it, and then set the stack script to: on rawkeydown put the keysdown into fld 1 end rawkeydown Now, type a bunch of keys all at the same time. Their keycodes will be displayed in the field. The hand position that I need to be in has me typing the following keys: F10, 9, i, k, Enter. On a Powerbook that feels comfortable to me. With the new Powerbook, the F10 and Enter keys are messing up, but in interesting ways. Here are the key combinations (chords) that work F10, Enter F10, Enter,9 These chords don't work: F10, Enter, i F10, Enter, k F10, Enter, k, 9 F10, Enter, i, 9 F10, Enter, k, 9, i When I type them, sometimes I get no keycodes; other times some of the keycodes are missing. Is there any alternative to rawkeydown? Incidentally, I've tried putting the following into the script: On enterkey beep end enterkey on functionkey beep end functionkey But again, when those other above keys are pressed simultaneously, there is no beep. Any ideas? Thanks Fred Moyer ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: more rawkeydown problems
On 06 Mar 2005, at 20:04, J. Landman Gay wrote: snip I'm not sure it is a bug, it is just the differences between operating systems. The Rev engine just passes on the key codes that the operating system sends. If you have the MC IDE, see the "Character Chooser" in the MetaCard "Tools" menu for examples of these differences. Sometimes you can use the macToISO and ISOtoMac functions to translate between the character sets, but I don't think those functions work with non-ascii keystrokes. -- Jacqueline Landman Gay | [EMAIL PROTECTED] HyperActive Software | http://www.hyperactivesw.com On 07 Mar 2005, at 00:23, Sarah Reichelt wrote: snip While differences between keyboards & operating systems are annoying, the keys you are checking are mostly available using other messages. In NumLock is on, the numeric keys generate arrowKey messages and if NumLock is on, the number can be read directly in a keyDown or keyUp handler. Cheers, Sarah Thank you Jacqueline, Sarah and Tobi for your responses. The rev rawkeydown handler reports a kind of "mixed" "raw" keys values: ascii code and "raw" code in the range between 65000 - 65999. Seeing Tobi's little app. (tnx Tobi) I'm inclined to think the values of the rawkeydown handler in rev in the region above 65000 are due to rev's own system of administering values to keys (but i'll be wrong ;-) So I'm not sure this is due only to differences between operating systems and by this not a bug. If the help key is giving a value of "268762986" on mac os x, I consider this not a correct value though it is unique for the help key on mac os x. The same for the `key in american qwerty keyboard layout, it should give the ascii value and not a zero. And so on... Sarah you said: "In NumLock is on, the numeric keys generate arrowKey messages and if NumLock is on, the number can be read directly in a keyDown or keyUp handler" On win yes but not on mac os x. The numlockkey doesn't affect the value of the numerical keys on the numerical keypad in mac os x. And there is no numLockKey function we could use to poll the numLockKey condition like there is a capsLockKey function. (and the keyboard is not broken as the numlockkey works in win vpc) Revolution, being a crossplatform RAD, should make keyboard input as uniform as possible between platforms regarding it's own application and offshoots. But I'll refrain from bugzilla-ing until further notice. Greetings, Wouter ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: more rawkeydown problems
Hi All, If crossplatform uniformness is not your piece of cake then please don't read this mail. But for those who really need to process keyboard input here are some more keyboard anomalies to check. These are tests on a apple usb keyboard. May be there will also be differences on laptop keyboards. If someone can test and confirm the above then this can be bugzilla'ed. I'm not sure it is a bug, it is just the differences between operating systems. The Rev engine just passes on the key codes that the operating system sends. If you have the MC IDE, see the "Character Chooser" in the MetaCard "Tools" menu for examples of these differences. Sometimes you can use the macToISO and ISOtoMac functions to translate between the character sets, but I don't think those functions work with non-ascii keystrokes. For anyone wanting to test what rawKey codes their keyboard gives, here is a utility I wrote ages ago to do this: http://www.troz.net/Rev/RevProjects/KeyCoder.rev.gz While differences between keyboards & operating systems are annoying, the keys you are checking are mostly available using other messages. In NumLock is on, the numeric keys generate arrowKey messages and if NumLock is on, the number can be read directly in a keyDown or keyUp handler. Cheers, Sarah ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: more rawkeydown problems
On 3/6/05 12:13 PM, Wouter wrote: Hi All, If crossplatform uniformness is not your piece of cake then please don't read this mail. But for those who really need to process keyboard input here are some more keyboard anomalies to check. These are tests on a apple usb keyboard. May be there will also be differences on laptop keyboards. If someone can test and confirm the above then this can be bugzilla'ed. I'm not sure it is a bug, it is just the differences between operating systems. The Rev engine just passes on the key codes that the operating system sends. If you have the MC IDE, see the "Character Chooser" in the MetaCard "Tools" menu for examples of these differences. Sometimes you can use the macToISO and ISOtoMac functions to translate between the character sets, but I don't think those functions work with non-ascii keystrokes. -- Jacqueline Landman Gay | [EMAIL PROTECTED] HyperActive Software | http://www.hyperactivesw.com ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
more rawkeydown problems
Hi All, If crossplatform uniformness is not your piece of cake then please don't read this mail. But for those who really need to process keyboard input here are some more keyboard anomalies to check. All values are from a rawkeydown handler. - the key straight under the escape key (qwerty `/ ~ or §/± or something else depending on which qwerty you use) will give a 0 value on mac os x when an american qwerty keyboard layout is chosen but not with another keyboard layout. - help key on mac os x gives value 268762986 instead of 65379 (win vpc) - the numlock key on mac osx x enters a char in the field when focused and editable: numtochar(27) - the values of the numeric keyboard on mac differ from these of win !!! On mac os x the value without numLock is the same as with numLock, not on win vpc. On win vpc side there are also some anomalies (see below). ### numerical keyboard 65429 ### 7 mac os x 65463 ### 7 - numlock win vpc 65360 ### 7 + numlock win vpc 65430 ### 4 mac os x 65460 ### 4 - numlock win vpc 65361 ### 4 + numlock win vpc 65431 ### 8 mac os x 65464 ### 8 - numlock win vpc 65362 ### 8 + numlock win vpc 65432 ### 6 mac os x 65462 ### 6 - numlock win vpc 65363 ### 6 + numlock win vpc 65433 ### 2 mac os x 65458 ### 2 - numlock win vpc 65364 ### 2 + numlock win vpc 65434 ### 9 mac os x 65465 ### 9 - numlock win vpc 65365 ### 9 + numlock win vpc 65435 ### 3 mac os x 65459 ### 3 - numlock win vpc 65366 ### 3 + numlock win vpc 65436 ### 1 mac os x 65457 ### 1 - numlock win vpc 65367 ### 1 + numlock win vpc 65437 ### 5 mac os x 65461 ### 5 - numlock win vpc 65461 ### 5 + numlock win vpc !!! no change 65438 ### 0 mac os x 65456 ### 0 - numlock win 65379 ### 0 + numlock win 65439 ### . mac os x 65454 ### . - numlock win 65535 ### . + numlock win !!! value of deletekey on mac !!! 65493 ### = mac os x 61 ### = win vpc the chartonum value other keys of the numerical keyboard are the same These are tests on a apple usb keyboard. May be there will also be differences on laptop keyboards. If someone can test and confirm the above then this can be bugzilla'ed. TIA Greetings, Wouter ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: rawkeydown & rawkeyup (was : 2 more questions aboutoperationson text in fields)
On 8/2/04 4:21 PM, jbv wrote: > > "J. Landman Gay" a *crit : > > >>On 8/2/04 1:56 PM, jbv wrote: >> >> > BTW rawkeydown and rawkeyup both work, but then, how do you >> > map the raw keynumber with the corresponding char ? >> > the numtochar can't be used in this situation... >> >>Good question. I usually only use it when I need to trap specific keys, >>and I build a switch statement around those. If you need to trap every >>key then you may be better off with your other solution. What is the >>goal for this handler? >> > > > Well, it would be a bit too long to explain... > I guess an example is better (please note that I finally used > a third option - it is not fully implemented yet, but it'll give > you an idea). I see. That's kind of cool. I think you are right though that trapping rawkeydown wouldn't work too well. I'm glad you found another solution because I can't think of a better one. -- Jacqueline Landman Gay | [EMAIL PROTECTED] HyperActive Software | http://www.hyperactivesw.com ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: rawkeydown & rawkeyup (was : 2 more questions aboutoperationson text in fields)
"J. Landman Gay" a *crit : > On 8/2/04 1:56 PM, jbv wrote: > > > BTW rawkeydown and rawkeyup both work, but then, how do you > > map the raw keynumber with the corresponding char ? > > the numtochar can't be used in this situation... > > Good question. I usually only use it when I need to trap specific keys, > and I build a switch statement around those. If you need to trap every > key then you may be better off with your other solution. What is the > goal for this handler? > Well, it would be a bit too long to explain... I guess an example is better (please note that I finally used a third option - it is not fully implemented yet, but it'll give you an idea). Create a new stack with 1 field on it. Put the following script in the card : - on openCard global theString1, theString2, myList put "" into theString1 put "" into theString2 put "Google,Yahoo,Bravo,Alta Vista" into mylist set textfont of fld 1 to "Arial" set textstyle of fld 1 to bold end openCard on recherche a global theString1, theString2, myList put number of chars of theString2 into n put 0 into c repeat with j=1 to (number of items of myList) get item j of myList if char 1 to n of it = theString2 then put j into c exit repeat end if end repeat if c=0 then put theString2 into fld 1 set the textcolor of line 1 of fld 1 to "black" select after char n of fld 1 else put item j of myList into fld 1 set the textcolor of line 1 of fld 1 to "100,100,100" set the textcolor of char 1 to n of line 1 of fld 1 to "black" select after char n of fld 1 end if end recherche -- put the following script in the field : --- on rawkeyup which global theString1, theString2 put (number of chars of fld 1) if (number of chars of fld 1)=1 then set textcolor of line 1 of fld 1 to "black" end if put fld 1 into theString1 if theString1 is not "" then put "" into theString2 repeat with i=1 to (number of chars of theString1) if the textcolor of char i of fld 1 is "0,0,0" then put char i of theString1 after theString2 else exit repeat end if end repeat if theString2 is not "" then recherche theString2 else put "" into me end if end if end rawkeyup on returninField global theString1, theString2 put fld 1 into theString1 put "" into me end returninField --- Now, click inside the field, and type the letter "G" or "Y"... JB ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: rawkeydown & rawkeyup (was : 2 more questions about operations on text in fields)
On 8/2/04 1:56 PM, jbv wrote: > BTW rawkeydown and rawkeyup both work, but then, how do you > map the raw keynumber with the corresponding char ? > the numtochar can't be used in this situation... Good question. I usually only use it when I need to trap specific keys, and I build a switch statement around those. If you need to trap every key then you may be better off with your other solution. What is the goal for this handler? -- Jacqueline Landman Gay | [EMAIL PROTECTED] HyperActive Software | http://www.hyperactivesw.com ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: rawkeydown & rawkeyup (was : 2 more questions about operationson text in fields)
"J. Landman Gay" a *crit : > > I haven't tried it, but does rawkeydown or rawkeyup work? > BTW rawkeydown and rawkeyup both work, but then, how do you map the raw keynumber with the corresponding char ? the numtochar can't be used in this situation... Thanks, JB ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Rép : Sort, Find, RawKeyDown ... / diacritical problems.
Thanks to the readers who already gave me some guide lines. Of course I didn't went though all of them yet, but they gave me the feeling that I have to give a more precise idea of what I'm looking for. I'm not an language specialist but I can give a more precise description of what I'm expecting. I look for something coherent, in other words: For the SORT Command. After having sorted containers by a sort key, I expect that a logic applied to two sort keys would agree to the fact that Argument 1 is <= to Argument 2 and so on. This is not the case to day for RR with the Sort Type International (Not mentioned in the Transcript Dictionary): RR Sort "Elephant,Eléphant,Élephant,Éléphant,èléphant,Œuf,Oeuf,œuf,oeuf,Tigre,zèbre,Zèbre" international gives: zèbre,Zèbre,Tigre,Oeuf,oeuf,Œuf,œuf,èléphant,Éléphant,Élephant,Eléphant,Elephant Comparing each word with the following one gives 8 errors. RR sort without international gives: Elephant,Eléphant,Oeuf,oeuf,Tigre,zèbre,Zèbre,Élephant,Éléphant,èléphant,Œuf,œuf Comparing each word with the following one gives no errors but, finding éléphant after zèbre and Zèbre is too bad ! . HC sort of the same list with International gives: Elephant,Eléphant,Élephant,Éléphant,èléphant,Œuf,Oeuf,oeuf,œuf,Tigre,Zèbre,zèbre Comparing each word with the following one gives no errors HC Sort without international gives : Elephant,Eléphant,Élephant,Éléphant,èléphant,Oeuf,oeuf,Œuf,œuf,Tigre,zèbre,Zèbre (HC considers Zèbre = zèbre and keeps the original sequence) Comparing each word with the following one gives one error "oeuf > Œuf "; To me there is no doubt I can find a useful logic in the way Hypercard reacts but I wonder how a user will react if I have to tell him that it's normal to find the card "Eléphant " after the card "Tigre" which is after the card "Zèbre" OR to find the card "Eléphant" after the card Zèbre. For the FIND command I'm using the fact that FIND can be used to find a word anywhere in any field of a stack (As mentioned into the Transcript Dictionary ) . As the command Find "éléphant" will not find "Elephant" it just means that I can't trust the reply and I don't see what kind of logic can be applied to bypass it unless being huge... May be I'm wrong and I hope so ... Thanks to every one for helping Pierre
Re: Sort, Find, RawKeyDown ... / diacritical problems.
Le jeudi, 6 mars 2003, à 06:35 Europe/Paris, erik hansen a écrit : how about Scandinavian? See my post (yesterday 10:58 western european). I tried to make a complete account of the problem. For scandinavian, as far as I know, I suppose you should do theese conversions: ä = æ > azz, ö = œ = ø > ozz, å > azzz, "thorn" > tzz, "edh" > dzz the other diacriticals ignored (ü > u, for instance) and or course lower case = upper case. If you are dealing with many languages you can write a function handler with a language parameter. I found it more convenient to directing the program to language specialized sub-handlers, rather than using complicated inbedding IFs. If you would like a copy of my post just ask. I didn't want to bother everybody in the llist by reproducing my long mail. You also can download my "Polylexis" from my iDisk public folder, and see how the system works with 9 different languages. Regards Manuel ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Sort, Find, RawKeyDown ... / diacritical problems.
how about Scandinavian? = [EMAIL PROTECTED]http://www.erikhansen.org __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Sort, Find, RawKeyDown ... / diacritical problems.
--- Pierre <[EMAIL PROTECTED]> wrote: > Bonsoir Jan, > > I'm using MAC system X.2.4 R.R. 1.1.1 > > I made a slight modification to your function to fit > my handler testing. > I used Items instead of lines. > I don't think it should bother it. > > [snip] > > It gives the same incoherent result as MAC original > sort using > International. > > [snip] > > Can you tell me what result you get running my test > on your machine > please ? > > Thanks, > > Pierre > --- "Yves COPPE" <[EMAIL PROTECTED]> wrote: > your sort doesn't work for me with the list of > Pierre :o( > I run on Jaguar X.2.4 and Rev 1.1.1 French sytem > (system preferences : international : french) > sorry > -- > Greetings. > > Yves COPPE > Rats, there goes my theory. Oh well, it was worth a shot. FYI, the results of a regular sort international on my WinME Dutch : uf,Elephant,Eléphant,Élephant,Éléphant,èléphant,oeuf,Oeuf,uf,Tigre,zèbre,Zèbre And that was after I shuffled the data around a bit, to make sure it wasn't merely returning what you had stuffed into it. So it seems it's off on the capital but otherwise at least mostly okay. I'd say this is an area in the MetaCard engine that could use some loving and caring attention from Scott. In the meantime, we'll need some trickery to convert to a non-diacritical copy, do our sort/find/... on that copy, and interpret the results and apply them on the diacritical originals. Best regards, Jan Schenkel. = "As we grow older, we grow both wiser and more foolish at the same time." (La Rochefoucauld) __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Sort, Find, RawKeyDown ... / diacritical problems.
Yves Coppe reported similar results. I mailed him earlier with an idea, but he hasn't replied yet, so maybe you could run the test for me? If you're not using a Mac, then disregard the following question. Would you try, with the same input: function MyInternationalSort pTextToSort put MacToISO(pTextToSort) into tTextToSort sort lines of tTextToSort international return ISOToMac(tTextToSort) end MyInternationalSort And tell me the result? Sort international works just your sort doesn't work for me with the list of Pierre :o( I run on Jaguar X.2.4 and Rev 1.1.1 French sytem (system preferences : international : french) sorry -- Greetings. Yves COPPE Email : [EMAIL PROTECTED] ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Sort, Find, RawKeyDown ... / diacritical problems.
Bonsoir Pierre, Yves Coppe reported similar results. I mailed him earlier with an idea, but he hasn't replied yet, so maybe you could run the test for me? If you're not using a Mac, then disregard the following question. Would you try, with the same input: function MyInternationalSort pTextToSort put MacToISO(pTextToSort) into tTextToSort sort lines of tTextToSort international return ISOToMac(tTextToSort) end MyInternationalSort And tell me the result? Sort international works just fine on my WinME AND Win2K machines, so I was wondering if it was Mac-only and might be fixed with the above conversion. Thanks in advance, Jan Schenkel. --- Pierre <[EMAIL PROTECTED]> wrote: > Bonsoir Jan > > There is a problem on the the Transcript Dictionary > which doesn't > mention "International" as a valid Sort Type. > > In fact International does something different which > is Surprising > Here is the result with "International": > ,Tigre,uf,uf,èléphant,Éléphant,Élephant,Eléphant,zèbre,Zèbre,Elephant > and the result without "International" > ,Elephant,Eléphant,Tigre,zèbre,Zèbre,Élephant,Éléphant,èléphant,uf,uf > > I shall use the links you gave me, they will give me > a chance to find > something to begin with and may be a solution. > It seems the Find problem has been mentioned in > these old mails. > > Thanks > Pierre > > Le mardi, 4 mars 2003, à 12:55 Europe/Paris, Jan > Schenkel a écrit : > > > > Bonjour Pierre, > > > > This issue has come up in the past. The easiest > > solution is to use the 'international' clause: > > sort lines of tVariable international > > However, some people have reported strange > results, so > > your mileage may vary. > > > > If it doesn't work, you can adopt a different > > technique, which I described in an earlier post. > > Here's the link: > > > http://lists.runrev.com/pipermail/use-revolution/2002-September/ > > > 008173.html > > > > Hope this helped, > > > > Jan Schenkel. > > > > PS: here's a handy link for using google to search > the > > use-revolution archives : > > > http://www.google.com/advanced_search?q=site:lists.runrev.com > > > > __ > > Do you Yahoo!? > > Yahoo! Tax Center - forms, calculators, tips, more > > http://taxes.yahoo.com/ > > ___ > > use-revolution mailing list > > [EMAIL PROTECTED] > > > http://lists.runrev.com/mailman/listinfo/use-revolution > > > __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Sort, Find, RawKeyDown ... / diacritical problems.
Bonsoir Jan There is a problem on the the Transcript Dictionary which doesn't mention "International" as a valid Sort Type. In fact International does something different which is Surprising Here is the result with "International": ,Tigre,œuf,Œuf,èléphant,Éléphant,Élephant,Eléphant,zèbre,Zèbre,Elephant and the result without "International" ,Elephant,Eléphant,Tigre,zèbre,Zèbre,Élephant,Éléphant,èléphant,Œuf,œuf I shall use the links you gave me, they will give me a chance to find something to begin with and may be a solution. It seems the Find problem has been mentioned in these old mails. Thanks Pierre Le mardi, 4 mars 2003, à 12:55 Europe/Paris, Jan Schenkel a écrit : Bonjour Pierre, This issue has come up in the past. The easiest solution is to use the 'international' clause: sort lines of tVariable international However, some people have reported strange results, so your mileage may vary. If it doesn't work, you can adopt a different technique, which I described in an earlier post. Here's the link: http://lists.runrev.com/pipermail/use-revolution/2002-September/008173.html Hope this helped, Jan Schenkel. PS: here's a handy link for using google to search the use-revolution archives : http://www.google.com/advanced_search?q=site:lists.runrev.com __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Sort, Find, RawKeyDown ... / diacritical problems.
Le lundi, 3 mars 2003, à 18:45 Europe/Paris, Pierre a écrit : De: Pierre Date: Sam 1 mars 2003 09:20:33 Europe/Paris À: Liste Révolution <[EMAIL PROTECTED]> Objet: Sort, Find, RawKeyDown ... / diacritical problems. Hi everyone, I'm a french and i'm in the process of translating major (For me) applications written with Hypercard to RR 1.1. The main tools of some of them mainly relies on "HyperText" approach. I found, using RR, that SORT and FIND commands didn't work with words having diacritical (Lettres accentuées). I did send a mail to Kevin Miller below is its reply. My mail and the Answer from Kevin De: Kevin Miller <[EMAIL PROTECTED]> Date: Jeu 20 fév 2003 20:39:03 Europe/Paris À: <[EMAIL PROTECTED]> Objet: Rép : Find, Sort and more generally speaking "Diacritical" ... On 19/2/03 8:25 am, Pierre <[EMAIL PROTECTED]> wrote: As you surely know, in RR 1.1 diacritical doesn't work as far as: • At least FIND and SORT commands are concerned. • I believe "RawKeyDown" is concerned too In both cases you get wrong answers (This was working fine with HC using "International" for sorting). I'm not used to "Unicode", as far as I know it will be implemented in Version 2. Will "Unicode" solve this major problem for "Hyper Text" applications ? Thank to tell me what are the plans on this topic. You can script around these issues, relatively easily. Unicode supports entering and display international text. We don't plan to make any further changes to these functions for 2.0, but could consider revisiting this (at the scripting level at least) for 2.1. In the mean time, try asking on the use-revolution mailing list, someone there is bound to be able to help write a script to overcome these issues. Kind regards, Kevin -- As far as I am concerned I don't see how to deal with this, so my question to the members of this list is Has some members an idea on how to solved this and better has someone made it work ?? I encountered the same problem one year ago when I was working on my program Polylexis, that you may download from my iDisk. HyperCard has had "sort ascii" sorting according to the ascii value of each character, AND "sort international" with ignored both the upper case/low case difference AND any diacritics. This was a "pis-aller" more or less acceptable solution for French. José Ileras, a RR user from Barcelona, told me that he had corresponded about the sorting problem with the R-R staff and that it should be taken care of in version 1.1; but I didn't find it was really implmented. Besides, the problem is not solved by just ignoring diacritics : FIRST: Where will be sorted special chars such as the german "SZ" (ß)?; or "bar-o" (ø), the "edh", "thorn", "bar-D", the "medium dot" (·), etc for that matter? SECOND: the diacritized letters have a special sorting behavior depending on the language: a) ñ is sorted as a different letter in spanish, betwen N and O, in dictionnaries; and so is ç and many diacrized letters in several languages. Ignoring the diacritic then totally changes the alphabetical presentation. b) even when the diacritized letter is not considered as a separate letter, the typographic rules of the language my asign them a special place: for instance, in French "Macon" may come before "Maçon", "Lez" before "Lés", "Prés" before "Près" and so on. By simply ignoring the diacritics we get a random sorting. THIRD: Digraphs may have a special behavior too: a) Ligatures such as æ or œ will be equated to their upper case correspondents by "international sorting"; but where will they be listed? After the Z? As a separate letter (between and B, or O and P), as if they were normal digraphs (ae, oe)? equated to "ä" or "ö" (and "ø")? Kevin Miller says: "We don't plan to make any further changes to these functions for 2.0, but could consider revisiting this (at the scripting level at least) for 2.1." I wish many R-R user will encourage him to do so (although I don't understand what "at the scripting level at least" means). The use of Unicode by istelf will not solve all the sorting problems, and, besides, it still has many inconveniences, mostly practical, and some technical; they certainly will be overcome but to use this two-byte system now, for chars that had been correctly sorted in any computer for 20 years is simply illogical. The work around I used in Pol
Re: Sort, Find, RawKeyDown ... / diacritical problems.
--- Pierre <[EMAIL PROTECTED]> wrote: > De: Pierre > Date: Sam 1 mars 2003 09:20:33 Europe/Paris > À: Liste Révolution > <[EMAIL PROTECTED]> > Objet: Sort, Find, RawKeyDown ... / diacritical > problems. > > Hi everyone, > > I'm a french and i'm in the process of translating > major (For me) > applications written with Hypercard to RR 1.1. > > The main tools of some of them mainly relies on > "HyperText" approach. > > I found, using RR, that SORT and FIND commands > didn't work with words > having diacritical (Lettres accentuées). > > Here is a small transcript which demonstrates what I > mean for sorting: > > On MouseUp >Put > "?uf,Elephant,Eléphant,Élephant,Éléphant,èléphant,Tigre," > into > OriginalValue >Put OriginalValue into SortedValue >Sort Items of line 1 of SortedValue >Answer "Original Value :" && OriginalValue & > return & "Sorted Value > :" && SortedValue & return & Return & "The > correct spelling in > french is 'éléphant or Eléphant and ?uf', other > spellings are mistakes" > End MouseUp > > The result is : > ,Elephant,Eléphant,Tigre,Élephant,Éléphant,èléphant,?uf > > Observing what the result is for "Tigre" and "?uf" > shows what the > problem is ... > > > Too bad for the command Find , for example "Find > Eléphant" will not > find éléphant > > [snip] > > As far as I am concerned I don't see how to deal > with this, so my > question to the members of this list is > > Has some members an idea on how to solved this and > better has someone > made it work ?? > > Many Thanks > Bonjour Pierre, This issue has come up in the past. The easiest solution is to use the 'international' clause: sort lines of tVariable international However, some people have reported strange results, so your mileage may vary. If it doesn't work, you can adopt a different technique, which I described in an earlier post. Here's the link: http://lists.runrev.com/pipermail/use-revolution/2002-September/008173.html Hope this helped, Jan Schenkel. PS: here's a handy link for using google to search the use-revolution archives : http://www.google.com/advanced_search?q=site:lists.runrev.com __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Sort, Find, RawKeyDown ... / diacritical problems.
De: Pierre Date: Sam 1 mars 2003 09:20:33 Europe/Paris À: Liste Révolution <[EMAIL PROTECTED]> Objet: Sort, Find, RawKeyDown ... / diacritical problems. Hi everyone, I'm a french and i'm in the process of translating major (For me) applications written with Hypercard to RR 1.1. The main tools of some of them mainly relies on "HyperText" approach. I found, using RR, that SORT and FIND commands didn't work with words having diacritical (Lettres accentuées). Here is a small transcript which demonstrates what I mean for sorting: On MouseUp Put "œuf,Elephant,Eléphant,Élephant,Éléphant,èléphant,Tigre," into OriginalValue Put OriginalValue into SortedValue Sort Items of line 1 of SortedValue Answer "Original Value :" && OriginalValue & return & "Sorted Value :" && SortedValue & return & Return & "The correct spelling in french is 'éléphant or Eléphant and œuf', other spellings are mistakes" End MouseUp The result is : ,Elephant,Eléphant,Tigre,Élephant,Éléphant,èléphant,œuf Observing what the result is for "Tigre" and "œuf" shows what the problem is ... Too bad for the command Find , for example "Find Eléphant" will not find éléphant I did send a mail to Kevin Miller below is its reply. My mail and the Answer from Kevin De: Kevin Miller <[EMAIL PROTECTED]> Date: Jeu 20 fév 2003 20:39:03 Europe/Paris À: <[EMAIL PROTECTED]> Objet: Rép : Find, Sort and more generally speaking "Diacritical" ... On 19/2/03 8:25 am, Pierre <[EMAIL PROTECTED]> wrote: As you surely know, in RR 1.1 diacritical doesn't work as far as: • At least FIND and SORT commands are concerned. • I believe "RawKeyDown" is concerned too In both cases you get wrong answers (This was working fine with HC using "International" for sorting). I'm not used to "Unicode", as far as I know it will be implemented in Version 2. Will "Unicode" solve this major problem for "Hyper Text" applications ? Thank to tell me what are the plans on this topic. You can script around these issues, relatively easily. Unicode supports entering and display international text. We don't plan to make any further changes to these functions for 2.0, but could consider revisiting this (at the scripting level at least) for 2.1. In the mean time, try asking on the use-revolution mailing list, someone there is bound to be able to help write a script to overcome these issues. Kind regards, Kevin -- As far as I am concerned I don't see how to deal with this, so my question to the members of this list is Has some members an idea on how to solved this and better has someone made it work ?? Many Thanks