Congratulations! You are a March Madness BONUS BUYER!

Enjoy 10% OFF* ALL PURCHASES STOREWIDE or enjoy 30% OFF items with a SKU number lower than 16000 & 30% OFF items from Runtime DNA.

Buy 2 or more Newly Mad new release and get an EXTRA 30% OFF Newly Mad releases.

Offer valid for intended recipient only
* 10% discount DOES apply to Gift Cards and Memberships. **Items must be in cart simultaneously for discount to apply.
[ collapse ]

Keypress (down and up), mouse move, and mouse locking

jonathan3jonathan3 Posts: 0

Does anyone know how to do either of these functions in Daz script:

Key Down
Key Up
Mouse Movement

Mouse Locking (into the center)

Where could I find out info like this? The documentation is VERY limited, and the most info I get is from examining other scripts on some of the sites out there.


  • Richard HaseltineRichard Haseltine Posts: 32,444
    edited December 1969

    Mouse movement isn't available to scripting - it would need a new plugin, which could then make the data available to scripts, but I don't think there's anything currently available. I'm not sure if it's possible to capture key-presses - I was thinking a text edit box might do the job, as a workaround, but it doesn't look like it.

  • jonathan3jonathan3 Posts: 0
    edited December 1969

    Thanks to "Casual" for this:

    ed = new DzLineEdit( wDlg );
    connect( ed, "textChanged(const QString&)", textChanged );

    function textChanged( s )
    if( s.length > 0 )
    ed.text = "";
    case '1': bf1(); break;
    case '2': bf2(); break;
    case '3': bf3(); break;
    case '4': bf4(); break;
    case '5': bf5(); break;
    case '6': bf6(); break;
    case '7': bf7(); break;
    case '8': bf8(); break;
    case '9': bf9(); break;

Sign In or Register to comment.