+ Reply to Thread
Results 1 to 15 of 15

How to start 2 apps with 1 click?

This is a discussion on How to start 2 apps with 1 click? within the Modding & Development forums, part of the Meizu M8 category; Hi, am looking for a way to start 2 programs with just one click. The background is, that i want ...

  1. #1
    Member
    Join Date
    Apr 2009
    Location
    Germany
    Posts
    104
    Thanks
    14
    Thanked 13 Times in 10 Posts

    How to start 2 apps with 1 click?

    Hi,

    am looking for a way to start 2 programs with just one click.
    The background is, that i want to start screen-rotate and PDF Reader with just one click.
    Under windows i would use a *.bat file, but with wince?

  2. #2
    Senior Member
    Join Date
    May 2007
    Posts
    300
    Thanks
    3
    Thanked 11 Times in 10 Posts
    I want to know it too bat files don't work

  3. #3
    Member
    Join Date
    Sep 2008
    Posts
    100
    Thanks
    20
    Thanked 4 Times in 4 Posts
    I found this but im not sure if its helpful or not cause i dont know nothing about running bat files on WinCE.

  4. #4
    Freshman
    Join Date
    Mar 2009
    Location
    RUSSiA
    Posts
    40
    Thanks
    0
    Thanked 12 Times in 4 Posts
    May be you can use Mort Script
    Z298551075645

  5. #5
    Member
    Join Date
    Apr 2009
    Location
    Germany
    Posts
    104
    Thanks
    14
    Thanked 13 Times in 10 Posts
    Quote Originally Posted by alexeei View Post
    May be you can use Mort Script
    Seams to be the best option. I tried, but no success right now. Waiting for a replay to my post in the forum, maybe i did something wrong.

  6. #6
    Passing By
    Join Date
    May 2009
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts
    2Albert2002
    I've just tried to run 2 apps with a MortScript, everything's ok)) I've installed PNA version of .3b. The script is:
    Code:
    Run("\Disk\Programs\Lock\Lock.exe");
    Run("\Disk\Programs\AlReader\AlReader2.exe");

  7. #7
    Member
    Join Date
    Apr 2009
    Location
    Germany
    Posts
    104
    Thanks
    14
    Thanked 13 Times in 10 Posts
    Something am doing wrong.
    Am using this code
    Code:
    Run("\Disk\Programs\PDF Reader\PdfReader.exe");
    Run("\Disk\Programs\PDF Reader\ScreenRotate.exe");
    In the same dir is the

    MortScript.exe
    Autorun.exe
    mortzip.dll
    PDF.mscr

    What ever am doing, nothing happens. Clicking the exe files directly, or with a link from the "Desktop" no luck. Tried the PNA, SP and PPC files.

    I have not installed MortScript - Do i have to?

    Edit:

    Got it! The autorun.exe have to be renamed to the same name as the script!
    Autorun.exe renamed to PDF.exe. Now its running with my script PDF.mscr
    Last edited by Albert2002; 06-11-2009 at 09:34 PM. Reason: Got It!

  8. #8
    Passing By
    Join Date
    May 2009
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Yes, that's the solution=)
    The other one was to make a association for .mscr files with MortScript.exe app with the help of M8-Sprite))

  9. #9
    Junior Member
    Join Date
    Jun 2009
    Posts
    59
    Thanks
    0
    Thanked 5 Times in 5 Posts

    Thumbs up So you did it?! tuto possible

    hi, so you managed to open screenrotate and pdf with on clic ?!

    please could you make a small tuto...cause I am not familiar with scripts and i just got my M8 and I would happy to get this cheat!
    If i understood :
    You type this in mortscript ? :
    Run("\Disk\Programs\Lock\Lock.exe");
    Run("\Disk\Programs\AlReader\AlReader2.exe");

    you put all these files in the same directory ?
    MortScript.exe
    Autorun.exe
    mortzip.dll
    PDF.mscr

    PDF.msc is the script's name registered?

    And....The autorun.exe have to be renamed to the same name as the script! Autorun.exe renamed to PDF.exe. Now its running with my script PDF.mscr
    What is the autorun.exe ?? Please confirm process thanks
    Last edited by nicojoy69; 06-19-2009 at 08:53 PM.

  10. #10
    Member
    Join Date
    Apr 2009
    Location
    Germany
    Posts
    104
    Thanks
    14
    Thanked 13 Times in 10 Posts
    Its not so hard:

    Download the the MortScript and unpack the MortScript-4.2-PNA.cab
    Open Notepad and type copy those two lines:
    Code:
    Run("\Disk\Programs\PDF Reader\PdfReader.exe");
    Run("\Disk\Programs\PDF Reader\ScreenRotate.exe");
    Save it as pdf.txt.
    Rename pdf.txt to pdf.mscr
    Rename Autorun.exe to the same name as the script, in this case pdf.exe.

    Make a new folder on your M8 and copy this files to your M8 (or copy it in the PDFReader folder):

    pdf.mscr (your script)
    pdf.exe (your renamed Autorun.exe)
    MortScript.exe

    Run pdf.exe

    If you use this script, make sure, that the ScreenRotate.exe is in the same folder as PdfReader.exe. If not change the path in the script to the files you want to start.

    e.g.:
    Run("\Disk\Programs\PDF Reader\PdfReader.exe");
    Run("\Disk\Programs\ScreenRotate\ScreenRotate.exe");

  11. #11
    Junior Member
    Join Date
    Jun 2009
    Posts
    59
    Thanks
    0
    Thanked 5 Times in 5 Posts

    tks

    i forgot this topica while !! tks a lot

  12. #12
    Passing By
    Join Date
    Jul 2009
    Posts
    2
    Thanks
    0
    Thanked 2 Times in 1 Post

    Only 2 apps possible?

    Hi!
    I've tried your solution and it works fine!
    Now the question:
    I've tried to start 3 apps in the same way. I wrote a third line in the script.
    But that doesn't work.

    I want to start the following apps (with three lines):
    First: turn bluetooth on
    Second: Hide32
    Third: start Route66

    =>Bluetooth get startet, Route66 get startet but the headline isn't invisible.

    The lines in the script seems to be correct.

    So I changed the order of the lines:
    First: Hide32
    Second: start Route66
    Third: turn bluetooth on

    =>The headline is hidden, Route66 startet, bluetooth is turned on but the headline isn't invisible anymore.

    Another cange of the order of the lines:
    First: turn bluetooth on
    Second: start Route66
    Third: Hide32

    =>If i start this script by pressing the desktop icon, first thing you can see ist that the headline is ivisible, than bluetooth get startet, than Route66 get startet.

    So in my opinion it's a problem starting these apps so quickly one after another.
    Is it possible to let the script make a break after starting one app, before starting the next app?

    Thanks for your Answers!

  13. #13
    Passing By
    Join Date
    Jul 2009
    Posts
    2
    Thanks
    0
    Thanked 2 Times in 1 Post

    Batch für 3 apps with break!

    Hi !
    I solved the problem from my post from 08-06-2009, 07:35 PM.

    The solution was to have a break between starting Route66 and Hide32.
    Without the break Route66's action makes to turn off Hide32 again.

    Here's my script (with my program-paths):

    Run("\Program Files\Control\Bluetooth.exe");
    Run("\Disk\Route66\R66 M8.exe");
    Sleep(500);
    Run("\Disk\Programme\Hide32\Hide32.exe");

    The break is made with the command "Sleep".
    The length of the break is defined through the numerical value in brackets.

    This post is only an addition to the post #10.
    Perhaps it's interesting for anyone except me.

  14. 2 members have thanked knpb:


  15. #14
    Junior Member
    Join Date
    Jun 2009
    Posts
    59
    Thanks
    0
    Thanked 5 Times in 5 Posts

    tks

    Always useful ...tks for sharing !!!

  16. #15
    Passing By
    Join Date
    Aug 2009
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by knpb View Post
    Hi !
    I solved the problem from my post from 08-06-2009, 07:35 PM.

    The solution was to have a break between starting Route66 and Hide32.
    Without the break Route66's action makes to turn off Hide32 again.

    Here's my script (with my program-paths):

    Run("\Program Files\Control\Bluetooth.exe");
    Run("\Disk\Route66\R66 M8.exe");
    Sleep(500);
    Run("\Disk\Programme\Hide32\Hide32.exe");

    The break is made with the command "Sleep".
    The length of the break is defined through the numerical value in brackets.

    This post is only an addition to the post #10.
    Perhaps it's interesting for anyone except me.

    works fine for me too, but i also want to use screenrotate. i´ve tried almost every possible place for the run command line(while using your script) but everytime the display turns back into standard position just 2 seconds bevor route 66 starts. but if the bluetooth device is already running and get disabled while starting the script route 66 runs in landscape mode. can u help me pls?


 

Similar Threads

  1. no start never.
    By LMORILLA in forum Technical
    Replies: 9
    Last Post: 08-28-2008, 07:12 AM
  2. where do i start
    By carrienic93 in forum General Meizu M6
    Replies: 6
    Last Post: 01-26-2008, 06:23 PM
  3. Apps for M8
    By Salsa in forum General Meizu M8
    Replies: 4
    Last Post: 01-23-2008, 11:45 PM
  4. Click or Touch ? M6SL vs. M7
    By Satka in forum General Meizu M6
    Replies: 6
    Last Post: 10-28-2007, 06:13 AM
  5. "Click" sound between songs
    By govtcheeez in forum Technical
    Replies: 5
    Last Post: 09-12-2007, 09:13 PM