Re: Initializing variables
When you have a long list of variables, it might be easier to try an array instead. For example: on mouseUp global myVar repeat with i = 1 to 1000 put 0 into myVar[i] end repeat end mouseUp So, instead of calling your variables x,y,z etc...you can simply call them myVar[1],myVar[2], etc good luck, mark in Japan Jim wrote: I have a list of variables, say "x,y,z" I would like to set each of these equal to zero. If I were to use the following: put "x,y,z" into tList repeat with i = 1 to 3 put 0 into item i of tList end repeat ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Scanning machines on a network
A lot of software packages scan the local network to see if other copies of the software may be running with the same serial number. I've thought of many ways to accomplish this, but all of them seem slow and inefficient. How is this done? -- Richard Gaskin Fourth World Media Corporation Custom Software and Web Development for All Major Platforms Developer of WebMerge 1.9: Publish any Database on Any Site ___ [EMAIL PROTECTED] http://www.FourthWorld.com Tel: 323-225-3717 AIM: FourthWorldInc ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: the mouse
on 3/9/02 4:51 PM, Dar Scott at [EMAIL PROTECTED] wrote: On Friday, March 8, 2002, at 02:13 PM, Ken Norris (dialup) wrote: on mouseUp repeat for 60 times put the mouse into field mouseValue --put the mouseClick into field mouseClickValue wait for 500 milliseconds end repeat end mouseUp During this 30 second test, when the mouse button is pressed the value of the field mouseValue changes to down. However, when it is released, it does not change to up. -- How can it? You have locked the first value into the loop until it quits. Could you clarify what you mean by this? -- on mouseUp -- sends the up message -once- to the object whenever the -- button is released, and takes priority for the object repeat 60 times -- begins a 60 cycle loop put the mouse into field mouseValue -- puts the very next state -- ('down', of course) of the mouse it catches in the loop into the -- field mouseValue. -- put the mouseClick into field mouseClickValue -- commented line -- does nothing -- BUT, if you UNcomment this line it will put the -- up state, which is the last half of a mouseClick event message, -- into the field mouseClickValue, but probably also sends it -- (mouseUp) to the object again wait 500 milliseconds -- stops _all_ messages for 500 -- milliseconds end repeat end mouseUp You are trying to catch two different mouse messages in a mouse handler. You're lucky it's not stalling out or giving you an error. Best regards, Ken N. ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Scanning machines on a network
On Sunday, March 10, 2002, at 12:00 PM, Richard Gaskin wrote: A lot of software packages scan the local network to see if other copies of the software may be running with the same serial number. I've thought of many ways to accomplish this, but all of them seem slow and inefficient. Here is an idea. Invert the idea of scanning. Each copy UDP Broadcasts its serial number at startup and every minute or so to a obscure port of your choosing, eg. 255.255.255.255:47011. Each copy also listens on that port. If a serial number comes in from a different computer that matches that of the listening copy, there's a serial number clash. (I have no idea whether this can be done in Revolution; I'm new to Revolution.) (If you need to know at the start of execution, add a poll code to the datagram.) How is this done? Well. I've done quite a bit of TCP/IP programming, but have never done this, so take this with a grain of salt. Folks who have solved the problem may have tried and rejected this idea long ago. Dar Scott ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
remove me
remove me, please -Original Message- From: Jim Hurley [EMAIL PROTECTED] To: [EMAIL PROTECTED] [EMAIL PROTECTED] Date: Saturday, March 09, 2002 5:03 PM Subject: Initializing variables I have a list of variables, say x,y,z I would like to set each of these equal to zero. If I were to use the following: put x,y,z into tList repeat with i = 1 to 3 put 0 into item i of tList end repeat This would of course replace the list x,y,z by 0,0,0 and not achieve my objective. Instead I want x,y, and z to take on the values 0. I've tried quotes and value() without success. My actual list is very long and it would be awkward to put 0 into x put 0 into y put 0 into z Any thoughts on an efficient way of assigning values to variables within a list? Thanks, Jim Hurley ___ 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
revShowPrintDialog: Cancel print and other things
Hi, How do I cancel a print job when using revPrintText or revPrintFIeld? I use revShowPrintDialog true,true and I can cancel the printing if I select Cancel during page setup but if I click Cancel during dialog the job still prints. Also, how persistent and what is the scope of the showPageSetup and showPrint parameters of revShowPrintDialog? When I comment out the rSPD command, the last sPS and sP parameters used are still in effect. Thanks, michael ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Scanning machines on a network
On Sunday, March 10, 2002, at 01:54 PM, Dar Scott wrote: On Sunday, March 10, 2002, at 12:00 PM, Richard Gaskin wrote: A lot of software packages scan the local network to see if other copies of the software may be running with the same serial number. I've thought of many ways to accomplish this, but all of them seem slow and inefficient. Here is an idea. Invert the idea of scanning. Each copy UDP Broadcasts its serial number at startup and every minute or so to a obscure port of your choosing, eg. 255.255.255.255:47011. Each copy also listens on that port. If a serial number comes in from a different computer that matches that of the listening copy, there's a serial number clash. My tinkering with Revolution has gotten to UDP. I have been able get UDP working, so I think the above can be done in Revolution. However, I don't have a way to get the local IP, yet. (Receiving UDP is weird; at least it is the way I did it.) Dar Scott ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution