I'm having trouble getting mortscript to open new sms, and the paste the clipboard information into it (the message that is written).
I found this .lnk command that works for opening the new sms outside mortscript, but I have to be able to paste from the clipboard as well.
20#"\Windows\tmail.exe" -service "SMS" -to "" -body""
Ok, I've gotten this far, but I can't get the clipboard into the textfield in new sms.
Run("\newsms.lnk")
callTmail = True
current = ActiveProcess()
If ( current eq "tmail.exe" )
callTmail = False
EndIf
If ( callTmail )
Run( "\Windows\tmail.exe" )
Sleep( 1000 )
EndIf
activeWin = ActiveWindow()
MouseClick( activeWin, 60, 60 )
Fixed!
Run("\newsms.lnk")
callTmail = True
current = ActiveProcess()
If ( current eq "tmail.exe" )
callTmail = False
EndIf
If ( callTmail )
Run( "\Windows\tmail.exe" )
Sleep( 1000 )
EndIf
activeWin = ActiveWindow()
MouseClick( activeWin, 60, 60 )
SendCtrlKey( activeWin, "v" )
Related
Hi.
Sending message can be timeconsuming sometimes, ie. when you try to compose new SMS message if your last message was MMS, than selected account is MMS and hiting NEW/MESSAGE will bring up MMS composer.
But there is a simple way, by using tmail command line parameteres.
Examples:
simply going directly to SMS inbox is done by:
Code:
tmail.exe -transport "SMS"
opening new SMS composer window without recipient:
Code:
tmail.exe -transport "SMS" -to ""
creating new MMS with given recipient(s), subject, body and attachment:
Code:
tmail.exe -transport "MMS" -to "48689898665" -cc "48506325889" -bcc "[email protected]" -subject "simple subject" -body "simple MMS body" -attach "/My Documents/nice_chick.jpg"
etc.
The most convenient way of using above exaples are by creating shortcuts of course, but you must remember, that attributes must be placed inside quotation marks. They can't be (i think so escaped, so when creating shortcut remember to remove global line quotation.
Example:
This will NOT work:
Code:
#"\Windows\tmail.exe -transport "SMS" -to """
Code:
This will work:
#\Windows\tmail.exe -transport "SMS" -to ""
Happy hacking
is there a way to create a shortcut to a new e-mail message ?
thanks in advance.
Just use "POP3" as the transport..
this still doesn't work for me :-(
i'm using tmail.exe -transport "POP3" -to " "
which still opens a new blank text message
thanks for your help - much appreciated !
I can't get an .ink with the command for new-sms to work with my Hermes WM6.1..anyone know if there's a different command for the wm6.1 tmail.exe?
Jarek said:
Hi.
Sending message can be timeconsuming sometimes, ie. when you try to compose new SMS message if your last message was MMS, than selected account is MMS and hiting NEW/MESSAGE will bring up MMS composer.
But there is a simple way, by using tmail command line parameteres.
Examples:
simply going directly to SMS inbox is done by:
Code:
tmail.exe -transport "SMS"
opening new SMS composer window without recipient:
Code:
tmail.exe -transport "SMS" -to ""
creating new MMS with given recipient(s), subject, body and attachment:
Code:
tmail.exe -transport "MMS" -to "48689898665" -cc "48506325889" -bcc "[email protected]" -subject "simple subject" -body "simple MMS body" -attach "/My Documents/nice_chick.jpg"
etc.
The most convenient way of using above exaples are by creating shortcuts of course, but you must remember, that attributes must be placed inside quotation marks. They can't be (i think so escaped, so when creating shortcut remember to remove global line quotation.
Example:
This will NOT work:
Code:
#"\Windows\tmail.exe -transport "SMS" -to """
Code:
This will work:
#\Windows\tmail.exe -transport "SMS" -to ""
Happy hacking
Click to expand...
Click to collapse
Hasn't this been discussed on the Forum multiple times over and in multiple places. Well heck I know it has b/c your copy/pasting the examples out of those other threads to show your examples. In the process of being helpful, thank you; you are muddying up the forum.
CG.. you're wasting your breath.
this thread is from 19-07-2005 by the way..
I searched with google to try to find the answer to my problem, as I'm not a programmer and just one of the pplz who look for info on how to set up their device..
I can't seem to find a fix for my annoyance.... I send about 300 text messages a day from my Wizard, and I keep getting the message delivered notification that I have to dismiss after every message.
Does anyone have the registry hack to disable this for the latest ROM? I want to only be notified when a message was NOT sent...not when it was.
I appreciate the help!
The existing tweaks don't work?
Default SMS Delivery Notifications to on
To always have SMS Delivery Notifications enabled:
Code:
HKCU\Software\Microsoft\Inbox\Settings\SMSDeliveryNotify = 1 (DWORD decimal)
To disable them (can still enable per-SMS in SMS settings):
Code:
HKCU\Software\Microsoft\Inbox\Settings\SMSDeliveryNotify = 0 (DWORD decimal)
Note that SMS Delivery Notifications are a network provider option, and the recipient may refuse them to be sent out
Disable the SMS Sent notification
If you're tired of the "Message Sent" notification after sending an SMS/text message, you can disable them:
Code:
HKLM\Software\Microsoft\Inbox\Settings\SMSNoSentMsg = 1 (DWORD decimal)
And to re-enable:
Code:
HKLM\Software\Microsoft\Inbox\Settings\SMSNoSentMsg = 0 (DWORD decimal)
Please note that the 'Settings' key may not exist in your device, and thus may have to be created first.
Click to expand...
Click to collapse
Thank you, creating the key did the trick!
Hello all,
I need to code a simple application for send SMS from PC using PDA connected with ActiveSync.
- I don't need gui. DOS is enough
- I can code using Visual Studio 2005/2008 (.net features)
- Executable will be called by another application so I need to pass it Recipiend Number and text, like => sms.exe 1234567890 "SMS TEXT"
Could someone help me? I'm totally stuck since I've no idea how interface application with ActiveSync and then how to send SMS!!!!
seen this?
http://forum.xda-developers.com/showthread.php?t=324684
Lord Spectre said:
Hello all,
I need to code a simple application for send SMS from PC using PDA connected with ActiveSync.
- I don't need gui. DOS is enough
- I can code using Visual Studio 2005/2008 (.net features)
- Executable will be called by another application so I need to pass it Recipiend Number and text, like => sms.exe 1234567890 "SMS TEXT"
Could someone help me? I'm totally stuck since I've no idea how interface application with ActiveSync and then how to send SMS!!!!
Click to expand...
Click to collapse
Hi! I am using Mymobiler. http://www.mymobiler.com/
Its freeware and it remote control yr phone thru yr pc..
If you want to program it yourself, check out RAPI on MSDN.
Also, to send an SMS, you can either use MAPI, or just launch tmail with parameters. See here for details on the latter.
CheongKing said:
Hi! I am using Mymobiler. http://www.mymobiler.com/
Its freeware and it remote control yr phone thru yr pc..
Click to expand...
Click to collapse
I do that too. It's a great free app
Thanks all,
but let me explain better my goal.
I don't need a GUI application and I don't need PDA application, since I need to start it from PC then send SMS trough PDA connected to activesync, like:
PC => ACTIVESYNC => PDA
On PC I'll execute this dos application based, passing parameter like recipient number and message text like:
sms.exe 123456789 "TEXT"
That's it!
l3v5y thanks for your hint, but I'm still search for code example, since I'm new on this programming technique.
Lord Spectre said:
Thanks all,
but let me explain better my goal.
I don't need a GUI application and I don't need PDA application, since I need to start it from PC then send SMS trough PDA connected to activesync, like:
PC => ACTIVESYNC => PDA
On PC I'll execute this dos application based, passing parameter like recipient number and message text like:
sms.exe 123456789 "TEXT"
That's it!
l3v5y thanks for your hint, but I'm still search for code example, since I'm new on this programming technique.
Click to expand...
Click to collapse
Once I've fixed my XP installation, I'll get to it...
There's an exe somewhere called prun.exe, that would allow you to run tmail.exe via command line parameters on your desktop... So you could have a batch file with:
Code:
prun.exe \Windows\tmail.exe -transport "SMS" -to %1 -body %2
and launch it with whatever parameters you wanted.
Thanks l3v5y, prun was a great application, but unfortunately it doesn't work.
Let me explain my test, first of all there's no necessary to specify \Windows directory, just using:
prun.exe tmail.exe
and then message screen popup on my phone.
Also I tried to run other program from desktop like "Slide To Unlock" and TomTom Navigator. GREAT! They work both!
Next step was try to going directly to SMS inbox:
tmail.exe -transport "SMS"
Sh*t! It doesn't work! And for sure other parameters doesn't work too...
Like: prun.exe tmail.exe -transport "SMS" -to "1234567890" -body "TEST SMS"
I tried with HTC Trinity and HTC Diamond....
UPDATE:
I tried multiple line commands, like:
prun.exe tmail.exe <= works (show me message window)
tmail.exe -transport "SMS" <= works (show me SMS service. I used also -service with same result)
Then stop here, following command doesn't work:
prun.exe tmail.exe -transport "SMS" -to "1234567890" -body "TEST SMS"
prun.exe tmail.exe -transport "SMS" -to ""
prun.exe tmail.exe -to ""
and other combinations........
Do you have tips form me???
No one?
Lord Spectre said:
Thanks l3v5y, prun was a great application, but unfortunately it doesn't work.
Let me explain my test, first of all there's no necessary to specify \Windows directory, just using:
prun.exe tmail.exe
and then message screen popup on my phone.
Also I tried to run other program from desktop like "Slide To Unlock" and TomTom Navigator. GREAT! They work both!
Next step was try to going directly to SMS inbox:
tmail.exe -transport "SMS"
Sh*t! It doesn't work! And for sure other parameters doesn't work too...
Like: prun.exe tmail.exe -transport "SMS" -to "1234567890" -body "TEST SMS"
I tried with HTC Trinity and HTC Diamond....
UPDATE:
I tried multiple line commands, like:
prun.exe tmail.exe <= works (show me message window)
tmail.exe -transport "SMS" <= works (show me SMS service. I used also -service with same result)
Then stop here, following command doesn't work:
prun.exe tmail.exe -transport "SMS" -to "1234567890" -body "TEST SMS"
prun.exe tmail.exe -transport "SMS" -to ""
prun.exe tmail.exe -to ""
and other combinations........
Do you have tips form me???
Click to expand...
Click to collapse
try parameter -service "SMS" instead of -transport. It only opens new message with recipient and message body, but you have to tap send button to actually send it.
Edit. you can use sendsms.exe (have to be copied on the device) from smsSender to direct sending. it uses following parameters: sendsms.exe "recipient phone number" "message" [deliveryReport]
eg. sendsms.exe "12345678" "Test message!" true
Thanks a million avellant,
finally I can manage (automatically) SMS from my application (running on my desktop)...
But let me explain just one more issue, when I use:
prun.exe \sendsms.exe 1234567890 "TEST SMS" false
I receive SMS, but only with following text: "TEST"
Seem it truncate the rest!
Do you have solution?
And for sure... THANKS for CODE.... You know....
I'm guessing that prune.exe accepts only two parameters with the first one being the application you want to run, and the second one being optional parameters to run with that application.
Untested, but try this:
prun.exe "\Windows\tmail.exe" "-transport ""SMS"" -to ""1234567890"" -body ""TEST SMS"""
prun.exe "\sendsms.exe" "1234567890 ""Test SMS"" false"
Or perhaps try nesting each argument in quotes.
prun.exe "\Windows\tmail.exe" """-transport """"SMS"""""" ""-to """"1234567890"""""" ""-body """"TEST SMS"""""""
prun.exe "\sendsms.exe" """1234567890"" """"Test SMS"""" ""false"""
In a command terminal (and in good ol' DOS), the escape character was a carat.
prun.exe "\Windows\tmail.exe" "-transport ^"SMS^" -to ^"1234567890^" -body ^"TEST SMS^""
prun.exe "\sendsms.exe" "1234567890 ^"Test SMS^" false"
On that note, maybe prun.exe will behave properly without quotes around the entire set of parameters.
prun.exe "\Windows\tmail.exe" -transport ^"SMS^" -to ^"1234567890^" -body ^"TEST SMS^"
prun.exe "\sendsms.exe" 1234567890 ^"Test SMS^" false
Give those a whirl. Hopefully one of them works.
I just tested those. Looks like my initial idea was the correct one.
This worked for me just fine:
Code:
prun.exe "\sendsms.exe" "1234567890 ""Test SMS"" false"
You are absolutely right, prune.exe accepts only two parameters, now it works!!!
This forum rocks and users' skill are awesome!!!
Very very thanks to all !!! You save me!
BTW, if I can ask...
Using tmail.exe I can always send SMS, but I need to press "Send" button on PDA.
Is it possible to Send SMS with tmail.exe and without press any button on PDA?
I want to change the layout of the contact list on the TD2 to display names in First Name, Last Name format. I can do this in the other WM device I had before but I couldn't find this function on the TD2. Anyone can help?
j824 said:
I want to change the layout of the contact list on the TD2 to display names in First Name, Last Name format. I can do this in the other WM device I had before but I couldn't find this function on the TD2. Anyone can help?
Click to expand...
Click to collapse
You do it on each individual contact. Edit the contact and find the "File As" as set it accordingly.
Nope - There IS an app at XDA that does exactly what you want.
search for it and you will see the magic
Contact Changer 1.3
j824 said:
I want to change the layout of the contact list on the TD2 to display names in First Name, Last Name format. I can do this in the other WM device I had before but I couldn't find this function on the TD2. Anyone can help?
Click to expand...
Click to collapse
I believe this might help...
http://www.shubaroo.com/index.php?module=contact
sync with outlook and there, when you edit, you can select how to display name. Once you dothat in outlook, it automatically does it when you disconnect from PC and add contact. At least that's how I do it ...
Hi all,
I tried three programs:
Fileasfl
Contact Changer 1.3
TrineFix v1.1
But neither of them changes the default behaviour of saving as last, first.
All of my contact are correctly setup (first last), I'm only interested in changing the default behaviour when adding new contact in wm6.1.
Thanks to all.
j824 said:
I want to change the layout of the contact list on the TD2 to display names in First Name, Last Name format. I can do this in the other WM device I had before but I couldn't find this function on the TD2. Anyone can help?
Click to expand...
Click to collapse
The easy est way to do that is via PC sync but you must know how to use macros.
1.ms outlook -> tolls / options / contact options -> set default "file as" order as you like...
2. Run this macro for applying that setting to all contacts in MS outlook.
Public Sub ChangeFileAs()
Dim objOL As Outlook.Application
Dim objNS As Outlook.NameSpace
Dim objContact As Outlook.ContactItem
Dim objItems As Outlook.items
Dim objContactsFolder As Outlook.MAPIFolder
Dim obj As Object
Dim strFirstName As String
Dim strLastName As String
Dim strFileAs As String
On Error Resume Next
Set objOL = CreateObject("Outlook.Application")
Set objNS = objOL.GetNamespace("MAPI")
Set objContactsFolder = objNS.GetDefaultFolder(olFolderContacts)
Set objItems = objContactsFolder.items
For Each obj In objItems
'Test for contact and not distribution list
If obj.Class = olContact Then
Set objContact = obj
With objContact
' Uncomment the strFileAs line for the desired format
'Lastname, Firstname (Company) format
' strFileAs = .FullNameAndCompany
'Firstname Lastname format
' strFileAs = .FullName
'Lastname, Firstname format
strFileAs = .LastNameAndFirstName
'Company name only
' strFileAs = .CompanyName
'Companyname (Lastname, Firstname)
' strFileAs = .CompanyAndFullName
.FileAs = strFileAs
.Save
End With
End If
Err.Clear
Next
Set objOL = Nothing
Set objNS = Nothing
Set obj = Nothing
Set objContact = Nothing
Set objItems = Nothing
Set objContactsFolder = Nothing
End Sub
3. Sync again with your mobile....
KraFT
KraFT_mk said:
The easy est way to do that is via PC sync but you must know how to use macros.
1.ms outlook -> tolls / options / contact options -> set default "file as" order as you like...
2. Run this macro for applying that setting to all contacts in MS outlook.
Public Sub ChangeFileAs()
Dim objOL As Outlook.Application
Dim objNS As Outlook.NameSpace
Dim objContact As Outlook.ContactItem
Dim objItems As Outlook.items
Dim objContactsFolder As Outlook.MAPIFolder
Dim obj As Object
Dim strFirstName As String
Dim strLastName As String
Dim strFileAs As String
On Error Resume Next
Set objOL = CreateObject("Outlook.Application")
Set objNS = objOL.GetNamespace("MAPI")
Set objContactsFolder = objNS.GetDefaultFolder(olFolderContacts)
Set objItems = objContactsFolder.items
For Each obj In objItems
'Test for contact and not distribution list
If obj.Class = olContact Then
Set objContact = obj
With objContact
' Uncomment the strFileAs line for the desired format
'Lastname, Firstname (Company) format
' strFileAs = .FullNameAndCompany
'Firstname Lastname format
' strFileAs = .FullName
'Lastname, Firstname format
strFileAs = .LastNameAndFirstName
'Company name only
' strFileAs = .CompanyName
'Companyname (Lastname, Firstname)
' strFileAs = .CompanyAndFullName
.FileAs = strFileAs
.Save
End With
End If
Err.Clear
Next
Set objOL = Nothing
Set objNS = Nothing
Set obj = Nothing
Set objContact = Nothing
Set objItems = Nothing
Set objContactsFolder = Nothing
End Sub
3. Sync again with your mobile....
KraFT
Click to expand...
Click to collapse
i tried this, but all my contacts on td2 got screwd after i sync with my outlook. what shows is just photos and the names are gone..
I did that to a min 6 wm6 mob + on my diamond 1 and diamond2 and never had any problems.
K
Any reg hack to change the default behaviour of saving as last, first --> first last? Thanks.
grabejud said:
i tried this, but all my contacts on td2 got screwd after i sync with my outlook. what shows is just photos and the names are gone..
Click to expand...
Click to collapse
that is probably because you did not uncomment one of the formats, just remove the ' before
' strFileAs = .FullName
the code was an sample for all formats, just uncomment the format you would like. When you did not uncomment any, th name indeed would disappear.
I would also like to have the contacts sorted as First, Last.
I've seen solutions where the files get renamed etc., but the solution should be more simple than that.
Isn't there a reg key that deals with sorting order in Contacts?
anyone found a fix for this yet? Its a bit annoying having it lastname, firstname I have trouble remembering their firstnames sometimes ;-)
It's really easy...
You don't need scripts etc.
1) Select the contact
2) Click edit contact
3) Scroll down
4) Click more
-- You should now see the windows mobile contact editor
5) Under "File as" Open the drop down list and change the selection
Hi,
I'm using the Resco Explorer new v8 Today plug-in. It allows the user to select any .lnk file under \Windows\Start Menu\Programs\ as icons on the today screen.
I've created a .lnk file containing:
0#:MSINBOX -service "SMS"
.. which nicely jumps right in to the MS SMS app.
I want to create another .lnk file which will jump right in to the MS (pocket Outlook) Inbox, but I always end up at the Picker list.
What's the correct :MSINBOX -service "... string to get tmail.exe to jump right in to the pocket Outlook e-mail Inbox?
Thanks!
Jay
try:
\windows\tmail.exe -service "ActiveSync" -to ""
if you have named your email with another name, then replace ActiveSync accordingly.
Thanks so much Jolas!
I had guessed at Inbox, Outlook, tmail, and a variety of other "service" names. I simply never figured that it would be "ActiveSync"!
The actual link that I ended up using was simply
-service "ActiveSync"
(I didn't need to -to clause, as that launches the program in composer mode rather than in the Inbox).
Cheers,
Jay
What about
Take a look into my thread;
http://forum.xda-developers.com/showthread.php?t=623195
Within it is the basics of making your own shortcuts and it is the basis of adding your own icon or *.icl icon library..
Now and then I'm still updating (editing) it. I'm looking into two *.icl files, where I need to find out if I can share 'm here (that is within the above link).
Here an extract;
Available parameters for tmail.exe (depending on the service used) are;
"tmail.exe" -new ""
"tmail.exe" -service "" (e.g. "MMS" or "ActiveSync" or "SMS")
"tmail.exe" -to ""
"tmail.exe" -subject ""
"tmail.exe" -Body ""
"tmail.exe" -attach ""
"tmail.exe" -open "inbox"
"tmail.exe" -sync or combinations of all such as-
ex.
"Windows\tmail.exe" -service "Yahoo!" -to ""
"Windows\tmail.exe" -service "GMail" -to ""
Direct SMS (I called it SMS2.lnk);
51#"\Windows\tmail.exe" -service "SMS" -to "" -body ""
Direct link to Games directory;
60#"\Windows\fexplore.exe" Windows\Start Menu\Programs\Games
Know there's a lot more to know from this link
IMO this is a nice start libove
Senax