FAQFAQ   SearchSearch   UsergroupsUsergroups   RegisterRegister   ProfileProfile    Log inLog in   RSS Feed

[MSN] --> (possible solution to be able to chat using phone)
Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next
 
Post new topic   Reply to topic    Salling Software Forums Forum Index -> Scripting Salling Clicker for Windows
View previous topic :: View next topic  

Is it workable?
Yes!
20%
 20%  [ 1 ]
No!
40%
 40%  [ 2 ]
Will give it a try!
40%
 40%  [ 2 ]
Total Votes : 5

Author Message
alejoar
Senior Member


Joined: 19 Jun 2007
Posts: 62

PostPosted: Wed Jul 25, 2007 8:22 am    Post subject: Reply with quote

Ok, I made the status changer. Heres all attached (msn plus script + salling script)

phatez, please check it!

status.txt stores the current status (its a number). These are the meanings:

[code:1]2 - Appear Offline
3 - Online
4 - Busy
5 - Be Right Back
6 - Idle
7 - Away
8 - In a Call
9 - Out to Lunch
[/code:1]

Know bugs:
- You cant change status to Appear Offline, dont know why.
- It doesn't matter what status you select for signing in, it will change to the status.txt one, this must be fixed (please take a look at this phatez).
-There are sometimes problems when you want to change status from msn.

Please check for any other bugs and code optimization if needed, then I think we are ready for a new official (?) release.



MSN.rar
 Description:

Download
 Filename:  MSN.rar
 Filesize:  6.91 KB
 Downloaded:  903 Time(s)

Back to top
View user's profile Send private message
phatez
Junior Member


Joined: 07 Jun 2007
Posts: 49

PostPosted: Wed Jul 25, 2007 9:45 am    Post subject: Reply with quote

alejoar

First issue:
[quote]Well, I think I solved this issue I mention before.
Replace selectContact() function in MSN.js with this one: [/quote]

It seems that it is i never empty the email array each time i check for contacts, it's not the way of the email array is stored that is affecting.

Second issue:
[code:1]function sendNew(email, msg) {
var ChatWnd = Messenger.OpenChat(email);
ChatWnd.SendMessage(msg);
//ChatWnd.SendMessage("/close");
fsObj.OpenTextFile(MsgPlus.ScriptFilesPath + '\\' + "send.txt", 2, 1);
}[/code:1]

I think you cannot use ChatWnd cuz it's a global object. Instead i change it to other name already, and it works for me now.

Third issue:
Thanks for your contributing of all the codes, i am now putting everything together. Another release will be out very fast!!!
Back to top
View user's profile Send private message
phatez
Junior Member


Joined: 07 Jun 2007
Posts: 49

PostPosted: Wed Jul 25, 2007 11:23 am    Post subject: Reply with quote

Msn Messenger v0.6 Out!

Changelog:
*Some bug fix
*It will now popup "No new message" when you try to view new message when there is no new ones
*Able to view and send msg to online contacts
*Able to change your messenger status
*Current chats shows chats windows which are currently open, so if the user exit the script and come back, the list will still be there.
*"(M)" is added to the front of the contact nick for current chat which has more than one participant
*Toggle popup message show a dialog to tell you it's toggled.
*Added another feature to show the last message the sender sent.
*Added menu options for phones which do not have keypad

Help check for bugs!!! Lol.

Future version:
Think it's about done already. Maybe add a select contact from contact list by their nick instead of email option. If everything works alright and there is no bug, think we can release Msn Messenger v1.0, the official stable version.



Msn messenger v0.6 25 of July.rar
 Description:
3rd release

Download
 Filename:  Msn messenger v0.6 25 of July.rar
 Filesize:  12.66 KB
 Downloaded:  952 Time(s)



Last edited by phatez on Thu Jul 26, 2007 7:56 pm; edited 8 times in total
Back to top
View user's profile Send private message
Runarius
Senior Member


Joined: 19 Nov 2006
Posts: 124

PostPosted: Wed Jul 25, 2007 1:59 pm    Post subject: Reply with quote

hmm... seems that you got most things in order. Think I am bugging out of development on this one. Great job, btw.
Back to top
View user's profile Send private message
phatez
Junior Member


Joined: 07 Jun 2007
Posts: 49

PostPosted: Wed Jul 25, 2007 2:12 pm    Post subject: Reply with quote

Runarius thanks for your help in starting the ball rolling. And contributing of ideas. I couldn't have done so much myself.

alejoar u did a gd job too, despite that you do not know programming. I can see that it's really alot of effort.

This is our script! Hope salling will put it in 3rd party plugins. Lol.
Back to top
View user's profile Send private message
alejoar
Senior Member


Joined: 19 Jun 2007
Posts: 62

PostPosted: Wed Jul 25, 2007 8:31 pm    Post subject: Reply with quote

Great work guys, but I have a poblem..

Any ideas why the sendmsg() function (msn-plus script) is not working with me? :S

send.txt is correctly updated by salling clicker, but I cant send messages, not to current chats and neither to other online contacts. Please help!
Back to top
View user's profile Send private message
phatez
Junior Member


Joined: 07 Jun 2007
Posts: 49

PostPosted: Wed Jul 25, 2007 9:13 pm    Post subject: Reply with quote

I think i forgot to change just now. Should be the text file different format. Because of the swtich to using unicode. Try the second release. I have attached it to at my previous reply.

Anyway, i wish we have salling clicker on psp too!! Haha.
Back to top
View user's profile Send private message
alejoar
Senior Member


Joined: 19 Jun 2007
Posts: 62

PostPosted: Wed Jul 25, 2007 11:17 pm    Post subject: Reply with quote

lol, I wish I had a psp :P

