teleprompter application- reverse text, smooth scrolling?

Jim Ault JimAultWins at yahoo.com
Fri Jun 23 00:07:44 EDT 2006


Does any of this work for your app?

put the formattedheight of fld operatorText into gigantic
set the height of fld operatorText to gigantic
--full height
---->fld  operatorText border = 0, opaque = false
--mask fld top, bottom

put 100 into origTop
set the top of fld operatorText  to origTop

put 22 into scrollIncrm  --your pixelage may vary
repeat forever
   get the vscroll of fld operatorText
   if the optionKey is down then
      set the top of fld operatorText to it - scrollIncrm
   else
       set the top of fld operatorText to it + scrollIncrm
   end if

  wait 20 milliseconds --adjust to taste

   if the shiftkey is down then wait 200 milliseconds --s l o w
   if the shiftKey is down and the optionkey is down then
      set the top of fld operatorText to origTop
   end if  
   if the top of fld operatorText  < (origTop - gigantic) then
       benediction
       exit repeat
   end if
end repeat

Jim Ault
Las Vegas



On 6/22/06 3:35 PM, "Josh Mellicker" <josh at dvcreators.net> wrote:

> This script:
> 
>      repeat with v = 1 to 300
>          set the vScroll of fld "operatorText" to v
>      end repeat
> 
> scrolls a field up, but is too slow... any way to speed a loop up?
> 
> 
> I have also tried
> 
> ON keepPrompting
>      set the vScroll of fld "promptText" to the vScroll of fld
> "promptText" + 1
>      send keepPrompting to me in 0 milliseconds
> END keepPrompting
> 
> which seems about as slow...
> 
> 
> Any ideas?
> 
> 
> (these are not actual scripts, but tests... the app varies scroll
> speed with a mouse scroll wheel)
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution





More information about the use-livecode mailing list