Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: LUA Windows Function. ShowCursor

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

    Default LUA Windows Function. ShowCursor

    Hi All,

    I have been doing some G3.3 to G4 conversion, unfortunately I have hit a snag.

    I want to use some lua to hide the mouse cursor, I used to do this in G3.3, however, it does not seem to work in G4.

    I have the following code,
    Code:
    function ShowCursor (val)
    Result = win.ShowCursor(val)
    print (Result)
    end;
    
    ShowCursor (1)
    So by setting ShowCursor to 1 should show the cursor and 0 should hide the cursor.

    What am I doing wrong? or am I not doing anything wrong.

    This is a direct conversion from lua 4 and g3.3

    Any help would be appreciated. :P
    Thx, Dan

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

  2. #2
    Join Date
    Sep 2003
    Location
    reading / bournemouth UK
    Posts
    1,106

    Default

    have you read this:
    http://msdn.microsoft.com/library/de...showcursor.asp
    i don't know how closely this relates to the lua function though

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

    Default

    Hi

    Yeah I read that it made no sense to me! I tried various counts and it is still the same...
    Thx, Dan

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

  4. #4
    Join Date
    Sep 2003
    Location
    reading / bournemouth UK
    Posts
    1,106

    Default

    have you tried calling with true and false rather than 0 or 1?

  5. #5
    Join Date
    May 2004
    Location
    Cardigan, UK
    Posts
    9,278

    Default

    LOL! I just asked him the same question on MSN.

    Didn't work BTW
    --Rob

  6. #6
    Join Date
    Dec 2001
    Posts
    11,560

    Default

    The implementation is unchanged from g3.3 to 4. Wonder what is up?

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

    Default

    Mike, Does that mean my code should work?
    Thx, Dan

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

  8. #8
    Join Date
    Sep 2003
    Location
    reading / bournemouth UK
    Posts
    1,106

    Default

    not a solution but you could just move the cursor off the bottom right of the screen instead

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

    Default

    Thanks Birty, I do that aswell. I like to be doubly sure!
    Thx, Dan

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

  10. #10
    Join Date
    Dec 2001
    Posts
    11,560

    Default

    I can't get it to work either...

    Not sure what is going on

Page 1 of 2 12 LastLast

Posting Permissions

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