User Tag List

Results 1 to 8 of 8

Thread: How to set the position of mouse?

  1. #1
    Krisse
    Guest

    How to set the position of mouse?

    For example:

    When enter button is pressed
    -
    Set mouse position to: x200 y300

    Is there a object in mmf2? If i need an extension, gimme a link.

  2. #2
    Clicker Fusion 2.5 DeveloperiOS Export Module

    Join Date
    May 2007
    Posts
    57
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to set the position of mouse?

    Mouse object does that. Unfortunately cannot remember is it part of bonus packs or does it need an individual download, but do a search and you'll find a source.

  3. #3
    Clickteam Clickteam
    Jeff's Avatar
    Join Date
    Jun 2006
    Location
    Battle Ground Washington
    Posts
    11,825
    Mentioned
    8 Post(s)
    Tagged
    2 Thread(s)

    Re: How to set the position of mouse?

    The mouse object is in the Bonus Pack 2 but I can't get it to work right. I am asking around to see if there is another one around or can be made.

  4. #4
    Clickteam Clickteam
    Jeff's Avatar
    Join Date
    Jun 2006
    Location
    Battle Ground Washington
    Posts
    11,825
    Mentioned
    8 Post(s)
    Tagged
    2 Thread(s)

    Re: How to set the position of mouse?

    The Kernal object for MMF2 Dev has some mouse moving functions also, but I believe its based off the cordinates of the whole screen - Not just the MMF2 frame so maybe the cellosoft mouse is the same as this.

    The Big Box extension also has these functions.

    Try the extension list to download them
    http://ext.neatwares.ath.cx/

  5. #5
    No Products Registered

    Join Date
    Nov 2007
    Location
    Wales
    Posts
    69
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to set the position of mouse?

    The Mouse Object uses the actual position of the mouse on the screen as a whole, but if you use it with the Window Control Object you can offset it to your window by using something like:

    Set Actual Mouse X to WinXPos("Window Control")+ offset1
    Set Actual Mouse Y to WinYPos("Window Control")+ offset2

    where offset1 and offset2 add to the top-left corner of your app window.

    Of course, you'll need to use trial and error depending on whether you have a window title bar and a menu bar, but once you find the 0,0 for the internal area of your app window, it works perfectly.

    That's only if there isn't a mouse control out there that does it all for you (I don't know, haven't checked).

    Krush.

  6. #6
    No Products Registered

    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    1,141
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to set the position of mouse?

    You can do it with only the mouse object too
    Something like
    Set Actual Mouse X to Get Actual Mouse X("Mouse Object") - Xmouse + Offset
    Set Actual Mouse Y to Get Actual Mouse Y("Mouse Object") - Ymouse + Offset

  7. #7
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: How to set the position of mouse?

    Quote Originally Posted by Krush_Brother
    Of course, you'll need to use trial and error depending on whether you have a window title bar and a menu bar, but once you find the 0,0 for the internal area of your app window, it works perfectly.
    DO NOT do it this way! The title bar and menu bar are going to be different sizes on different operating systems and themes.

  8. #8
    No Products Registered

    Join Date
    Nov 2007
    Location
    Wales
    Posts
    69
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to set the position of mouse?

    Quote Originally Posted by Jamie
    DO NOT do it this way! The title bar and menu bar are going to be different sizes on different operating systems and themes.
    Good call!

Similar Threads

  1. Aiming based on Mouse Position
    By playfair in forum The Games Factory 2 - Technical Support
    Replies: 2
    Last Post: 24th November 2012, 04:53 PM
  2. Mouse Pointer position in Flash
    By Dave78 in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 27th July 2012, 04:09 PM
  3. How to create object at mouse position?
    By qenio in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 26th June 2012, 09:49 AM
  4. setting the position of the mouse
    By ac3raven in forum Multimedia Fusion 2 - Technical Support
    Replies: 26
    Last Post: 26th April 2011, 02:58 AM

Posting Permissions

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