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: 2 more questions about operations on text in fields
Here's the solution I'm using. It's rather simple, it catches any character with accent, as well as any delete action by end users. the variable theString always contains the latest content of the field. The following handlers should be put in the field's script : on openfield send "check_fld" to me in 0.1 seconds end openfield on check_fld global theString put fld "Myfld" into theString if (the long id of me) = (the focusedobject) then send "check_fld" to me in 0.1 seconds end if end check_fld Hope that helps JB ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: 2 more questions about operations on text in fields
On 8/2/04 11:35 AM, jbv wrote: Question #1 : I'm on Mac (french kbd), and strangely the following script : on keyup which put which end keyup doesn't catch french characters with accents (é à etc)... is there any settings to catch those keys ? I haven't tried it, but does rawkeydown or rawkeyup work? -- 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: 2 more questions about operations on text in fields
I did a test with the handler in a stack's script and got the same problem. But the special characters are properly passed in the keyDown message, also if the keyUp message is in a field script. Have you check the deleteKey and backspaceKey messages ? Thierry. On Monday, Aug 2, 2004, at 18:35 Europe/Paris, jbv wrote: OK, I've found a single solution for the 2 problems, simply by using send "check_my_field" to me in 0.1 seconds and starting to check the content of the fld as soon as it gets the focus, and stopping when that fld looses focus... It works, but I was wondering if there was any more elegant (less "brute force") solution... JB Question #1 : I'm on Mac (french kbd), and strangely the following script : on keyup which put which end keyup doesn't catch french characters with accents (é à etc)... is there any settings to catch those keys ? - Question #2 : is there any equivalent to the "returninfield" message to catch the use of the delete key on parts of text contained in a field (in order to quickly know what's left in the field once users have used the delete key, but while the field still has the focus) ? Thanks in advance (again), JB ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: 2 more questions about operations on text in fields
Try looking at the "User Interaction" category of the documentation built-in to revolution. For example, look at the help for messages such as: deleteKey backspaceKey openField closeField exitField On Aug 2, 2004, at 12:35, jbv wrote: OK, I've found a single solution for the 2 problems, simply by using send "check_my_field" to me in 0.1 seconds and starting to check the content of the fld as soon as it gets the focus, and stopping when that fld looses focus... It works, but I was wondering if there was any more elegant (less "brute force") solution... JB Question #1 : I'm on Mac (french kbd), and strangely the following script : on keyup which put which end keyup doesn't catch french characters with accents (é à etc)... is there any settings to catch those keys ? - Question #2 : is there any equivalent to the "returninfield" message to catch the use of the delete key on parts of text contained in a field (in order to quickly know what's left in the field once users have used the delete key, but while the field still has the focus) ? Thanks in advance (again), JB ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution $0 Web Hosting with up to 120MB web space, 1000 MB Data Transfer 10 Personalized POP and Web E-mail Accounts, and much more. Get It Now At www.doteasy.com ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: 2 more questions about operations on text in fields
OK, I've found a single solution for the 2 problems, simply by using send "check_my_field" to me in 0.1 seconds and starting to check the content of the fld as soon as it gets the focus, and stopping when that fld looses focus... It works, but I was wondering if there was any more elegant (less "brute force") solution... JB > Question #1 : > I'm on Mac (french kbd), and strangely the following > script : > > on keyup which > put which > end keyup > > doesn't catch french characters with accents (é à etc)... > is there any settings to catch those keys ? > > - > > Question #2 : > is there any equivalent to the "returninfield" message > to catch the use of the delete key on parts of text > contained in a field (in order to quickly know what's > left in the field once users have used the delete key, but > while the field still has the focus) ? > > Thanks in advance (again), > JB > > ___ > use-revolution mailing list > [EMAIL PROTECTED] > http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
2 more questions about operations on text in fields
Question #1 : I'm on Mac (french kbd), and strangely the following script : on keyup which put which end keyup doesn't catch french characters with accents (é à etc)... is there any settings to catch those keys ? - Question #2 : is there any equivalent to the "returninfield" message to catch the use of the delete key on parts of text contained in a field (in order to quickly know what's left in the field once users have used the delete key, but while the field still has the focus) ? Thanks in advance (again), JB ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution