n4gix
Resource contributor
- Messages
- 11,674
- Country

That's what the min and max entries are for...
...although they seem backwards, this is the way they work.
For example, the script below will adjust the value of the (L:SomeVar,enum) from 0 to 9, then repeat
...although they seem backwards, this is the way they work.
For example, the script below will adjust the value of the (L:SomeVar,enum) from 0 to 9, then repeat
Code:
<MouseFlags>LeftSingle+RightSingle+WheelUp+WheelDown</MouseFlags>
<CallbackCode>
(M:Event) 'LeftSingle' scmp 0 ==
(M:Event) 'WheelDown' scmp 0 == or
if{ (L:SomeVar, enum) -- 0 max (>L:SomeVar, enum) }
(M:Event) 'RightSingle' scmp 0 ==
(M:Event) 'WheelUp' scmp 0 == or
if{ (L:SomeVar, enum) ++ 9 min (>L:SomeVar, enum) }
</CallbackCode>