I found a bug: When you are signed out the script continues running, so it will continue checking status and trying to change it. But while signed out you cant change status. When this happens the script halts and the debugger throws an error.

I think this little modification to checkStatus() solves the problem:

[code:1]function checkStatus() {
var settingsFileStream = fso.OpenTextFile( MsgPlus.ScriptFilesPath + '\\' + "status.txt",1,false,-2);
var line = settingsFileStream.ReadLine();
if(Messenger.MyStatus != 0) Messenger.MyStatus = line;
}[/code:1]

(Messenger.MyStatus is 0 when you are loged out or when the current status couldn't be retrived because of some error)

btw, you should delete the rar that contains the files that doenst send the messages!
Back to top
View user's profile Send private message
phatez
Junior Member


Joined: 07 Jun 2007
Posts: 49

PostPosted: Thu Jul 26, 2007 10:06 am    Post subject: Reply with quote

Thanks for solving of the bug. I have added into the script and make it a third release.

This bug is fix too.
[quote]- It doesn't matter what status you select for signing in, it will change to the status.txt one, this must be fixed (please take a look at this phatez). [/quote]

Anymore ideas to improve it?
Back to top
View user's profile Send private message
Runarius
Senior Member


Joined: 19 Nov 2006
Posts: 124

PostPosted: Thu Jul 26, 2007 8:48 pm    Post subject: Reply with quote

well... it doesn't output the online contacts... I actually just see your contacts... and it's just their e-mail... really want their names. I also get an error on line 15 and line 17 in the msn plus script. don't have time to figure out what is causing it.
Back to top
View user's profile Send private message
alejoar
Senior Member


Joined: 19 Jun 2007
Posts: 62

PostPosted: Thu Jul 26, 2007 9:59 pm    Post subject: Reply with quote

Yes, I made a couple of modifications so that the anoying "checked symbol" is not displayed in the contact list and in the menu.

I left it in the change status screen though.

The updated MSN.js is attached.


phatez: I know it doesn't works the menu thing in your phone, but I want to make the menu default for mine since I cant see all the options otherwise.

I already made a version for myself that displays the menu as default, but I cant make it update automatically when a new mesage is recived. Can you help me with this?

Also, while in the menu, and a new message is there, you click view new message and the phone displays "No new message..", when you press OK it then will display the message. I dont know why this happens.



MSN.js
 Description:
No checked item in menu and contact list

Download
 Filename:  MSN.js
 Filesize:  12.95 KB
 Downloaded:  841 Time(s)

Back to top
View user's profile Send private message
alejoar
Senior Member


Joined: 19 Jun 2007
Posts: 62

PostPosted: Thu Jul 26, 2007 10:09 pm    Post subject: Reply with quote

[quote="Runarius"]well... it doesn't output the online contacts... I actually just see your contacts... and it's just their e-mail... really want their names. I also get an error on line 15 and line 17 in the msn plus script. don't have time to figure out what is causing it.[/quote]

Mmm thats weird, it works fine for me.

Try deleting the online_contacts.txt file and let the script create its own.. (re-launch the script).
Back to top
View user's profile Send private message
alejoar
Senior Member


Joined: 19 Jun 2007
Posts: 62

PostPosted: Thu Jul 26, 2007 10:33 pm    Post subject: Reply with quote

Some ideas for future versions:

- Change nick, personal message, display picture?

- Add more funtions to the contact list:
.Block/UnBlock a contact
.When pressing on a contact, display more information (nick, status, display picture, personal message, if blocked, etc)
.Add/Delete contact

- For changing status, nick, setting if we want new messages to pop up or not, etc etc.. we could make an options menu apart of the main screen, so that it is not all together in the same screen..

- For specific options for the salling script, such as display new messages automatically or what kind of menu we want as default (normal option list or pressing keys menu?) it could be made an options.ini (or smth) file so that preferences are read from there and we dont have to set them everytime we open the script.


Those are some of my ideas at the moment, some may be useles but others are interesting.. Theres a lot to do :P
Back to top
View user's profile Send private message
phatez
Junior Member


Joined: 07 Jun 2007
Posts: 49

PostPosted: Thu Jul 26, 2007 11:17 pm    Post subject: Reply with quote

[quote]I already made a version for myself that displays the menu as default, but I cant make it update automatically when a new mesage is recived. Can you help me with this?

[/quote]

This request cant be done. Because in the keypad screen, there is a function which run repeatly, while in option list, there is no such function. Anyway keypad is easier for you also. Once you get used to the keys, navigating is really very fast.

For the bug which keep displaying no new message, it think just do this and it will be solve. Small mistake. Lol.

Change this:
[code:1]
function noMsg() {
if (newMsg == 0) {
var popup = CreatePopupDialog( "popup_");
popup.textualContent = "No new message...";
theTerminal.Push(popup);
}
}[/code:1]

To this:
[code:1]function noMsg() {
if (notify == 0) {
var popup = CreatePopupDialog( "popup_");
popup.textualContent = "No new message...";
theTerminal.Push(popup);
}
}[/code:1]

Anyway about ur checked symbol, actually i wanna use listScreen too, but it seems that my phone got bug with it. I cant add a optionList widget on top of it. That means my current chats, contact list, and change status will not work.
Back to top
View user's profile Send private message
alejoar
Senior Member


Joined: 19 Jun 2007
Posts: 62

PostPosted: Fri Jul 27, 2007 4:20 am    Post subject: Reply with quote

mm.. thats too bad :S I suppouse we will have to wait up to the next version of salling clicker.

Thanks for the bug fix (Y)


PS: is there any chm with all the salling clicker documentation?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Salling Software Forums Forum Index -> Scripting Salling Clicker for Windows All times are GMT + 2 Hours
Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next
Page 5 of 7

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group