Re: finding local IP... on Win98?

2004-12-24 Thread kweto
Ken Ray wrote:
(B
(B How about doing a shell to "ipConfig /all" and then parsing the result?
(B
(BThat did the trick! Thanks -- both for the solution and for your script
(Bitself, which brought to my attention how to better use "matchChunk" and the
(Bhitherto unknown "shell" and "specialFolderPath" functions.  Actually, my
(Bmachines run Japanese versions of Win98SE so the "IP Address" search term
(Bhad to be translated.)
(B
(BCheers,
(BNicolas Cueto
(B(from the land of odd Kurisumasu celebrations)
(B___
(Buse-revolution mailing list
(Buse-revolution@lists.runrev.com
(Bhttp://lists.runrev.com/mailman/listinfo/use-revolution

finding local IP... on Win98?

2004-12-23 Thread kweto
Hello again,
(B
(BBoth methods advised by Thierry Arbellot and Dar Scott worked... on Win2K
(Bbut not on Win98SE.
(B
(BThe result I got for hostAddress on a local computer was...
(B
(B0.0.0.0
(B
(B.. when I tried both Thierry Arbellot's...
(B
(B  put "255.255.255.255:43222" into testSocket
(B  open datagram socket to testSocket
(B  put hostAddress(testSocket) into theIPAddress
(B  close socket testSocket
(B
(B.. and Dar Scott's variation of using...
(B
(B the IP address of something on the LAN that is fixed"
(B
(BSo I'm back to square one, i.e., how to use Rev to find out a computer's LAN
(BIP.
(B
(BCheers,
(BNicolas Cueto
(B(Nihon)
(B___
(Buse-revolution mailing list
(Buse-revolution@lists.runrev.com
(Bhttp://lists.runrev.com/mailman/listinfo/use-revolution

finding local IP?

2004-12-21 Thread kweto
Hello All,
(B
(BThanks to much kind advise, I can now create stacks that are able to
(Binteract over my school's LAN. Next step is to simplify my messy scripting
(Bmethods.
(B
(BQuestion: Is there a Rev command (or elegant trick?) for retrieving the
(Blocal IP address of the computer on which a stack is running?
(B
(BFor the moment, my half-baked solution is to (1) use the router software to
(Bassign each computer a permanent IP address, and then (2) store those IP
(Baddresses as a text file. That way, each time a LAN-based stack opens it
(Bretrieves its computer's IP address from that text file.
(B
(BThere must be a better way, though!
(B
(BCheers,
(BNicolas Cueto
(B(Japan)
(B___
(Buse-revolution mailing list
([EMAIL PROTECTED]
(Bhttp://lists.runrev.com/mailman/listinfo/use-revolution

Re: stacks interacting over LAN? (newbie)

2004-12-01 Thread kweto
Hello again All,
(B
(BI've begun learning and putting into effect everyone's kind advise about
(Blinking stacks thru sockets. Especially useful were the chat stacks. I think
(BI have a strong sense now of how to make it all work. Thank you to all!
(B
(BNow, a related-but-OT question. If messages from several computers/stacks
(Bare sent out "simultaneously" to the one computer/stack which is intended
(Bfor accepting messages, in what order are those in-coming messages likely to
(Bbe handled? Of course, computers are fast so maybe there's nothing to worry
(Babout, but a group of young learners can surprise teachers in unpredicted
(Bways, especially if they're clicking madly on the "I know the answer!"
(Bbuzzer-like button of the LAN-based, interconnected stacks I'm now planning.
(BI'm worried/scared that, even though given things being equal (such as
(Bcomputer make and operating system), either the central stack itself or
(Bperhaps even the router might re-shuffle "simultaneous" messages in some
(Bsort of order other than a real-time one, and thus one learner will seem to
(Bbe winning all the time.
(B
(BAs always, thank you for all.
(B
(BCheers,
(BNicolas Cueto
(Bniconiko language school (Japan)
(B___
(Buse-revolution mailing list
([EMAIL PROTECTED]
(Bhttp://lists.runrev.com/mailman/listinfo/use-revolution

stacks interacting over LAN? (newbie)

2004-11-29 Thread kweto
Hello All,
(B
(BWhat I have in mind is somehow "connecting" two stacks that are running on
(Bseparate computers over a small LAN so that they interact with each other in
(Breal time. For example, a student clicks on a button representing the letter
(B"A" on her computer's stack and, immediately, another student on a separate
(Bcomputer's stack sees that same letter appear as well as hears a
(Bcorresponding sound file.
(B
(BNow, rather than expecting an entire scripting solution (to which I of
(Bcourse would not say "no"!), I'd just like some pointers in the right
(Bdirection. Where in the documentation can I learn more? What sample stacks
(Bare there that I might tinker with? In the past I've (barely!) managed to
(Bincorporate SQL functions into separate stacks running on a LAN, but that
(Bwas "simply" to read/write data from/to a common text file. I have no idea,
(Bhowever, how to make one stack "aware" of and "reactive" to, for example,
(Bmouse-events or global variables that are initiated by another stack.
(BSockets? Pipes? Is this so complex that I'd better just give up now??
(B
(BThanks for listening.
(B
(BCheers,
(BNicolas Cueto
(Bniconiko language school (Japan)
(B___
(Buse-revolution mailing list
([EMAIL PROTECTED]
(Bhttp://lists.runrev.com/mailman/listinfo/use-revolution

copying a card as an image to the system clipboard

2004-11-02 Thread kweto
Hello List,
(B
(BFor an MC stack I'm now converting to Rev, I used (Tuviah Snyder's?)
(BExternals Collection to copy the current card to the system clipboard (as a
(Bbitmap, which can then be pasted into other applications). I thought the
(Bclosest Rev equivalent for this would be the "copy" command, the
(Bdocumentation for which states:
(B
(B"If a stack is specified, the copied object must be a card."
(B
(BSo, I tried "copy card y of stack x", and even simply "copy card y", but, no
(Bluck.
(B
(BSo, is there a way?
(B
(BThanks.
(B
(BCheers,
(BNicolas Cueto
(B
(B___
(Buse-revolution mailing list
(B[EMAIL PROTECTED]
(Bhttp://lists.runrev.com/mailman/listinfo/use-revolution

slight delay in animated gif loop

2004-09-20 Thread kweto
Hello,
(B
(BActually, my animated gif's looping is not "natural", i.e., I don't rely on
(B"set repeatCount to -1". Instead, I use a "repeat" control strutcture to
(Bprogress the gif frame by frame, plus a two-part "if" statement to set the
(BcurrentFrame number of the gif back to 1 after its last frame has played.
(BThe time between each frame is 80 milliseconds, during which time a 50
(Bmillisecond (or thereabouts) sound file plays.
(B
(BThe problem is that the time length of all the frame changes move (and
(Bsound) uniformly, except, that is, for the change from the last frame back
(Bto the first frame, which shows a very slight but nonetheless noticeable
(Btime delay compared to the others.
(B
(BMy only guesses as to why are that (1) either the "repeat... if" control
(Bstructure requires a bit more processing time, or (2) I have neglected to
(Bset some image property I am not aware of. (Incidentally, the gif plays
(Bsmoothly when tested on a browser.)
(B
(BHere's the bit of script:
(B
(B
(Bput the currentFrame of image "imgSpinner" into tCurrentFreim
(Bput 1 into tEnough
(Brepeat until the mouse is up
(B play "ding.wav"
(B wait 80 milliseconds
(B -- long enough for the soundfile to play (and, yes
(B -- I tried "wait until the sound is done" but yuch!)
(B if tCurrentFreim  35 then put 0 into tCurrentFreim
(B if tCurrentFreim  37 then add 1 to tCurrentFreim
(B set the currentFrame of image "imgSpinner" to tCurrentFreim
(B add 1 to tEnough
(B if tEnough  95 then send mouseUp to me
(Bend repeat
(B
(B
(BIf someone has a solution, neurotic-I would really appreciate hearing it.
(B
(BThanks.
(B
(BCheers,
(BNicolas Cueto
(B(in somewhat less muggy Japan)
(B___
(Buse-revolution mailing list
(B[EMAIL PROTECTED]
(Bhttp://lists.runrev.com/mailman/listinfo/use-revolution

Re: slight delay in animated gif loop

2004-09-20 Thread kweto
Thank you to Jim MacConnell for the interesting "use MOD" suggestion. I
(Bdidn't know "MOD" existed.
(B
(BUnfortunately, "MOD" is not the solution. The documentation explains that:
(B
(B"If number can be divided evenly into divisor, the expression number mod
(Bdivisor is zero."
(B
(BWhich means the currentFrame will get set to 0 (!) at some point in the
(Bloop.
(B
(BOddly enough, though, that pesky frame delay is gone! Perhaps my restarting
(Bthe computer this morning cleared up an artery or something.
(B
(BCheers,
(BNicolas Cueto
(B___
(Buse-revolution mailing list
(B[EMAIL PROTECTED]
(Bhttp://lists.runrev.com/mailman/listinfo/use-revolution

Re: Educational uses for Rev / typing Japanese

2004-08-12 Thread kweto
On Friday 13 Aug 2004
(BAlejandro Tejada asked:
(B
(B Do you think that RunRev and Transcript have
(B a chance to get introduced to english students
(B and japanese english teachers?
(B
(BI have no idea. I hope so! And I think there's a Japan-based RunRev users
(Bgroup?
(B
(B Are you able to type EASILY Japanese with unicode
(B characters within RunRev fields?
(B
(BI don't know? From my experience with MC, I've been assuming that with
(BRunRev too I'd have to cut'n'paste Japanese text into fields. So, after
(BAlejandro Tejada asked I checked out and, yes!, I can not only type but also
(Bedit Japanese text directly within a field. Wow!
(B
(BBut, there's still a mismatch between some shift-key and punctuation
(Bcharacters on my keyboard and how these characters actually appear onscreen
(Bwithin a script field or the message box. For example, if I type these
(Bcharacters in a script field...
(B
(B'():]+*}
(B
(Bthe corresponding result onscreen is...
(B
(B^*('\:"|
(B
(BOh well...
(B
(BCheers,
(BNicolas Cueto
(B___
(Buse-revolution mailing list
(B[EMAIL PROTECTED]
(Bhttp://lists.runrev.com/mailman/listinfo/use-revolution

Re: Educational uses for Rev

2004-08-11 Thread kweto
Alejandro Tejanda asked:
(B
(B What's the main operating systems of PC in Japan?
(B
(BWindows, hands down.
(B
(B I've read somewhere that NEC computers are
(B a majority in Japan, or it was long ago?
(B
(BLong ago, there's a good chance NEC were dominant. All the schools of all
(Bthe schoolboards I taught at 15 years ago, for example, had installed
(B"top-of-the-line" CALL rooms (40+ PC's, projector screen, printers, all
(Bnetworked, though no internet), and everything had the NEC brand.
(B(Incidentally, those rooms also collected a lot of dust.) And, knowing
(Bbureaucracies, if two or three schoolboards went NEC then the likelihood is
(Balso high that many (most? all??) other schoolboards nationwide went NEC
(Btoo.
(B
(BThings now, though, may have changed.  This comment, too, is just a guess
(Bfrom experience. For example, the private jr/sr high I was at most recently
(Bwas originally NEC based, but this year they re-did one of the CALL room's
(Bwith Dell machines. Must be the economy and everyone's efforts to cut down
(Bon costs.
(B
(B Talking with some japanese people, i learned
(B that relatively few japanese could speak
(B english with fluency. This was a surprise for me.
(B
(BSadly, that's still probably true. But, then again, coming from Canada, I
(Bcan't speak with pride about the general French ability of Anglo-Canadians
(Bdespite years of education and, more importanly, despite the fact that it's
(Bone of our official languages.
(B
(B(Y ademas, Alejandro, me imagino que en tu mente estaras haciendo una
(Bcomparacion entre el nivel de ingles aqui y ese nivel tan alto que existe
(Bpor casi toda Europa. Si es asi, yo pienso que no es una comparacion
(Brazonable. Por ejemplo, como ya sabras, los sistemas de letras y la
(Bgramatica son bastantes diferentes, y, ademas, el ingles forma parte tanto
(Bde la historia europeana como la de sus paises coloniales. Pero pensando
(Bpositivamente, me parece que a lo mejor despues de una o dos generaciones
(Bmas, la abilidad en ingles aqui tambien se vera significadamente mejorada.
(BPor ejemplo, en una de los high-schools que enseno, casi todos los maestros
(Bde ingles hablan el ingles "pera-pera". En contraste, hace quince anos antes
(Bque, de las dozenas de maestros de ingles que yo conocia en las escuelas
(Bpublicas, solamente dos o tres hablaban o entendian el ingles
(Bsuficientemente. Puesto que, espero que las cosas esten cambiando
(Bveramente.)
(B
(B
(B  I would be very interested in
(B  hearing more about what
(B  you have to say about potential applications
(B  in this field.
(B
(BKaj Schwermer asked that (Hello, Kaj! Nicolas Cueto here, in
(BTochigi-ken/Japan for 15 -- or more?! -- years, and running just one
(B"eikaiwa" school), and, of course, the potential for RunRev or MC is near
(Binfinite. Myself, I've made applications for in-class use or online; some of
(Bit for making little doohickeys that just add fun to the class, some of it
(Bfor language analysis (part of my MSc involved corpora analysis of sr high
(Bentrance exams), some of it for testing (and, horrors!, that includes
(Bmultiple-choice testing), some of it for generating classroom materials, and
(Bsome of it to handle repetitive tasks (like spitting out the html code for a
(Blarge table of photos). And, I agree with Kaj about the dearth of quality
(BCALL materials here. Hence why I roll my own. Now, if only I could draw, I'd
(Bbe all set. g
(B
(BEnjoying and benefitting from this education thread!
(B
(BCheers,
(BNicolas Cueto
(Bniconiko language school (Japan)
(Bhttp://kweto.com
(B___
(Buse-revolution mailing list
(B[EMAIL PROTECTED]
(Bhttp://lists.runrev.com/mailman/listinfo/use-revolution

how to create draggable objects

2004-07-20 Thread kweto
Any pointers as to where to begin looking in the Transcript Dictionary to
(Blearn about how to allow objects to be dragged and dropped would be very
(Bwelcome. (The purpose: students click on a button to hear an English word
(Band then drag the corresponding image to that same button.)
(B
(BCheers,
(B
(BNicolas Cueto
(B___
(Buse-revolution mailing list
(B[EMAIL PROTECTED]
(Bhttp://lists.runrev.com/mailman/listinfo/use-revolution

scripting simultaneity

2004-07-07 Thread kweto
Hello,
(B
(BOn my stack, clicking a single button causes two animated gifs (spinners) to
(Bstart moving frame by frame. Moreover, because frame speeds for both these
(B"spinner" images need to randomly vary and thereby reproduce a "natural"
(Bslowing down effect, that same start-button's script uses "set the
(BcurrentFrame to x" to step the gif's thru each frame instead of merely
(Bletting them run their course "naturally" at their own built-in frame speed.
(B
(BAnyway, that part of the script I've got worked out -- thanks to prior
(Badvice from the list.  The difficulty now is how to script a simultaneous
(Beffect within the one button's script, so that one spinner keeps spinning at
(Ba constant rate while the other spinner begin to slow down and eventually
(Bstop, at which point the first spinner too begins to slow and stop.
(B
(BThat sounds confusing even to me, so maybe I should outline the basic
(Boverall process I'm after:
(B
(B--
(B(STEP 1)
(BClick a start button to begin moving animated gif A and animated gif B at
(Bthe same per-frame rate;
(B
(B(STEP 2) When the start button is released:
(B  (a) animated gif A begins to slow down at a randomly set"deceleration"
(Bspeed, while
(B  (b) animated gif B continues spinning in the background at a constant
(Brate;
(B
(B(STEP 3) When animated gif A is eventually stopped, animage gif B also
(Bbegins to "decelerate" at a randonly set per-frame speed, and eventually
(Bstops.
(B
(B(STEP 4) Display the two results as determined by each animated gif's final
(Bposition (i.e., its currentFrame property)
(B---
(B
(BI hope that all makes sense :-)
(B
(BCheers,
(B
(BNicolas Cueto
(B(Nihon)
(B___
(Buse-revolution mailing list
(B[EMAIL PROTECTED]
(Bhttp://lists.runrev.com/mailman/listinfo/use-revolution

scripted animation advice

2004-06-29 Thread kweto
Hello All,
(B
(BIs there a mathematical way of generating a spinner effect (i.e., to
(Bre-create something like the spinner in the game of Twister or for a lucky
(Bwheel)? 
(B
(BI recall way back when that someone had very creatively used MC's
(BarcAngle property on a circle image-object to create the illusion of a
(Btimer.
(B
(BPerhaps there's a similar way of creating the illusion of a spinner on
(BRunRev?
(B
(BThe reason I'm after this is to allow students in my language classes to
(B"spin the wheel" (rather than throw a dice, for example) in order to, for
(Bexample, move around a game board.
(B
(BPlus, I have no idea how to go about this mathematically...
(B
(BThank you.
(B
(BCheers,
(B
(BNicolas Cueto
(B___
(Buse-revolution mailing list
(B[EMAIL PROTECTED]
(Bhttp://lists.runrev.com/mailman/listinfo/use-revolution

how to set font of ask/answer dialogues

2004-05-29 Thread kweto
For my Japanese-speaking users, how do I set the fonts of a stack's
(Bask/answer dialogues? In MC, I seem to recall that these dialogue windows
(Bwere actually MC stacks, and therefore modifiable. But I can't find
(Bsomething similar to those stacks in RunRev.
(B
(BThank you.
(B
(B--
(BNicolas Cueto
(Bniconiko language school
(B___
(Buse-revolution mailing list
(B[EMAIL PROTECTED]
(Bhttp://lists.runrev.com/mailman/listinfo/use-revolution

are image objects moveable?

2004-02-25 Thread kweto
Is there a (simple) way of enabling a user to use a mouse to pick up an
(Bimage object and then move it around on a card? I.e., click and hold on an
(Bimage with mouse left-button, move image by moving mouse, and then release
(Bmouse left-button.
(B
(BAlso, if the reason for moving the image object is to place it into a
(Bcontainer, then, what type of object would serve best as a container (image
(Bobject? button object?), and how would I identify when the moved image
(Bobject is on/over the container?
(B
(BThank you.
(B
(B--
(BNicolas Cueto
(B___
(Buse-revolution mailing list
(B[EMAIL PROTECTED]
(Bhttp://lists.runrev.com/mailman/listinfo/use-revolution

Japanese keyboard layout

2004-02-17 Thread kweto
Hello (again!),
(B
(BHaving just switched from MC to RunRec the other day, I was surprised to
(Bfind while scripting that RunRev's keyboard layout doesn't automatically
(Badapt itself to my actual keyboard layout, i.e., Japanese 102 key.
(B
(BShort of relabelling the upper-row characters on my keyboard, is there a way
(Bof fixing this within RunRev? If it means anything, I'm on Win2k with the
(Bkeyboard of course set to Japanese.
(B
(BThank you.
(B
(BNicolas Cueto
(B___
(Buse-revolution mailing list
(B[EMAIL PROTECTED]
(Bhttp://lists.runrev.com/mailman/listinfo/use-revolution

Re: Japanese keyboard layout

2004-02-17 Thread kweto
 Which keys are not showing up right?
(B
(BAll the "caps" shown above the numbers on the top key row. Meaning, the
(Bnumbers work ok but not the "! " # $ %  ... ", which come out mismatched.
(BAlso, nearly all the punctuation keys on the right-hand of each of the four
(Brows of keys punch out on screen differently from what's on the keys.
(B
(B--
(BNicolas Cueto
(B___
(Buse-revolution mailing list
(B[EMAIL PROTECTED]
(Bhttp://lists.runrev.com/mailman/listinfo/use-revolution