Sethnakht
Newbie
Offline
Posts: 36
|
 |
« on: November 10, 2007, 05:43:20 pm » |
|
This is a new plugin to change automatically the state of the account using many rules : - current state (since xx minutes) - current time (interval) - current day of week (Monday, Tuesday, ..., Monday to Friday, ..or specific day) - inactivity (since xx minutes) configuration :  download : StatusAutoChange 1.0.beta3Example of rule I personally use : State : Any Since : 0min Time between : 19:30 and 20:00 my lunch time !  Day : any Computer inactive since : 10min set state : Out to lunch so, if I leave my computer without set the lunch state, it will be set automatically :wink: Thanks for yours comments and suggestions  [EDIT] I've just one problem : I don't know how to connect with a specified state... :cry: [/EDIT]
|
|
|
|
|
Logged
|
|
|
|
|
kakaroto
|
 |
« Reply #1 on: November 10, 2007, 09:21:29 pm » |
|
Hi, that's a cool idea, good work! a few comments though : looking at the screenshot, I see 'and current time is between X and Y' but what if someone doesn't care what the current time is ? should he put between 0 and 24 ? it's not intuitive, maybe have a checkbox for the different 'and's so you can select only the 'and ... ' you want in your rule. about the connect with a specified state, look at login_screen.tcl.. the connect as combobox uses the command remember_state_list, which is in gui.tcl. Here it is : proc remember_state_list {w value} { set idx [get_state_list_idx $value] if {$idx >= 8} { ::config::setKey connectas $value } else { ::config::setKey connectas [::MSN::numberToState $idx] } }
In short, the connectas config key will either be the name of a custom state (with "** X **" ), or a number representing the status (0 = online, 1 = away, etc...) Look at the functions below remember_state_list in gui.tcl, they are used to convert the 'connectas' key into a custom state index or a real status. You should also look at how the custom states are handled to fill the combobox.
|
|
|
|
|
Logged
|
KaKaRoTo
|
|
|
Sethnakht
Newbie
Offline
Posts: 36
|
 |
« Reply #2 on: November 11, 2007, 12:39:55 am » |
|
Thanks Kakaroto, I'll try with this.
For the custom states, I've some difficulty to detect a custom state. I use the function [::MSN::myStatusIs] which give the global state but not a custom one... any idea :?: (The 'to state' combobox already contain the custom states, but there is a problem to set it, but I think I can fix it :wink: )
For the config dialog, i can add check boxes indeed, at this time, if a criteria is leaved blank, I set the default value automatically (00:00 to 23:59, 0mins, etc...)
|
|
|
|
|
Logged
|
|
|
|
|
kakaroto
|
 |
« Reply #3 on: November 11, 2007, 03:58:37 am » |
|
use the global variable $::automessage to see if you're in a custom state.. I think you can find some good api help by looking at remote.tcl
|
|
|
|
|
Logged
|
KaKaRoTo
|
|
|
Sethnakht
Newbie
Offline
Posts: 36
|
 |
« Reply #4 on: November 11, 2007, 03:03:58 pm » |
|
Thanks Kakaroto, this works fine to get the custom state ! New beta : StatusAutoChange 1.0.beta2 - Fully handle custom states - Connect with a specific state works So, everything is functional, only remain the Configuration windows which can be improved :wink:
|
|
|
|
|
Logged
|
|
|
|
dasbooter
Newbie
Offline
Posts: 8
|
 |
« Reply #5 on: January 10, 2008, 02:33:14 am » |
|
Thanks Kakaroto, this works fine to get the custom state ! New beta : StatusAutoChange 1.0.beta2 - Fully handle custom states - Connect with a specific state works So, everything is functional, only remain the Configuration windows which can be improved :wink: After placing this in the plugin folder the plugin cannot be found using amsn 0.97 in Ubuntu
|
|
|
|
|
Logged
|
|
|
|
|
Daniel15
|
 |
« Reply #6 on: January 10, 2008, 02:35:57 pm » |
|
Nice plugin  After placing this in the plugin folder the plugin cannot be found using amsn 0.97 in Ubuntu You need to extract the files to ~/.amsn/plugins/ (/home/[username]/.amsn/plugins/). It should work then.
|
|
|
|
|
Logged
|
|
|
|
dasbooter
Newbie
Offline
Posts: 8
|
 |
