User Tag List

Results 1 to 6 of 6

Thread: Prevent the opening several times.

  1. #1
    Clicker Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module
    Sevennemesis's Avatar
    Join Date
    May 2012
    Location
    Québec
    Posts
    235
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Prevent the opening several times.

    hello, I wonder if it is possible to create a function to prevent the software from being opened multiple times under Windows.

    Here is an example.
    my software is already open windows, I decided to open my software a second time, it checks if it is already open.

    if not ... software opens

    if yes ... software opens, but alerts the user that the software is already open now.

  2. #2
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export Module
    XStar's Avatar
    Join Date
    Feb 2012
    Location
    Winchester, VA
    Posts
    1,165
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You could use the Process Viewer extension, that's good for testing that sort of stuff.

    On Process

    Compare two general values: pExeFile$( "Process Viewer" ) = Gamename.exe

    then

    Terminate Process (Process ID)

  3. #3
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export Module
    XStar's Avatar
    Join Date
    Feb 2012
    Location
    Winchester, VA
    Posts
    1,165
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That way, it will terminate the process if another is already opened. Now for a better and more precise termination you'll want to check that more than one process of it is running.

  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)
    You could just use Instance Communicator.
    _____________________________________________
    Nivram's Examples -Need extensions? Send me a PM.-


  5. #5
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export Module
    XStar's Avatar
    Join Date
    Feb 2012
    Location
    Winchester, VA
    Posts
    1,165
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    He's right, that's another good way!

  6. #6
    Clicker Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module
    Sevennemesis's Avatar
    Join Date
    May 2012
    Location
    Québec
    Posts
    235
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oh yeah!!! work perfecly with Instance Communicator!! thx thx thx!!

Similar Threads

  1. How to prevent MS Outlook from being closed?
    By RGBreality in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 27th April 2011, 03:21 PM
  2. Prevent editbox from freezing your app
    By Fimbul in forum File Archive
    Replies: 0
    Last Post: 8th October 2009, 07:47 PM
  3. How I do to prevent a double execution
    By ASD in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 22nd September 2009, 03:22 PM
  4. Prevent Multiple Instance app.
    By Bruto in forum File Archive
    Replies: 6
    Last Post: 16th April 2008, 05:18 PM
  5. prevent resizing app ?
    By Tiles in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 5th August 2006, 09:34 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
  •