User Tag List

Results 1 to 5 of 5

Thread: Detect if the user has moved the window

  1. #1
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleXNA Export Module

    Join Date
    Jul 2010
    Location
    Italy
    Posts
    368
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Detect if the user has moved the window

    Hi all!
    I want to detect when the user moves the window of the application, and to play a sound. At the moment I'm doing this:

    Start of frame:
    -Set Global Value X to WinXPos("Window Control")
    -Set Global Value Y to WinYPos("Window Control")

    WinXPos("Window Control") <> Global Value X
    +Run this event once
    OR
    WinYPos("Window Control") <> Global Value Y
    +Run this event once
    -Play sample BONUS1

    But it won't work. When the frame loads, it plays the sound immediatly.
    Also, using a String, I've discovered that WinXPos("Window Control") is 632, but Global Value X is 0, also if I set it to WinXPos("Window Control"). Do you know why?

    Thank you in advanced for your help!

  2. #2
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    Stephen's Avatar
    Join Date
    Aug 2008
    Location
    Montana
    Posts
    4,515
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Detect if the user has moved the window

    There is an object called Window Life that can tell you if the window was moved/resized.
    _____________________________________________
    Nivram's Examples -Need extensions? Send me a PM.-


  3. #3
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleXNA Export Module

    Join Date
    Jul 2010
    Location
    Italy
    Posts
    368
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Detect if the user has moved the window

    I've searched for it in the Released Extensions forums, but I didn't find it. Where can I find it?
    Thank you again!

  4. #4
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    Stephen's Avatar
    Join Date
    Aug 2008
    Location
    Montana
    Posts
    4,515
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Detect if the user has moved the window

    _____________________________________________
    Nivram's Examples -Need extensions? Send me a PM.-


  5. #5
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleXNA Export Module

    Join Date
    Jul 2010
    Location
    Italy
    Posts
    368
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Detect if the user has moved the window

    Thank you very much, this object is great!

Similar Threads

  1. Detect if certain app is installed on user's device?
    By MJK in forum iOS Export Module Version 2.0
    Replies: 2
    Last Post: 9th November 2013, 09:59 AM
  2. Detect if user is using a touch screen PC?
    By Bipolar_Games in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 31st July 2013, 09:35 AM
  3. Detect if user has a touch screen PC?
    By Bipolar_Games in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 31st January 2013, 01:51 AM
  4. I need to detect the direction the mouse is moved
    By Tuna in forum SWF/Flash Export Module Version 2.0
    Replies: 6
    Last Post: 6th September 2010, 07:14 PM
  5. Game stops when window moved
    By SomethingOdd in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 25th March 2009, 10:50 PM

Posting Permissions

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