Page 2 of 2 FirstFirst 12
Results 11 to 20 of 20

Thread: LUA Windows Function. ShowCursor

  1. #11
    Join Date
    Nov 2003
    Location
    Hove, E Sussex, UK
    Posts
    4,005

    Default

    Phew, Glad it is not just me! :-?
    Thx, Dan

    Onwards and Upwards!
    http://www.danward.co.uk

  2. #12
    Join Date
    Jan 1998
    Location
    Jupiter, FL
    Posts
    13,541

    Default

    That's a weird one.
    Ron
    No support through PM

  3. #13
    Join Date
    Nov 2003
    Location
    Hove, E Sussex, UK
    Posts
    4,005

    Default

    Hi,

    Did this ever get fixed?
    Thx, Dan

    Onwards and Upwards!
    http://www.danward.co.uk

  4. #14
    Join Date
    Dec 2001
    Posts
    11,560

    Default

    Dan, it just calls the windows api directly. There is not much to fix.

  5. #15
    Join Date
    Dec 2001
    Posts
    11,560

    Default

    but just to be sure, try this using g3.3 and the old win func plugin and let me know if it works.

  6. #16
    Join Date
    Nov 2003
    Location
    Hove, E Sussex, UK
    Posts
    4,005

    Default

    Mike,

    It does work in 3.3 I use in on my HTPC
    Thx, Dan

    Onwards and Upwards!
    http://www.danward.co.uk

  7. #17
    Join Date
    Dec 2001
    Posts
    11,560

    Default

    Try it on the SAME machine

  8. #18
    Join Date
    Nov 2003
    Location
    Hove, E Sussex, UK
    Posts
    4,005

    Default

    Oh alright then! :P
    Thx, Dan

    Onwards and Upwards!
    http://www.danward.co.uk

  9. #19
    Join Date
    Nov 2003
    Location
    Hove, E Sussex, UK
    Posts
    4,005

    Default

    Yep still works!
    Thx, Dan

    Onwards and Upwards!
    http://www.danward.co.uk

  10. #20
    Join Date
    Jun 2005
    Posts
    6

    Default

    This thread is very old, but I prefer use it than start a new one about the same.

    I'm using girder 5.0.10 and I have the same problem. I've been doing some testings and I got the following:

    cursor = win.ShowCursor (val)
    val=1 increment cursor value (this is a counter)
    val=0 decrement cursor value

    If cursor is lower than 0 (a negative number) the mouse pointer is hidden, in other case is shown.

    But this only works into Grider window, when I test the script into Girder all work fine while the script is running, but when the script ends the pointer is shown again.

    My script:
    Code:
    --decrement mouse counter
    cursor = win.ShowCursor (0)
    print (cursor)
    
    -- aux: display current values
    msg = win.MessageBox ("Pointer : ".. tostring(cursor),"TEST",win.MB_OK)
    print (msg)
    -- end: aux
    
    --restore mouse counter
    --print (win.ShowCursor (1))
    When cursor=-1, the mouse pointer is hidden in all Girder windows, but only while this script is running, but when the message box is closed, the pointer is shown again. I did this test even with cursor=-9 but the pointer doesn't stay hidden when message box is closed.

    Maybe that is ok and this option doesn't allow to hide the pointer out of internal lua dialogs.
    Last edited by realcool; November 17th, 2012 at 05:48 PM.
    Never give-up

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •