PDA

View Full Version : [Req] auto landscape mode


lordsinasina
26th September 2008, 09:08 AM
Can some one make an app that make the phone to launch some specific programs in landscape mode? for example sms/mms..

cpt.bert
26th September 2008, 10:25 AM
Need this to!!

Puckmeister
26th September 2008, 10:31 AM
use a simple mortscript:
Rotate (90)
RunWait ("\Windows\tmail.exe", "parameter")
Rotate (0)
with this, landscape is turned on, tmail.exe is started and after closing tmail.exe the view switches back to normal mode

best regards, pucki

lordsinasina
26th September 2008, 12:01 PM
how should i use this code? i know nothing about mort script

Motero73
26th September 2008, 12:07 PM
Install MortScript-4.11b7.zip (it is freeware), and edit in your PC with notepad a file *.mscr, with the content explained by pucki.
Then copy the file to your PPC, and execute it.

Regards

lordsinasina
26th September 2008, 12:21 PM
ok i got it..but when i run the code..it just go to landscape mode and tmail.exe does not run

Motero73
26th September 2008, 12:41 PM
Be sure the file has the content as follows, and in the bold text part, the exact path to the program:

Rotate (90)
RunWait ("\Windows\tmail.exe")
Rotate (0)

Just adding a space somewhere in the path, makes what you are seeing, the screen rotating and no program execution

haiopei
26th September 2008, 12:44 PM
type where "parameter" is "InboxSMS" for example is SMS Inbox.

Rotate (90)
RunWait ("\Windows\tmail.exe", "InboxSMS")
Rotate (0)


Another method is :

While (1)

If WndExists "SMS \ MMS" <-- (or whatever its name is)
Rotate (90)
EndIf

If not WndExists "SMS \ MMS"
Rotate (0)
EndIf

EndWhile

^^^^^or something else
Im not a profi on MortScript, its only an example i found.

lordsinasina
26th September 2008, 12:56 PM
Be sure the file has the content as follows, and in the bold text part, the exact path to the program:

Rotate (90)
RunWait ("\Windows\tmail.exe")
Rotate (0)

Just adding a space somewhere in the path, makes what you are seeing, the screen rotating and no program execution

this ones worked..but i can not run the one for example with inbox parametr..it goes to landscape and tmail does not run..any idea?

by the way you r the best with your quick answers:rolleyes:

Rudegar
26th September 2008, 01:14 PM
"parameter" == what you are to add yourself I'd say
it should never say parameter but represent the parameters you wish to
send along

Motero73
26th September 2008, 01:26 PM
Let's try this:

Rotate (90)
RunWait ("\Windows\Start Menu\Programs\tmail.exe")
Rotate (0)

If it works, problem solved, if not let's try a different thing. If you use ActiveSync, go to My Computer in your PC, and look into your Mobile Device. Go to \Windows\Start Menu\Programs, and find the program you want to use in the mortscript file. Click it once, and copy the path you will see above.

Now go to the Notepad, open the file, and finally paste the adress you have copied to the clipboard. This way is the best to be sure the path you are using is correct.

lordsinasina
26th September 2008, 06:20 PM
"parameter" == what you are to add yourself I'd say
it should never say parameter but represent the parameters you wish to
send along

i know that i used:

Rotate (90)
RunWait ("\Windows\tmail.exe", "InboxSMS")
Rotate (0

but i did'nt work

haiopei
26th September 2008, 08:12 PM
i know that i used:

Rotate (90)
RunWait ("\Windows\tmail.exe", "InboxSMS")
Rotate (0

but i did'nt work

and a :

Rotate (90)
Run ("\Windows\tmail.exe", "InboxSMS")
Rotate (0)

didnt work ?

lordsinasina
26th September 2008, 08:24 PM
and a :

Rotate (90)
Run ("\Windows\tmail.exe", "InboxSMS")
Rotate (0)

didnt work ?

nope , i just can get it to work with :

Rotate (90)
RunWait ("\Windows\tmail.exe")
Rotate (0)


it does not work with parameters

haiopei
26th September 2008, 08:28 PM
double post

haiopei
26th September 2008, 08:29 PM
Run ("\Windows\tmail.exe", "-service "InboxSMS"") ??
or
Run ('\Windows\tmail.exe', '-service "InboxSMS"')

I forgot my handy at work, so i cant test it myself
befor posting this ...sorry

kidnamedAlbert
26th September 2008, 08:39 PM
what about new sms? how would that go?
like once in landscape it goes to new sms but while you go back to portrait it exits, or better yet send it :)
hope thats not too much to ask. i know nothing about mortscript i just use everyone elses :)

haiopei
26th September 2008, 08:43 PM
Take a look, its a script to fill auto a SMS with bodytext :

Run("\Windows\tmail.exe", "-service ""SMS"" -to """" -body """ your text here """" )

Code comes from here (http://www.sto-helit.de/forum/viewtopic.php?f=12&t=4409)

also look here (http://www.sto-helit.de/forum/viewtopic.php?f=12&t=1718) or here (http://discussion.treocentral.com/forumdisplay.php?f=91)

kidnamedAlbert
26th September 2008, 09:11 PM
okay i got it to work. but only if i click on the mortscript file. if i slide out my keyboard, it doesnt run :(
can anyone fix this?
this is what i have on my mortscript file:
Rotate (90)
Run("\Windows\tmail.exe", "-service ""SMS"" -to """" -body """"" )
Rotate (0)

TheChampJT
27th September 2008, 01:27 AM
I think you've got too many quotations in that code. For params in other parts, like for my SMS shortcut in my programs folder, I have:

"\Windows\tmail.exe" -service "SMS"

But add:

"-to" "-body"

After the "SMS"

kidnamedAlbert
27th September 2008, 01:38 AM
I think you've got too many quotations in that code. For params in other parts, like for my SMS shortcut in my programs folder, I have:

"\Windows\tmail.exe" -service "SMS"

But add:

"-to" "-body"

After the "SMS"
are you sure? i tried that and it gave me errors.

TheChampJT
27th September 2008, 01:40 AM
are you sure? i tried that and it gave me errors.

Hmmm.....is "SMS" the actual name of the inbox? It could be "SMS/MMS"

kidnamedAlbert
27th September 2008, 01:48 AM
i used what i posted and it worked perfect. just didnt go when i slide out my keyboard. but then i realized its bad idea to use it because when replying to message and i slide keyboard, it wants to send a new message instead of replying.

TheChampJT
27th September 2008, 01:53 AM
i used what i posted and it worked perfect. just didnt go when i slide out my keyboard. but then i realized its bad idea to use it because when replying to message and i slide keyboard, it wants to send a new message instead of replying.

Oh, I thought you were trying to do it when you opened a new SMS.