Home Forums Gallery FAQs Downloads
 
 

Go Back   Meizu Me > Meizu M8 > Modding & Development

Register Today!  

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 ...


Reply
 
Thread Tools Display Modes
Old 06-09-2009   #1
Member
 
Join Date: Apr 2009
Location: Germany
Posts: 104
Thanks: 14
Thanked 13 Times in 10 Posts
My Meizu
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?
Albert2002 nincs online  
Reply With Quote
Old 06-09-2009   #2
Senior Member
 
Join Date: May 2007
Posts: 288
Thanks: 2
Thanked 11 Times in 10 Posts
My Meizu
I want to know it too bat files don't work
felixduever nincs online   Reply With Quote
Old 06-09-2009   #3
Member
 
aaronbsc's Avatar
 
Join Date: Sep 2008
Posts: 100
Thanks: 20
Thanked 4 Times in 4 Posts
My Meizu
I found this but im not sure if its helpful or not cause i dont know nothing about running bat files on WinCE.
aaronbsc nincs online   Reply With Quote
Old 06-10-2009   #4
Freshman
 
alexeei's Avatar
 
Join Date: Mar 2009
Location: RUSSiA
Posts: 40
Thanks: 0
Thanked 12 Times in 4 Posts
My Meizu
May be you can use Mort Script
alexeei nincs online   Reply With Quote
Old 06-10-2009   #5
Member
 
Join Date: Apr 2009
Location: Germany
Posts: 104
Thanks: 14
Thanked 13 Times in 10 Posts
My Meizu
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.
Albert2002 nincs online   Reply With Quote
Old 06-11-2009   #6
Passing By
 
Join Date: May 2009
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
My Meizu
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");
jiles nincs online   Reply With Quote
Old 06-11-2009   #7
Member
 
Join Date: Apr 2009
Location: Germany
Posts: 104
Thanks: 14
Thanked 13 Times in 10 Posts
My Meizu
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!
Albert2002 nincs online   Reply With Quote
Old 06-15-2009   #8
Passing By
 
Join Date: May 2009
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
My Meizu
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))
jiles nincs online   Reply With Quote
Old 06-19-2009   #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.
nicojoy69 nincs online   Reply With Quote
Old 06-20-2009   #10
Member
 
Join Date: Apr 2009
Location: Germany
Posts: 104
Thanks: 14
Thanked 13 Times in 10 Posts
My Meizu
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");
Albert2002 nincs online   Reply With Quote
Old 06-30-2009   #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
nicojoy69 nincs online   Reply With Quote
Old 08-06-2009   #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!
knpb nincs online   Reply With Quote
Old 08-07-2009   #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.
knpb nincs online   Reply With Quote
2 members have thanked knpb:
Old 08-08-2009   #14
Junior Member
 
Join Date: Jun 2009
Posts: 59
Thanks: 0
Thanked 5 Times in 5 Posts
tks

Always useful ...tks for sharing !!!
nicojoy69 nincs online   Reply With Quote
Old 08-23-2009   #15
Passing By
 
Join Date: Aug 2009
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
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?
mavoso nincs online   Reply With Quote

   
 
Meizu Me is an independent resource for all things Meizu. All rights reserved. Powered by vBulletin. Copyright ©2000 - 2010, Jelsoft Enterprises Ltd. Meizu M8, miniPlayer and all related names are properties of MEIZU Electronic Technology, Inc. Copyright 2009 Meizu Me.
LinkBacks Enabled by vBSEO © 2010, Crawlability, Inc.