« Reply #7 on: January 10, 2008, 09:27:03 pm » |
|
Nice plugin  After placing this in the plugin folder the plugin cannot be found using amsn 0.97 in Ubuntu You need to extract the files to ~/.amsn/plugins/ (/home/[username]/.amsn/plugins/). It should work then. hmm, that is where I am placing it what version of amsn are you using? In the screenshot it sort of looks like an old version (no antialiasing)
|
|
|
|
|
Logged
|
|
|
|
takeshi81
Power user
Offline
Posts: 113
|
 |
« Reply #8 on: January 10, 2008, 10:30:08 pm » |
|
In plugininfo.xml <description>Change automatically your status [...]nt rules (state, day, time, inactivity...))</description> It's missing the close tag </description> @dasbooter : it is windows with standard smoothing ... no cleartype activated and, as you can see from scrollbar slider, is amsn 0.97RC1+ with standard skin
|
|
|
|
|
Logged
|
|
|
|
dasbooter
Newbie
Offline
Posts: 8
|
 |
« Reply #9 on: January 11, 2008, 08:51:16 pm » |
|
In plugininfo.xml <description>Change automatically your status [...]nt rules (state, day, time, inactivity...))</description> It's missing the close tag </description> @dasbooter : it is windows with standard smoothing ... no cleartype activated and, as you can see from scrollbar slider, is amsn 0.97RC1+ with standard skin Thank you I looked at the code but couldn't see the problem thanks for pointing that out all is working now. Hopefully this will help me get everything set up the way I want it. I kind of wanted to be able to send a cool autoreply when I was away and it appears that the only way to do this was with a custom state. I have set up fortune http://linux.die.net/man/6/fortune to give little autoreply. Of course since I couldn't figure out a way to do this, I went out looking for another solution and found a script for Kopete (another linux messaging client). The script actually changes your personal message to give a short fortune or tell a joke or whatever. Now I am torn between what client to use. Amsn implements more of the features that live has, Oh well. Thanks for the help.
|
|
|
|
|
Logged
|
|
|
|
Sethnakht
Newbie
Offline
Posts: 36
|
 |
« Reply #10 on: January 16, 2008, 10:28:57 pm » |
|
Hello, sorry for the current version, indeed it wasn't working properly, i need to work on it (not only the config file but also the code). I'll post this when it's ready. :wink:
|
|
|
|
|
Logged
|
|
|
|
Sethnakht
Newbie
Offline
Posts: 36
|
 |
« Reply #11 on: January 18, 2008, 12:16:33 am » |
|
Here is a new version : beta3 : http://www.savefile.com/files/1324013Example of rule I personally use : State : Any Since : 0min Time between : 19:30 and 20:00 my lunch time !  Day : any Computer inactive since : 10min set state : Out to lunch so, if I leave my computer without set the lunch state, it will be set automatically :wink:
|
|
|
|
|
Logged
|
|
|
|
Sethnakht
Newbie
Offline
Posts: 36
|
 |
« Reply #12 on: January 19, 2008, 09:27:26 pm » |
|
Beta4: - Activation wasn't working properly (difference between autonnect ON/OFF) - add small wait time to ensure state change is finish (most important for first logon..) http://www.savefile.com/files/1327977
|
|
|
|
|
Logged
|
|
|
|
dasbooter
Newbie
Offline
Posts: 8
|
 |
« Reply #13 on: January 22, 2008, 08:39:37 pm » |
|
Beta4: - Activation wasn't working properly (difference between autonnect ON/OFF) - add small wait time to ensure state change is finish (most important for first logon..) http://www.savefile.com/files/1327977Will give err a try
|
|
|
|
|
Logged
|
|
|
|
Sethnakht
Newbie
Offline
Posts: 36
|
 |
« Reply #14 on: January 22, 2008, 11:03:49 pm » |
|
Will give err a try It doesn't works ? can you explain or give the error ? thanks
|
|
|
|
|
Logged
|
|
|
|
|