Sign in to follow this  
Followers 0
Andreik

KnobCtrl

1 post in this topic

#1 ·  Posted (edited)

Know anyone a good OCX to create in my script an activex knob control? I tried BCTKnob.ocx but I get a runtime error when I am trying to create the object.

EDIT: I tried also AUDIOCONTROLS2.ocx but I don't know why fail when I try any action with the object, like set min value.

$MAIN = GUICreate("Example",400,400)
$KNOB = ObjCreate("AUDIOCONTROLS2.KnobCtrl.1")
$CTRL = GUICtrlCreateObj($KNOB,100,100,40,40)
$KNOB.Min = 0
GUISetState(@SW_SHOW,$MAIN)

While True
    Switch GUIGetMsg()
        Case -3
            Exit
    EndSwitch
    Sleep(10)
WEnd
Edited by Andreik

When the words fail... music speaks

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0