Is this a "bug" or just my computer?
I know I'm new and learning, so maybe I missed something.
from the keyboard:
cntrl + 2 = next card
cntrl + 3 = previous card
however, on my computer, if I have cap-lock ON, this doesn't work. I have to take cap-lock OFF to use keyboard to go to next/previous card.
just asking
homer
is this a "BUG" in Rev?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
executing at 11:12:57 PM
Type Chunk: no such object
Object Button3B
Line add myRate02/10 to fld "counter03"
Hint counter03
the button "Button3B" is the button on card 2 that starts my timer/counter
the field "counter03" is the field on card 2 that recieves the result of my button script (see below). it seems to me, I got to card 1 and the script for the button is still running, which is what I want, but now I'm on card 1, when the button is on card 2. I just don't know the script for the update.
(note: some things in the script i'm still testing and trying to figure out. for example, instead of updating every 1 second or 1/10 second, I want to make this "flexible". So I created a handler that would get the thumbPosition of another slider and then use that at my update rate. but it took off... like it divided and divided and divided. So my 'trial' code is commented out at present.
thanks for you help. see script below. I am attempting to calculate the amount of material that winds onto a spool at a given rate over time. as the timer/counter runs, the diameter grows.
here is the button script for button "Button3B"
local sRunning = false
local myRate02
global myRate03
on mouseUp
get the thumbPosition of scrollbar "Slider02"
put it into fld "myRate02A"
--put it into myRate03
get fld "myRate02A"
put it into tempVar200
if it is empty then put "1" into tempVar200
else
put tempVar200/60 into myRate02--slider divided by 60 results in ft/s
end if
put myRate02 into fld "myRate03A"--to watch variable
if not sRunning then
put true into sRunning
incFld
else
put false into sRunning
end if
updateMe03
send mouseUp to button "Button1"
end mouseUp
on incFld
if sRunning then
add myRate02/10 to fld "counter03"
--add myRate02/(1/myRate03) to fld "counter03"
put fld "counter03" into fld "DisplayLine01" of card 1
--send "incFld" to me in 1/myRate03 second
send "incFld" to me in 1/10 second
send mouseUp to button "diameter_calc01"--displays amount of material build on spool
end if
end incFld
on updateMe03
if sRunning then
set the backgroundcolor of me to "255,0,0"
set the label of me to "stop1"
else
set the backgroundcolor of me to "0,255,0"
set the label of me to "start3"
end if
end updateMe03
again, thanks for your help
homer
Type Chunk: no such object
Object Button3B
Line add myRate02/10 to fld "counter03"
Hint counter03
the button "Button3B" is the button on card 2 that starts my timer/counter
the field "counter03" is the field on card 2 that recieves the result of my button script (see below). it seems to me, I got to card 1 and the script for the button is still running, which is what I want, but now I'm on card 1, when the button is on card 2. I just don't know the script for the update.
(note: some things in the script i'm still testing and trying to figure out. for example, instead of updating every 1 second or 1/10 second, I want to make this "flexible". So I created a handler that would get the thumbPosition of another slider and then use that at my update rate. but it took off... like it divided and divided and divided. So my 'trial' code is commented out at present.
thanks for you help. see script below. I am attempting to calculate the amount of material that winds onto a spool at a given rate over time. as the timer/counter runs, the diameter grows.
here is the button script for button "Button3B"
local sRunning = false
local myRate02
global myRate03
on mouseUp
get the thumbPosition of scrollbar "Slider02"
put it into fld "myRate02A"
--put it into myRate03
get fld "myRate02A"
put it into tempVar200
if it is empty then put "1" into tempVar200
else
put tempVar200/60 into myRate02--slider divided by 60 results in ft/s
end if
put myRate02 into fld "myRate03A"--to watch variable
if not sRunning then
put true into sRunning
incFld
else
put false into sRunning
end if
updateMe03
send mouseUp to button "Button1"
end mouseUp
on incFld
if sRunning then
add myRate02/10 to fld "counter03"
--add myRate02/(1/myRate03) to fld "counter03"
put fld "counter03" into fld "DisplayLine01" of card 1
--send "incFld" to me in 1/myRate03 second
send "incFld" to me in 1/10 second
send mouseUp to button "diameter_calc01"--displays amount of material build on spool
end if
end incFld
on updateMe03
if sRunning then
set the backgroundcolor of me to "255,0,0"
set the label of me to "stop1"
else
set the backgroundcolor of me to "0,255,0"
set the label of me to "start3"
end if
end updateMe03
again, thanks for your help
homer
Hi Homer,
if Rev does not find the object(s) on the current card, why not give Rev some hints? That would be fair
Like this:
...
get the thumbPosition of scrollbar "Slider02" OF CD X
put it into fld "myRate02A" OF CD Y
--put it into myRate03
get fld "myRate02A" OF CD Z
...
send mouseUp to button "Button1" OF CD Z
...
etc
You get the picture.
Best
Klaus
if Rev does not find the object(s) on the current card, why not give Rev some hints? That would be fair

Like this:
...
get the thumbPosition of scrollbar "Slider02" OF CD X
put it into fld "myRate02A" OF CD Y
--put it into myRate03
get fld "myRate02A" OF CD Z
...
send mouseUp to button "Button1" OF CD Z
...
etc
You get the picture.
Best
Klaus