Click the links below to explore the different sections of our site. If you have any questions about our products or services, don't hesitate to contact us.
Following are a number of links to pages that might interest you as a visitor of this web site.
copyright © 2005-07 by Mark Schonewille & Economy-x-Talk

Economy-x-Talk - Sample Scripts

Conditional Idle

This script makes a button blink if the mouse is not moving and the selection is empty.
Have fun.

[MS]





on idle
  global oldTicks,oldLoc,lastBlink
  -- change the following condition between
  -- brackets to any condition you want
  if (the mouse is not down) then
    put 60 into delay
    if oldTicks is empty then put the ticks into oldTicks
    if oldLoc is empty then put the mouseLoc into oldLoc
    put the ticks into currTicks
    if the ticks - oldTicks > 300 and¬
    the selectedChunk is empty then
      if the mouseLoc is oldLoc then
        if the ticks - lastBlink > delay then
          changeHilite
          put the ticks into lastBlink
        end if
      else
        put the ticks into oldTicks
        put the mouseLoc into oldLoc
      end if
    else
      drawNeutralHilite
    end if
  end if
end idle

on changeHilite
  global theHilite
  if theHilite is empty or theHilite is true then
    addColor "colorButton","cd",id of cd button 1,"56797,00000,00000",1
    put false into theHilite
  else
    addColor "colorButton","cd",id of cd button 1,"00000,00000,56797",1
    put true into theHilite
  end if
end changeHilite

on drawNeutralHilite
  addColor "colorButton","cd",id of cd button 1,"00000,56797,00000",1
end drawNeutralHilite

on closeCard
  addColor "colorCard"
end closeCard





Keep this extensive resource of tutorials and samples on-line! Support RunRev.info!
Yes, this script is useful. I make a donation and choose freely how much I want to donate on-line (PayPal). Click here if you want to make a donation in dollars.This script has not (completely) solved my problem and I want Economy-x-Talk to take care of it. Let me contact you.
Copyright©2002-2008 by Mark Schonewille, Nijmegen, the Netherlands. This web site is in no way affiliated with Runtime Revolution Ltd., but we do recommend the Revolution development platform.