mIRC Home    About    Download    Register    News    Help

Print Thread
#234930 16/11/11 05:22 PM
Joined: May 2006
Posts: 15
L
liftman Offline OP
Pikka bird
OP Offline
Pikka bird
L
Joined: May 2006
Posts: 15
Hi!

How i can get result from one scroll bar in my dialog?
In the dialog table i've this line:

scroll "time", 401, 275 82 60 20, horizontal range 60 90

and the code:

on *:dialog:roll:scroll:* {
if $did == 400 {
set %delay1 $did(400)
did -r roll 9
did -a roll 9 %delay1
}
}
but %delay1 return $null. How i can read the value of the scroll?

Tia.

Joined: Oct 2004
Posts: 8,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
First, you need the same ID in both locations. You have 401 for the scrollbar, but then check 400 in the dialog event. Second, use .sel to get the scroll location... $did(401).sel

Joined: May 2006
Posts: 15
L
liftman Offline OP
Pikka bird
OP Offline
Pikka bird
L
Joined: May 2006
Posts: 15
Originally Posted By: Riamus2
First, you need the same ID in both locations. You have 401 for the scrollbar, but then check 400 in the dialog event.


Ops.. my mistake in cut & paste grin

Originally Posted By: Riamus2
Second, use .sel to get the scroll location... $did(401).sel


Great! it works fine.

Thanks! Have a nice night!



Link Copied to Clipboard