Shoutbox

[Release] Timezone v1.01.024 - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: [Release] Timezone v1.01.024 (/showthread.php?tid=65614)

[Release] Timezone v1.01.024 by Shondoit on 08-30-2006 at 04:31 PM

TimeZone
Current version: v1.01.024

This script shows the local time of the contact in the chatwindow
If you live in the UK, and a friend lives in the States, you have about 8 hours time difference. And it's really difficult to remember if you have lots of contacts with all different timezones..
[Image: attachment.php?pid=721886]


Features:
- Customizable position and time format
- Multiline support OR color and format tags support
- Tabbed chats support
- Debug
- Auto Update


Commands:
If no parameters are specified the given property is reset, except for Left and Bottom, these properties have no standard value.

/tzSetGMT [optional: Email] <TimeDiff>
      Change the Time difference given to a specific contact *
/tzMask <Mask>
      changes the time format to the specific mask
      (h:mm a is the standard AM/PM)

/tzAlwaysShowTimer <true|false>
      If true, the timer is shown even when there is not time difference
/tzFixOffset <true|false>
      If true, it fixes the top position when the contact uses emoticons in his name and/or psm
/tzFixTabs <true|false>
      If true, it fixes the top or left position when using tabs

/tzDebug <true|false>
      Starts or stops the debug Traces
/tzDebugTimer <true|false>
      Starts or stops the debug Traces fired in OnEvent_Timer
      (Doesn't show in the commands list)
/tzShowDebug <true|false>
      Shows or Hides the debug window
      (Doesn't show in the commands list)
/tzTrace JScript code
      Evaluates the given code, and traces the result
      For checking properties, or changing them
      Playing with this can cause the script to be unstable.
      Only use when asked to by me, or for your own risk


/tzHeight <pixels>,
/tzWidth <pixels>,
/tzLeft <pixels>,
/tzRight <pixels>,
/tzTop <pixels>,
/tzBottom <pixels>,
      These commands change the size and position of the timer
      If you change the Right position, the Left position is discarded
      and the Timer locks at the given position to the right side of the conversation window

/tzReset
      This resets all settings, except for the Debug and AutoUpdate settings

*) When changing the timezone of the contact, please note the difference between the different possible formats: -0,5 / -00.50 / -00:30 all indicate half an hour difference (earlier). When using a sot or a comma, the numbers after it are considered decimals of the hours, when using the semicolon, it is considered as minutes

Limitations
At the moment you can change the Time difference for each contact, not the Timezone, this will be changed later on...
No support for daylight savingtime (can be changed manually)


Known bugs:
n/a

if you find a bug Always check if you are using the latest version. If you are using the latest version, please add the bug here or contact me on WLM (shondoit@hotmail.com)
Specify when it occured, what happened/didn't happen, and also include the Debug report


ToDo:
- Implement Timezone support (instead of Time difference)
- Implement Daylight Saving time
- Add GUI
- and more

Credits
Really big thanks to Jay_Jay, for testing my script and help me fix the 'no-send' bug (y)
And thanks to Cookie

Please give comments to what you would see added, or when something is wrong, please post (or mail) the Debug report

You can contact me at shondoit@hotmail.com


RE: [Anouncement] by Jimbo on 08-30-2006 at 04:32 PM

maybe a clickable map with the timezones on?


RE: [Anouncement] by Shondoit on 08-30-2006 at 04:34 PM

Will be some extra work, but I will (try to) Implement it in a later version


RE: [Anouncement] by Matti on 08-30-2006 at 04:34 PM

Yay! That's a timer in the chatwindow itself! :o
I don't really know what should be added else... maybe a nice configuration GUI to ensure the success of this script. But according to the script, that won't be a real problem. ;)

Thumb up! (y)


RE: [Anouncement] by Jimbo on 08-30-2006 at 04:35 PM

cool
When is it going to be released because i can't wait!!!


RE: [Anouncement] by Shondoit on 08-30-2006 at 04:37 PM

The first version will be released as soon as I sorted out the problems with WinAce

The GUI? for Timer placement, and Format options will be implemented in a next version...


RE: [Anouncement] Timezone by Salem on 08-30-2006 at 05:13 PM

quote:
Originally posted by Shondoit
I've been working on a new script the last couple of days...
I have some problems with WinAce, for packing it in a PLSC, so It will be released a couple of days later

Timezone
This script shows the local time of the contact
If you live in the UK, and a friend lives in the States, you have about 8 hours time difference...
[Image: attachment.php?pid=721884]

At the moment you can change the Time difference for each contact, not the timezone, this will be changed later on...
No support for daylight savingtime (can be changed manually)
The timer can be shown even when there is no time difference, so it works as a normal clock...

ToDo:
- Implement Timezone support (instead of Time difference)
- Implement Daylight Saving time
- Implement Moveable Timer
- Implement Custom time format
- and more

Please give comments to what you would see added


Hi

Looking good, i can't wait to get it.

~Salem(@)
RE: [Anouncement] Timezone by artfuldodga on 08-30-2006 at 05:58 PM

I've been waiting for a script like this :) Thanks!


RE: [Anouncement] Timezone by Salem on 08-30-2006 at 06:19 PM

quote:
Originally posted by Shondoit
ToDo:
- Implement Timezone support (instead of Time difference)...


Shondoit,

Attached is a text file which should help with implementing Timzone support. it contains a list of all the timezones.

Hope this is of help

~Salem(@)

Attached file provided by former forum member gjs1992/Mr. G who has a permant forum ban
RE: [Anouncement] Timezone by artfuldodga on 08-30-2006 at 06:44 PM

(GMT -03:00) Newfoundland | from the list

is (GMT -3:30) Newfoundland


RE: [Anouncement] Timezone by Pure_BY on 08-30-2006 at 07:10 PM

Great! Very very nice :) (Y)

Hope you won't get any big difficulties with implementing all the features, and success with the release ;) Really original idea! (Y)


RE: [Anouncement] Timezone by boston on 08-30-2006 at 07:14 PM

why do things dont work when you need it to @winace

looks good
suggestion: maybe an option to change from analog to digital (future builds though not first release;))
suggestion: country by the clock e.g The time in Sweden is 02:23:53

;)


RE: [Anouncement] Timezone by Pure_BY on 08-30-2006 at 07:26 PM

quote:
Originally posted by boston

suggestion: country by the clock e.g The time in Sweden is 02:23:53

;)
:rofl: Err... You gettin any geography at school? Russia only, for example, has 9 (!) different timezones (if I am not mistaken) 8-|
RE: [Anouncement] Timezone by Thor on 08-30-2006 at 07:49 PM

Really good! This is something I've wanted (Y)

quote:
Originally posted by Shondoit
I've been working on a new script the last couple of days...
I have some problems with WinAce, for packing it in a PLSC, so It will be released a couple of days later
I recommend WinRar, works great for .plsc, .rar, .zip and the diffrent ways.
RE: [Anouncement] Timezone by Reload2 on 08-30-2006 at 08:28 PM

* Reload2 agrees with Nitro
Yes, if you are having trouble with WinAce, I suggest you a better compressing software WinRAR. You can use it 40 days for free and it's very good for rar, zip :)

And your script sounds good, I have a suggestion I don't know if it could be done with the scripting system. Actually, when you register for the hotmail address, you must enter a country and province/state and maybe this could help for the script 8-)


RE: [Anouncement] Timezone by Pure_BY on 08-30-2006 at 08:50 PM

quote:
Originally posted by Reload2

Yes, if you are having trouble with WinAce, I suggest you a better compressing software WinRAR. You can use it 40 days for free and it's very good for rar, zip :)
I don't know about the latest version, but as of my own experience with Win Rar, it only keeps saying that you must purchase it, but you can continue using it as long as you want... Please, correct me if I'm mistaken?
RE: [Anouncement] Timezone by Reload2 on 08-30-2006 at 09:39 PM

Well it's like mIRC, it pop-ups a little windows saying "You have x days to try the product then you need to register it to use" but after 40 days you can still use it 8-) and it doens't keep saying it, only 1 (one) pop-up when you start the program


RE: [Anouncement] Timezone by Shondoit on 08-30-2006 at 10:25 PM

Guys, sorry about the waiting...
WinAce never caused any trouble until now, it crashes whenever I want to Zip something, critical errors even:S I'm going to reinstall it... I think it should work fine then
WinAce is a pretty good alternative for WinRar

I packed this release with the Windows Zip function....

The First Post is updated, look over there for more info...


RE: [Anouncement] Timezone by cloudhunter on 08-30-2006 at 10:43 PM

Nice script! But it doesn't work for me. Whenever I use any of the commands, it says that the command isn't recognised :(

Cloudy


RE: [Anouncement] Timezone by Spunky on 08-30-2006 at 10:45 PM

I got all excited then! The attached file is the PNG preview of the script, not the PLSC file. :(

HURRY :D


RE: [Anouncement] Timezone by cloudhunter on 08-30-2006 at 10:47 PM

The attached file is now a script ;) press CTRL F5.


RE: [Anouncement] Timezone by Shondoit on 08-30-2006 at 10:48 PM

@CloudHunter, the second command was wrong, will update it after this... About the first command... What do you write?

@SpunkyLoveMuff, you should update your Internet Cache, the attachment is the PLSC


RE: [Anouncement] Timezone by cloudhunter on 08-30-2006 at 10:54 PM

I've just tried "/TZSetGMT +01.00", and "/TZAlwaysShowTimer", and the error is still the same. I've tried closing and reopening Messenger, and no change.

Cloudy


RE: [Anouncement] Timezone by Shondoit on 08-30-2006 at 10:59 PM

The /TZSetGMT command only allows numbers, a dot and a minus sign for the time difference (for now)...  hence you should only write how many hours to be added
i.e '/TZSetGMT user@hotmail.com 1' or '/TZSetGMT -3.5'

The /TZAlwaysShowTimer requires a boolean param, as stated in the first post...
If you want the timer to show even when there's no time difference, type '/TZAlwaysShowTimer true'


I'll write a better documentation tomorrow, and I'll make the script easier to use... as for the commands, GUI will be added later on


RE: [Anouncement] Timezone by cloudhunter on 08-30-2006 at 11:03 PM

quote:
Originally posted by Shondoit
/TZAlwaysShowTimer true

Just tried that, and the same error. I did however try "/TZSetGMT 0.0" And the counter showed on the contacts window, so that one was user error ;) Maybe you should add some example commands into the first post?

Cloudy
RE: [Anouncement] Timezone by Shondoit on 08-30-2006 at 11:14 PM

I believe you became a victim of the internet cache too

I've added a header to my script, with Version number
I uploaded it again
If you don't see it, you got the wrong version...

It should work, at least it does here


RE: [Anouncement] Timezone by Spunky on 08-30-2006 at 11:15 PM

At first the script didn't seem to work. I typed /TZAlwaysShowTimer true and nothing happened...

To get the script to work I had to first set a timezone anyway (only for one contact) and then the clock showed on all windows.


RE: [Anouncement] Timezone by cloudhunter on 08-30-2006 at 11:22 PM

Yup, I was a victim of the cache aswell ;) Great script :)

Cloudy


RE: [Anouncement] Timezone by Shondoit on 08-30-2006 at 11:22 PM

@SpunkyLoveMuff
Some weird beviour:S

It is true the timer doesn't imediately shows when you type the command, but it does when you close and reopen
This is changed in the next release

Can you try? You can remove the GMT by calling /TZSetGMT 0 for the users
(You don't have to, I'm just being curious)

Well, I'm off to bed right now, coz it's 1:20 over here, c'yall later


RE: [Release] Timezone by artfuldodga on 08-31-2006 at 02:14 AM

I don't think we really need the to the second countdown, but..  its ok as an Option :) also.. don't forget displaying AM/PM :)

Looking forward to the full Release.

Edit: When one of your Contacts puts an Emoticon in their PSM, it knocks the Clock out of Alignment a bit...


RE: RE: [Anouncement] Timezone by Salem on 08-31-2006 at 07:58 AM

quote:
Originally posted by Pure_BY
I don't know about the latest version, but as of my own experience with Win Rar, it only keeps saying that you must purchase it, but you can continue using it as long as you want... Please, correct me if I'm mistaken?


Yes, i have the same experience with WinRAR. It's never totally stopped working for me.

~Salem(@)
RE: [Release] Timezone by Matti on 08-31-2006 at 09:18 AM

I must admit: this script is awesome! :D
However, the AlwaysShowTimer doesn't save in the registry, which I think would be handy.

For users who want this, add:

code:
OnlyGMTDifference = new ActiveXObject("WScript.Shell").RegRead(MsgPlus.ScriptRegPath + Messenger.MyUserId + "\\OnlyGMT") == "1" ? true : false;

after:
code:
if (!MessengerStart) {
in the OnEvent_Initialize function (line 21). Also, create a new OnEvent_SignIn event like this:
code:
function OnEvent_SignIn (Email) {
    OnlyGMTDifference = new ActiveXObject("WScript.Shell").RegRead(MsgPlus.ScriptRegPath + Messenger.MyUserId + "\\OnlyGMT") == "1" ? true : false;   
}
for the case Messenger isn't signed in when the script starts.

To write the registry key, add this:
code:
Shell.RegWrite(MsgPlus.ScriptRegPath + Messenger.MyUserId + "\\OnlyGMT", (OnlyGMTDifference?1:0))
in the OnEvent_ChatWndReceiveMessage event after:
code:
OnlyGMTDifference = !(/^true$/i.test(Bool))
That will do the trick. ;)

Go for it, Shondoit! (y)
RE: [Release] Timezone by Shondoit on 08-31-2006 at 09:26 AM

@artfuldodga, the next release will have custom time format support, so you can change it yourself...
I allready know about the shift when the contact uses emoticons, and I allready fixed that... :S So I don't know what the problem is, could you make a screenshot? and are you using a custom skin?

@Mattike, as I said in the first post, the value is lost whenever you close/restart the script, and that I will fix that in the next release (90% chance it will be today). And so I did, I fixed that, and am working on more customization now....

The next release will be available before 19:00 UTC (in 7 hours and 30 minutes)


RE: [Release] Timezone by Matti on 08-31-2006 at 09:45 AM

quote:
Originally posted by Shondoit
@Mattike, as I said in the first post, the value is lost whenever you close/restart the script, and that I will fix that in the next release (90% chance it will be today). And so I did, I fixed that, and am working on more customization now....
Sorry, I read over it... Well, I think it's a good alternative for the impatient people. (like meh :P)

RE: [Release] Timezone by Salem on 08-31-2006 at 10:43 AM

Hi Shondoit

I'm not sure if this is because of the fact that the script currently losses it's settings when enabled/disabled (sorry if this is the cause), but if i'm  signed-out of WLM for some reason and i still have chats open, the timer for the contact stops. And when i'm signed in again, it doesn't continue.

Also, it appears your script doesn't support MP!L's tabbed chatting feature, if i have multiple chats open in tabs, the timer isn't displayed at all.

*Salem(@) waits in anticipation for script update at 19:00 GMT*

~Salem(@)


RE: [Release] Timezone by Felu on 08-31-2006 at 10:53 AM

quote:
Originally posted by Salem
Also, it appears your script doesn't support MP!L's tabbed chatting feature, if i have multiple chats open in tabs, the timer isn't displayed at all.
I already talked about that on WLM to him. It isnt easy to do it because not everyone has tabbed chats and moreover the registries don't have enough information about it so, it will be hard [Image: msn_tongue.gif]. But even i would like to have this too. Ill see if i can help to it(if i get some ideas).

Btw good effort.
RE: [Release] Timezone by Matti on 08-31-2006 at 12:18 PM

Warning! When you have an activity opened in a chat, the timer will be placed over it! Detecting this will probably be even harder than the tabbed chats problem, I just report it. ;)


RE: [Release] Timezone by Shondoit on 08-31-2006 at 12:21 PM

I was aware of that, so I added the option to disable it, you can find it in the Script Menu (MP!L logo -> Timezone -> Toggle Timer)

I totally forget to mention that feature :$

About the Tabbed window chat, that will be solved...
After I fix some problems with it...

(totally forgot :$:D)


RE: [Release] Timezone by Shondoit on 08-31-2006 at 01:46 PM

New version available...
When downloading please check you are using version 1.01.03, by looking at the header of the script

New features: Fully customizable, and Tabbed chats support


RE: [Release] Timezone by Jimbo on 08-31-2006 at 01:53 PM

ok, when i type '/TZSetGMT 10' it doesn't work, why?


RE: [Release] Timezone by Felu on 08-31-2006 at 01:57 PM

quote:
Originally posted by 134jimbodude
ok, when i type '/TZSetGMT 10' it doesn't work, why?
Use +10 or -10 [Image: xso_undecided.gif].
RE: [Release] Timezone by Jimbo on 08-31-2006 at 01:58 PM

/TZSetGMT+10
and
/TZSetGMT +10

still don't work


RE: [Release] Timezone by Shondoit on 08-31-2006 at 01:59 PM

I screwed up in one of the RegExp's
I forgot one tiny little plus-sign :(

*Updated*


RE: [Release] Timezone by Jimbo on 08-31-2006 at 02:02 PM

It still isn't working:'(
/TZSetGMT 10, doesn't work
/TZSetGMT 9, doesn't work
/TZSetGMT 8, does work

EDIT: got /TZSetGMT 9 to work but /TZSetGMT 10 still isn't

Why?


RE: [Release] Timezone by Shondoit on 08-31-2006 at 02:04 PM

Please check if you downloaded the latest version...
V1.01.04

It works here :S


RE: [Release] Timezone by Jimbo on 08-31-2006 at 02:05 PM

i have downloaded latest version but still not working

MSG plus says:command not recognized


RE: [Release] Timezone by Shondoit on 08-31-2006 at 02:06 PM

Does it work when you add an email?
/TZSetGMT user@hotmail.com 10


RE: [Release] Timezone by Jimbo on 08-31-2006 at 02:08 PM

no

EDIT: Just looked at it again, the only ones that work for me are the timezones ones up to 9

all the other commands, msg plus live says that they aren't recognized


RE: [Release] Timezone by Shondoit on 08-31-2006 at 02:11 PM

Why did /TZSetGMT 9 didn't work before, but does now? did anything different?

How about when you disable all other scripts?
Does anyone else have the same problem :S I really don't get it???


RE: [Release] Timezone by Jimbo on 08-31-2006 at 02:12 PM

i disabled all my scripts and it still won't work
someone please help

/TZHeight doesn't work for me either


RE: [Release] Timezone by tony on 08-31-2006 at 02:15 PM

134jimbodude

/TZSetGMT +hourdiffrence

example:

/TZSetGMT +8


RE: [Release] Timezone by Jimbo on 08-31-2006 at 02:15 PM

/TZSetGMT +10    still won't work


RE: [Release] Timezone by Shondoit on 08-31-2006 at 02:24 PM

Check if the RegExp is right...
In the OnEvent_ChatWndSendMessage function, the first line should be:
if (/^\/TZSetGMT\s(?:(.+)\s)?((?:\+|-)?\d+(?:(?:\.|,)\d+)?$)/i.test(Message)) {

The way you describe it, it looks like you don't have the latest update :S

-edit- Much more readable when smilies are disabled :P


RE: [Release] Timezone by Jimbo on 08-31-2006 at 02:27 PM

is the /TZheight meant to be in the window when i push '/'

How do i clear my cache?


RE: [Release] Timezone by Shondoit on 08-31-2006 at 02:29 PM

What doe you mean exactly?


RE: [Release] Timezone by Jimbo on 08-31-2006 at 02:31 PM

You know when you push the '/' button, and a little window pops up with all the commands, is the /TZHeight, meant to be in that window?


RE: [Release] Timezone by Shondoit on 08-31-2006 at 02:33 PM

Yes


RE: [Release] Timezone by Jimbo on 08-31-2006 at 02:34 PM

it doesn't

EDIT: Worked out the problem:Even though i clicked the new version, it somehow download the old one. Maybe my cache was full??


RE: [Release] Timezone by Shondoit on 08-31-2006 at 02:35 PM

It should
And /TZSetGMT 10 should work also...

The only thing I can think of is deleting Timezone, and reinstalling the latest version


RE: [Release] Timezone by Jimbo on 08-31-2006 at 02:36 PM

Thanks

Got it working perfectly now, thanks for all your help
+1 to your rep


RE: RE: [Release] Timezone by Salem on 08-31-2006 at 02:39 PM

quote:
Originally posted by Shondoit
...please check you are using version 1.01.03, by looking at the header of the script...


Just downloaded and installed it. I just see the following (in Timezone.js):

code:
/*------------------------*\
| Version 1.01             |
| Written by Shondoit |
\*------------------------*/

Is this correct?

EDIT: Got it working

~Salem(@)
RE: [Release] Timezone by Shondoit on 08-31-2006 at 02:42 PM

The latest should be 1.01.04

Your internet cache contains a previous version...


RE: [Release] Timezone by Jimbo on 08-31-2006 at 02:56 PM

just wondering, why does only the clock window get bigger when i change the height?
can you make it so the text size gets bigger aswell???


RE: [Release] Timezone by Shondoit on 08-31-2006 at 04:29 PM

I could do that... but it'll have to wait til tomorrow, I'm not going to be home this evening
It was ment for when you want 2 lines, the date too, or something


RE: [Release] Timezone by Geo on 08-31-2006 at 05:05 PM

Hi,

Is it possible to discover the hour of my contact automatically without that I said to him the difference with my hour


RE: [Release] Timezone by Shondoit on 08-31-2006 at 05:09 PM

What do you mean exactly?

You just have to ask the Contacts local time, and see how many hours more/less it is with your local time...
You can't know somethin about the contact if he or a script on his computer doesn't give it to you...


RE: [Release] Timezone by Lourix on 08-31-2006 at 05:11 PM

This script is really good well done.


RE: [Release] Timezone by artfuldodga on 08-31-2006 at 05:24 PM

Thats what he was asking :) if there was a way to detect a Contacts time automatically. I wish the Messenger Team would of Implimented this feature in Messenger, I know I suggested it via feedback.. knowing the time def gives everything more of that Live feel.

But, I hope you get your script sorted out :) .... I'm not sure where the Time should be Displayed, personally.. i wouldn't mind it appended into the Message Area itself.

10:41PM ContactNick Says:  <- Contacts Local Time
blah blah
YourNick Says: <- You
blah blah..
10:45PM ContactNick Says: <- Contacts Local Time (next reply)

Its not as 'Real Time' but.. you get the idea. & perhaps all that would be required to find out the time of that Contact (after you have entered the time zone or time difference) would be /time or /ltime (local time)

I guess not everybody wants to see it in the Conversation Window though, Its gotta be easier than Messing about with the GUI & Tabs.. though..


RE: [Release] Timezone by Matti on 08-31-2006 at 05:33 PM

Congratulations, the new version is awesome! (H)
The fixes work perfectly, hat off! :D

Give it a nice GUI where people can control all available options and you've got a first class hit! ;)


RE: [Release] Timezone by NanaFreak on 08-31-2006 at 08:54 PM

this is a MAD script i love it:P

and a sujestion is that could you make the colour of the clock the colour of the chat window not the defult colour because i have 2 fifferent colours and its really anoying ty

:D:D love it ty


RE: [Release] Timezone by artfuldodga on 08-31-2006 at 09:08 PM

when i use tabs, it doesn't seem to be aligning... & using the fixtabs option.. doesn't do anything.. as far as i can tell :) script is a bit complicated to use, besides entering the times & stuff....

[Image: offset.png]


RE: [Release] Timezone by Spunky on 08-31-2006 at 09:09 PM

I just place my tabs on the side anyway and so it doesn't seem to affect it... If you're not bothered about placement, you could do that


RE: [Release] Timezone by Jesus on 08-31-2006 at 10:03 PM

the script indeed only works when the tabbar is on the side...
but I like it to be on the top:(

Edit: when I set /TZBottom the problem disappears. Could it be that it's not possible to use the side on which the tabbar resides as a reference for the clock placement?
also, when I click on the clock and press esc, it disappears and I have found no other way to get it back than to restart the script from plus! prefs.


RE: [Release] Timezone by Spunky on 08-31-2006 at 10:06 PM

I'm sure you could set it so that if 2 or more chat windows or open that the y position of the clock changes slightly...


RE: [Release] Timezone by cloudhunter on 08-31-2006 at 10:07 PM

Or a "tab adjustment" setting perhaps?


RE: [Release] Timezone by Spunky on 08-31-2006 at 10:08 PM

Allowing the user to manually change the position of the clock relative to the default position would be great as you could then move it down to the buttons (like nudge etc)


RE: [Release] Timezone by Jesus on 08-31-2006 at 10:25 PM

you can already move it around using /TZTop, /TZBottom, /TZLeft and /TZRight. just type in the command with a (pixel?) value as a parameter.


RE: [Release] Timezone by Spunky on 08-31-2006 at 10:29 PM

The value is probably the same as used in the XML files used for creating windows, not pixels. I never noticed this command. Might be as I'm still using the original version.

Sleep for a few hours and the world has already moved on without you.

EDIT: use /tzbottom to align it a certain distance from the bottom of the window. This will overcome the problem of the tabs moving it down :p


RE: [Release] Timezone by Shondoit on 08-31-2006 at 11:17 PM

@artfuldodga, please check you are using the latest version (v1.01.04) you can find this in the header
It should work with tabs

@J-sus, just don't hit Escape for now... I will look into it sometime

@SpunkyLoveMuff, the offsets are in pixel values, and it is managed in the script, with API calls, not in the XML files
You can show a Timer by using the Script Menu

@All, I already know my script isn't that user friendly when it's about changing the settings, but I'm working on a GUI, it should be available in the next release, or the following one...
Don't know when it's gonna be available

@All2, Please... always check if you are using the latest version, by checking if the header of the script matches the version stated in the opening post...

*Shondoit is off to bed, zzZZzzzZzzz*


RE: [Release] Timezone by artfuldodga on 09-01-2006 at 12:34 AM

yes im using latest version :)... also, i can't seem to remove the time from every window using the alwaysshow false... command, doesn't work, it did in previous versions.


RE: RE: [Release] Timezone by Salem on 09-01-2006 at 09:14 AM

quote:
Originally posted by Shondoit
@All2, Please... always check if you are using the latest version, by checking if the header of the script matches the version stated in the opening post...

*Shondoit is off to bed, zzZZzzzZzzz*

Shondoit.

May i suggest that when you release a new version, you modify the thread title to say something like [Release] Timezone (Version: 0.0.0)* This would allow users to easily see if a new version is available by checking the thread title, without having to visit the thread first

Also, i tried using /TZBottom But i get the MP!L error message that the comment is not recognised. Then i type in [i]/TZ
the /TZBottom is displayed in the command helper, but yet it doesn't work. I tried this command to see if it'll fix the positioning of the timer when i use tabs (I have my tabs on the top).

EDIT: /TZBottom working now(Y)

*Replace 0.0.0 with the current version number of Timezone.

~Salem(@)
RE: [Release] Timezone by Chris4 on 09-01-2006 at 09:25 AM

No commands are working for me. Not recognized.
Version 1.01.04


RE: [Release] Timezone by Jimbo on 09-01-2006 at 09:26 AM

i had that yesterday, It was something to do with my internet cache


RE: [Release] Timezone by Chris4 on 09-01-2006 at 10:01 AM

I was just doing it wrong, didn't read how to do the commands in the first post.

When you go on the "/TZTop" command, in the text box it should say "/TZTop <enter pixels amount>" or in the description of the command, so you know you have to a parameter after the command.


RE: [Release] Timezone by Jimbo on 09-01-2006 at 10:02 AM

yes, i agree, that would be helpful


RE: [Release] Timezone by Spunky on 09-01-2006 at 08:47 PM

I finally found what the "search" button was for! it's just saving space for when someone makes a clock script :D

[Image: attachment.php?pid=723148]

Changed the values in the XML file to center the time as well ;)


EDIT: Has anyone tried going on webcam when using the /tzbottom function? Whether tabs or webcam or games, it'll mess up either way I think...


RE: [Release] Timezone by artfuldodga on 09-01-2006 at 09:05 PM

it would be cool, if the time could be attached right below the send button somehow:P.. and have it stay there.

of course everyone would need to remove the search button with a patch :)


RE: [Release] Timezone by Spunky on 09-01-2006 at 09:06 PM

You can just make it cover the search button and I'm sure there is a way to fix the tabs problem...


RE: [Release] Timezone by matty on 09-01-2006 at 09:13 PM

Here are little improvements  you can make.

  • Check if the Standard Bar is shown (if not find another location for the time)
  • Unload the Time Window when closing the chat window (Not sure if you do this didn't look at the code that much)

For Positioning
Check the Plus! Preferences Registry key for tabs > Check the number of conversation Windows > Check if the Standard Bar is shown > Place the Window.
RE: [Release] Timezone by Lourix on 09-01-2006 at 09:15 PM

I think this script could be a big hit Shon :)


RE: [Release] Timezone by Joereynolds89 on 09-01-2006 at 09:39 PM

whats the position to get the timezone bar over where the search bar once was? well still is on peopel that dont patch :P


RE: [Release] Timezone by Zayl on 09-01-2006 at 10:34 PM

Very intelligent script ^^


RE: [Release] Timezone by Shondoit on 09-01-2006 at 10:38 PM

I don't know why people are still having trouble with the Tabs...
I fixed that in the latest version, so I thought

I'm gonna release a new version, with Debug so I can find the problem easier



I patched the search button, so if you could post the commands, SpunkyLoveMuff... you should use /TZBottom and /TZRight, this should also help for the Tabs, at the moment...

-edit- The new release also supports MP!L color tags, and format tags


When you need support or want to help test the script, give feedback, you can add me: shondoit@hotmail.com


RE: [Release] Timezone v1.01.07 by Shondoit on 09-01-2006 at 11:44 PM

-update- Version 1.01.07

Added Debug
and Color and format support
Change the mask to something like '[b]HH:mm[ /b]:ss'

Also fixed the bug of clicking on the timer, and pressing escape wich crashed the script, The timer doesn't close anymore


RE: [Release] Timezone v1.01.07 by Knucks on 09-02-2006 at 12:53 AM

Hmm, I was wondering how you would set the time difference for somewhere which has say 3:30 hours? I have only got 1 digit to work. Is there support for that yet or am I missing something? :P


RE: [Release] Timezone v1.01.07 by artfuldodga on 09-02-2006 at 01:45 AM

as with my previous post... the default position is ok when im not in a tabbed conversation, once i go into a tabbed convo (tabs being at the top) .. the clock goes out of alignment... and setting it to TZFixTabs true... doesn't do anything? :)

don't know what to do..


RE: [Release] Timezone v1.01.07 by Chris4 on 09-02-2006 at 01:57 AM

Don't know if you'd be interested, but I come up with an idea for Winamp Controller, you could use it for Timezone if you wanted. That's if you wanted to include it and come up with the code. Much easier then using commands and entering the amount of pixels.

I was thinking that you could change the amount of pixels that the arrows move the clock Ex. Default is 10, but a textbox lets the user change it?
[Image: positioning2pi0.png]


RE: [Release] Timezone v1.01.07 by Shondoit on 09-02-2006 at 07:11 AM

@artfuldodga, please post the text from the Debug window...

@Chris4, I already said numerous of times,  I'm gonna add a GUI.
It is going to be something different than what you posted, but thanks for the idea anyway

-edit- 100th POST :D


RE: [Release] Timezone v1.01.07 by phalanxii on 09-02-2006 at 08:57 AM

I think the problem with the tabbed chats is because /^.+\s-\s.+\r\n\((\d+)\s.+\)$/i.test(OwnerTitle) returns false, even with tabbed chats, meaning my debug window reads:

quote:
HasTabs = false
I fixed this by changing the expression to (OwnerTitle.substr(OwnerTitle.length - 14) == " tabbed chats)"), and now it works perfectly!

The code that works for me:
code:
function OnEvent_Timer (TimerId) {

    ...

if (S.FixTabs){
    var OwnerWindow = Interop.Call("User32.dll", "GetWindow", ChatWnd.Handle, 4)
    if (OwnerWindow != 0) {
        if (dbg) Debug.Trace("Chat hWnd:" + ChatWnd.Handle + " has Owner hWnd:" + OwnerWindow)
        var aTitle = Interop.Allocate(640)
        Interop.Call("User32.dll", "GetWindowTextW", OwnerWindow, aTitle, 640)
        var OwnerTitle = aTitle.ReadString(0)
        if (dbg) Debug.Trace("\tTitle = " + OwnerTitle)
        if (dbg) Debug.Trace("\tHasTabs = " + (OwnerTitle.substr(OwnerTitle.length - 14) == " tabbed chats)"))
        if (OwnerTitle.substr(OwnerTitle.length - 14) == " tabbed chats)") {
            var PosTop = (Shell.RegRead("HKCU\\Software\\Patchou\\Messenger Plus! Live\\" + Messenger.MyEmail + "\\Preferences\\TabChatPosition") * 1 == 0)
            if (dbg) Debug.Trace((PosTop) ? "\tPosition = Top" : "\tPosition = Left")
            if (PosTop) {
                if (S.Top) _y += 28
            } else {
                if (S.Left) _x += Shell.RegRead("HKCU\\Software\\Patchou\\Messenger Plus! Live\\" + Messenger.MyEmail + "\\Preferences\\TabChatMinSize") * 1
            }
        }
    }

    ...

}
I hope you don't mind me editing the script. :S
RE: [Release] Timezone v1.01.07 by Shondoit on 09-02-2006 at 09:02 AM

I don't mind you changing it, but it doesn't work for me now, as I'm using the dutch version MP!L, and it doesn't say 'Tabbed chats'

Could you also post the Title of the Owner window, it should show up in the debug window...


RE: [Release] Timezone v1.01.07 by phalanxii on 09-02-2006 at 09:32 AM

quote:
Originally posted by Shondoit
I don't mind you changing it, but it doesn't work for me now, as I'm using the dutch version MP!L, and it doesn't say 'Tabbed chats'

Could you also post the Title of the Owner window, it should show up in the debug window...


This is what it says in the debug window:
quote:
Title = Dave - Conversation (2 tabbed chats)
If there are no tabs, it just reads:
quote:
Title = Dave - Conversation
I guess implementing it for every language will be difficult like this. Perhaps you could use Messenger.CurrentChats.Count in conjunction with TabChatAuto in the registry. (For example, if TabChatAuto == 1 and Messenger.CurrentChats.Count > 1, then update the position.)
RE: [Release] Timezone v1.01.07 by Shondoit on 09-02-2006 at 09:35 AM

Thanks for the Owner Title, I'll have a look at it

As for the registry, this only is true when the user uses Auto tab, not when the user creates a tabbed window themself...


RE: RE: [Release] Timezone v1.01.07 by phalanxii on 09-02-2006 at 09:45 AM

quote:
Originally posted by Shondoit
Thanks for the Owner Title, I'll have a look at it

As for the registry, this only is true when the user uses Auto tab, not when the user creates a tabbed window themself...

Yeah, that's where the chat window count comes in. I've tried the following code and it seems to work:
code:
(Shell.RegRead("HKCU\\Software\\Patchou\\Messenger Plus! Live\\" + Messenger.MyEmail + "\\Preferences\\TabChatAuto") * 1 == 1 && Messenger.CurrentChats.Count > 1)
It should work for all languages, haven't tried though.
RE: [Release] Timezone v1.01.09 by Shondoit on 09-02-2006 at 09:53 AM

You should read my post better

The registry key is only '1' if the user choses 'Auto tab'
Then you could check if the user has more than 1 convo open, true

But if a user has 'Auto tab' disabled, and tabs the convos with the hotkeys, it doesn't change, because he has the 'Auto tab disabled'

But I believe I found the problem, the dutch version of MP!L uses a line break, so I checked if there was a line break... I fixed that now

-Update- V1.01.09
Fixed the tabs positioning


RE: [Release] Timezone v1.01.09 by phalanxii on 09-02-2006 at 10:12 AM

Correct me if I'm wrong, but doesn't TabChatAuto just show whether tabbed chats are enabled or not? Either way, I guess the tabbed chats work now so good work. :D

Two other things:

1. How do you centre the time in the window?
2. When a chat window is opened, the focus is on the clock window. Is it possible to refocus it onto the chat window?


RE: [Release] Timezone v1.01.09 by Matti on 09-02-2006 at 10:42 AM

quote:
Originally posted by phalanxii
1. How do you centre the time in the window?
Change the LblTime control's code in Windows.xml to:
code:
<Control xsi:type="RichStaticControl" Id="LblTime">
<Position Top="2" Width="30" Left="2"/>
<Attributes><Align>Center</Align></Attributes>
</Control>
Only problem is that this will only look good when the timer's width is the default width (57 pixels).


quote:
Originally posted by phalanxii
2. When a chat window is opened, the focus is on the clock window. Is it possible to refocus it onto the chat window?
Sure, add this to the function AddButton at the showed position:
code:
if (dbg) Debug.Trace("Added to Array")
OnEvent_Timer("UpdateTimer")
ChildWnd.Visible = true
focusWnd(ChatWnd.Handle)
} else {
and this to the end of the script file:
code:
function focusWnd(Wnd) {
Interop.Call('User32','BringWindowToTop', Wnd)
Interop.Call('User32','ShowWindow', Wnd, 1)
}

RE: [Release] Timezone v1.01.09 by phalanxii on 09-02-2006 at 11:05 AM

Thanks heaps, Mattike! Both work exactly like I wanted (I edited the label's width to centre it properly :)).


RE: [Release] Timezone v1.01.09 by Spunky on 09-02-2006 at 11:28 AM

Someone asked how to get the clock ofver the search button so here you are...

/tzbottom 100
/tzright 157
/tzwidth 70
/tzheight 27 (I think this is default anyway :p)

I also centered the clock text, but rather than using the method show earlier in the thread, I used:

code:
<Control xsi:type="StaticControl" Id="LblTime">
<Position Top="2" Width="100" Left="8" Height="50"/>
/Control>


EDIT: ZOMG! Version 1.01.09? I keep missing the updates! Automatic update option in next release please! :D
RE: [Release] Timezone v1.01.09 by NanaFreak on 09-02-2006 at 12:07 PM

ok i love the script but in one of the early releases it was able to do multiple lines but now it cant which sux coz i loved it being able to be multi so that it was small but was able to be read easy i hope you can make it do this again


RE: [Release] Timezone v1.01.09 by Shondoit on 09-02-2006 at 12:24 PM

I changed the StaticControl to RichStaticControl, to support formatting, but I didn't know the RichStaticControl doesn't support multiline...

You can change it in Windows.xml


RE: [Release] Timezone v1.01.09 by ins4ne on 09-02-2006 at 12:49 PM

i like the idea... that script will be great when the GUI is finished :D (Y)


RE: [Release] Timezone v1.01.011 by Shondoit on 09-02-2006 at 11:07 PM

-Update- v1.01.011
Fixed a few minor bugs, like the Timer stealing focus
And added an AutoUpdate feature...
('/TZAutoUpdate false', to turn it off)

WARNING: when you download the new version, your Windows.xml will be overwritten, losing the changes you made to the label (like centering)

Note: I changed the RichStaticControl back to the StaticControl, for multiline, this loses formatting


I'm going to sleep now (again :P)
Tomorrow I'm going to clean up the opening post, and add full documentation (I hope, I may be gone tomorrow, not certain yet)
And monday I'm going to clean up the code, and finalizing this last release (adding the commands in the command window, etc...) probably won't give a release, since it doesn't add anything

And then I'm going to work on the GUI, wich will take a while, since I'm also starting school monday :S
RE: [Release] Timezone v1.01.012 by Knucks on 09-03-2006 at 07:52 PM

For some reason on the latest version (v1.01.012) the Timezone timer doesn't want to show. :S I even tried restarting Messenger and still nothing seemed to show. Am I doing something wrong?


RE: [Release] Timezone v1.01.012 by Shondoit on 09-03-2006 at 07:55 PM

It seems like the script won't start, coz of an error during the start
If you could post the Debug report...
Or add me to WLM


RE: [Release] Timezone v1.01.012 by Knucks on 09-03-2006 at 08:01 PM

This is the debug report I get:

code:
Script is starting
Script is now loaded and ready
Function called: OnEvent_Initialize
Script started
Loading Settings from Registry...
Current Settings:
    AlwaysShowTimer = true
    FixOffset = true
    FixTabs = true
    AutoUpdate = true
    Mask = h:mm a
    Width = 57
    Height = 0
    Left = undefined
    Right = 15
    Top = undefined
    Bottom = 100
Checking for updates...
Version download stopped
The download was succesful
A new version is available
Updating timer of hWnd:3147442
Adding new timer to hWnd:3147442
New Child hWnd:264782
SetParent was succesful
Added to Array
Error: Unable to open registry key "HKCU\Software\Patchou\Messenger Plus! Live\[email]\Preferences\TabChatPosition" for reading..
       Line: 353. Code: -2147024894.

RE: [Release] Timezone v1.01.012 by Shondoit on 09-03-2006 at 08:03 PM

Thx, and good news...
I was just working on that :D

A few minutes...

-Update- v1.01.016
Minor bugfix, and added the 'Check for Update' item in the menu, which will check imediatly


RE: [Release] Timezone v1.01.016 by Jimcando on 09-03-2006 at 09:49 PM

Just got this, and I've noticed that the clock doesn't stay in the same position for each contact, for some people the clock is few pixels off.
I dont know why this happens because none of these contacts have emoticons in their name or PM :S
I've tried locking it in position, but that still doesnt work...

Also, I was talking to someone while changing the position of the clock and suddenly I couldnt send any messages to him :O
I had to stop and re-start the plug-in to make it work.


RE: [Release] Timezone v1.01.016 by CookieRevised on 09-04-2006 at 12:45 AM

quote:
Originally posted by Jimcando
Also, I was talking to someone while changing the position of the clock and suddenly I couldnt send any messages to him :O
I had to stop and re-start the plug-in to make it work.
You only had to click in the typing area of the conversation window though (if that is what you mean).

The window where the clock is shown (it is a window which is 'simpy' shown above the conversation window so it appears to be a part of the conversation window), can steal the focus and can become the foreground window.

Since this window doesn't have any status or title bars, it is possible you might not notice that the cursor has dissapeared from the typing area of your conversation window.
RE: [Release] Timezone v1.01.016 by NanaFreak on 09-04-2006 at 05:34 AM

quote:
Originally posted by Jimcando
Also, I was talking to someone while changing the position of the clock and suddenly I couldnt send any messages to him (Smilie)
I had to stop and re-start the plug-in to make it work.

i have aslo had this problem and sometimes if you wait a while it will come back but it is quicker to restart the script.

quote:
Originally posted by CookieRevised
You only had to click in the typing area of the conversation window though (if that is what you mean).

The window where the clock is shown (it is a window which is 'simpy' shown above the conversation window so it appears to be a part of the conversation window), can steal the focus and can become the foreground window.

Since this window doesn't have any status or title bars, it is possible you might not notice that the cursor has dissapeared from the typing area of your conversation window.

umm sorry cookie but this is wrong i clicked in the writing box tyoed my whole message then hit enter it went away but it didnt appear ion the chating part and then i did ctrl + up arrow and it was there.

i hope you can understand from this cookie

* me hopes cookie doesnt get up me
RE: [Release] Timezone v1.01.016 by CookieRevised on 09-04-2006 at 05:43 AM

quote:
Originally posted by Jay_Jay
umm sorry cookie but this is wrong i clicked in the writing box tyoed my whole message then hit enter it went away but it didnt appear ion the chating part and then i did ctrl + up arrow and it was there.

i hope you can understand from this cookie
yep, perfectly, but why not mentioning that in the first post?
quote:
Originally posted by Jay_Jay
* me hopes cookie doesnt get up me
never ;)... but what I explaned is also exactly what you described in your first post (as you didn't mention the stuff you've just said). Though, I also said "if that is what you mean" because I wouldn't wanted to exclude other possible causes (like you just showed)...

sorry it didn't help you.



EDIT: blah... no excuses for me... I even didn't noticed you weren't the same dude I initialy replied upon... /me needs sleep
RE: [Release] Timezone v1.01.016 by NanaFreak on 09-04-2006 at 05:51 AM

quote:
Originally posted by CookieRevised
but what I explaned is also exactly what you described in your first post (as you didn't mention the stuff you've just said). Though, I also said "if that is what you mean" because I wouldn't wanted to exclude other possible causes (like you just showed)...

sorry didnt read it properly coz i was at school and didnt want the teachers to see it and block it.  and sorry for not explaining myself fully but the first person you quoted was not me :P i didnt even post this

[offtopic]
yay cookie wont get up me

*note to self suck up to cookie or he might not translate gradient v3.1 :P
[/offtopic]
RE: [Release] Timezone v1.01.017 by Shondoit on 09-04-2006 at 07:54 AM

This was a kn own bug, which I never could find
But I believe I found it now

-Update- v1.01.017
Bugfix

-edit-
By fixing this bug, I've put in another :S

-Update- v1.01.018
Bugfix-fix :P


btw @JimCando, Look at the Debug report
I noticed sometimes the script uses an older Name and/or Psm
I can't fix that, because it's not a script problem

If the Debug report show a different Name than the Contact's current name, this is the case...

You can find this in the Debug window after you've typed '/tzDebugTimer true' which then will debug every OnTimer event (It's gonna be a loooooong list, so quickly type '/tzDebugTimer false' afterwards)
RE: [Release] Timezone v1.01.018 by absorbation on 09-04-2006 at 12:34 PM

I love how you hook onto the conversation window. It makes future scripts even better as we can learn how to hook onto different places :)


RE: [Release] Timezone v1.01.018 by the_dare on 09-04-2006 at 06:30 PM

thanks a load for the script


RE: [Release] Timezone v1.01.018 by boston on 09-04-2006 at 07:37 PM

instead of the command postioning how about click and place that way i would be easier


RE: [Release] Timezone v1.01.018 by Shondoit on 09-04-2006 at 07:43 PM

quote:
Originally posted by boston
i would be easier
You would be easier??? :P

Anywayz... I was working on that, but first I'm trying to fix the (....) bugs, and add proper timezone support, instead of time difference

Then I'm gonna make it easier in use... Like dragging and resizing the timer...
RE: [Release] Timezone v1.01.018 by Thor on 09-04-2006 at 07:46 PM

quote:
Originally posted by Shondoit
z... I was working on that, but first I'm trying to fix the (....) bugs, and add proper timezone support, instead of time difference

Then I'm gonna make it easier in use.
umm.. Do you think there's a bug in the auot updater? It pops up even though I got the latest version :/
RE: [Release] Timezone v1.01.018 by boston on 09-04-2006 at 07:49 PM

quote:
Originally posted by Shondoit
quote:
Originally posted by boston
i would be easier
You would be easier??? :P

Anywayz... I was working on that, but first I'm trying to fix the (....) bugs, and add proper timezone support, instead of time difference

Then I'm gonna make it easier in use... Like dragging and resizing the timer...

oops it would be easier sorry common mistake
RE: [Release] Timezone v1.01.018 by Shondoit on 09-04-2006 at 07:49 PM

quote:
Originally posted by Nitro
umm.. Do you think there's a bug in the auot updater? It pops up even though I got the latest version :/

Yes I know....
And sometimes when you change a setting, it doesn't allow you to send a message anymore...

First one can be temporarily solved by using '/tzAutoUpdate false'
and the second one by using '/tzDebug false' (Not sure....)

-edit- updated the Bugs section in the opening post


I could use some debuggers, if you wanna apply for the job, please add me to WLM (It's best if you are in my timezone area +01.00 +DST, but all others are welcome too (y))
RE: [Release] Timezone v1.01.020 by Shondoit on 09-09-2006 at 09:15 AM

-Update- v1.01.020
Major Bugfix - fixed the 'No-send' bug
(thx Jay_Jay)
Please remove the previous version first before installing the new version

The Auto update bug hasn't been fixed yet, but it will be in the next version. At least now I know what causes it...


RE: [Release] Timezone v1.01.020 by Eddie on 09-09-2006 at 10:30 AM

Very nice script :( Shame i cant use it till Patchou gets an update for 8.1 out :(


RE: [Release] Timezone v1.01.020 by Spunky on 09-11-2006 at 12:33 PM

quote:
Originally posted by Shadow
Shame i cant use it till Patchou gets an update for 8.1 out

Had the same problem, but I decided to go back to 8.0.0 because I couldn't patch it either using Mess Patch.
RE: RE: [Release] Timezone v1.01.020 by Salem on 09-11-2006 at 01:54 PM

quote:
Originally posted by Shadow
Very nice script :( Shame i cant use it till Patchou gets an update for 8.1 out :(


An update for 8.1 will be out soon, don't worry;-)
RE: [Release] Timezone v1.01.020 by Jimbo on 09-14-2006 at 05:05 PM

I don't believe it! when i download the new version v1.01.020, mcafee and spy sweeper both pop up and say "update.js was infected by the VBS/pbyme trojan!


RE: [Release] Timezone v1.01.020 by Blokie on 09-14-2006 at 06:01 PM

My virusscan says that update.js a trojan is with the name VBS/Psyme to


RE: [Release] Timezone v1.01.020 by Shondoit on 09-14-2006 at 06:04 PM

134JimboDude already said that...
So you don't have to post it again...

I garantee you, it's not a trojan... It does autmaticaly download the new update after you click the update toast


RE: RE: [Release] Timezone v1.01.020 by Blokie on 09-14-2006 at 06:05 PM

quote:
Originally posted by Shondoit
134JimboDude already said that...
So you don't have to post it again...

I garantee you, it's not a trojan... It does autmaticaly download the new update after you click the update toast


Sorry i was forgot the word to
RE: [Release] Timezone v1.01.020 by Jimbo on 09-14-2006 at 07:03 PM

ok, can you look into why it says that though?


RE: [Release] Timezone v1.01.020 by Shondoit on 09-14-2006 at 07:06 PM

It looks like it downloads without the users permission, because the download is in a function, one call to the function and it downloads...

the virus scanners don't recognize the "click on toast" confirmation of MP!L
So it thinks it downloads automatically

As is my explanation... I'm not sure how they work...


RE: [Release] Timezone v1.01.020 by Blokie on 09-14-2006 at 07:06 PM

quote:
Originally posted by 134jimbodude
ugh?

My Favourite scripts:
Who's online?,Gradient,Timezone


No that is what he says if i click on give me more information.
RE: [Release] Timezone v1.01.020 by Jimbo on 09-14-2006 at 07:10 PM

Thanks shondoit
What are you going on about blokie?


RE: [Release] Timezone v1.01.020 by Shondoit on 09-14-2006 at 07:13 PM

I didn't get that either ~?

For more info look here especialy under 'characteristics'... my script does the same... but it's not harmfull, as I only download the .plsc and execute it


RE: [Release] Timezone v1.01.020 by Jimbo on 09-14-2006 at 07:15 PM

ok thanks, when are you going to release the next version of timezone, what updates are you working on?


RE: [Release] Timezone v1.01.020 by Blokie on 09-14-2006 at 07:18 PM

Could you not do that with a another methode.
Some script have also a updat function and my virusscan don't block it.


RE: [Release] Timezone v1.01.020 by Shondoit on 09-14-2006 at 07:21 PM

I'm working on a new Auto update, because people where having trouble with it...
And I'm going to add real timezone support...

But it'll all have to wait, 'cous I'm also working on a site for school, and I have to write a script (not a computer script, a script for a play) and more... So I think the end of next week, if I don't get much homework for school, else a week later


Perhaps, which scripts have that?
And I think you could also disable virus check for that file

and also, the update doesn't work properly yet...
RE: [Release] Timezone v1.01.020 by Blokie on 09-14-2006 at 07:29 PM

Succes with that and it does't matter.


RE: [Release] Timezone v1.01.020 by rainbow on 09-15-2006 at 09:09 AM

Hmm is it just me or is it not working?, yeterday i was talking with someone from Netherlands and im from portugal, and it showed the same time..


RE: [Release] Timezone v1.01.020 by Matti on 09-15-2006 at 09:18 AM

quote:
Originally posted by rainbow
Hmm is it just me or is it not working?, yeterday i was talking with someone from Netherlands and im from portugal, and it showed the same time..
You have to set the time difference for each contact. It can't detect where your contact lives, so it can't know what the time difference is. You have to do it manually for each contact, like sending this in a conversation with the contact:
code:
/TZSetGMT -8
will set the timer for that contact 8 hours before yours. ;)
RE: [Release] Timezone v1.01.020 by Shondoit on 09-15-2006 at 09:21 AM

Thank you Mattike, I was just typing the reply when you posted yours...
But for the Netherlands there is a 1 hour time difference (have a friend in portugal)... So you should type '/tzSetGMT 01:00'


RE: RE: [Release] Timezone v1.01.020 by rainbow on 09-15-2006 at 09:25 AM

quote:
Originally posted by Shondoit
Thank you Mattike, I was just typing the reply when you posted yours...
But for the Netherlands there is a 1 hour time difference (have a friend in portugal)... So you should type '/tzSetGMT 01:00'

oh ok, now.....where do i type that? :$
RE: [Release] Timezone v1.01.020 by Shondoit on 09-15-2006 at 09:26 AM

Mattike already said, that you need to open a convo with your contact, and type it there (then hit enter, ofcourse)


RE: RE: [Release] Timezone v1.01.020 by rainbow on 09-15-2006 at 09:42 AM

quote:
Originally posted by Shondoit
Mattike already said, that you need to open a convo with your contact, and type it there (then hit enter, ofcourse)


ok thanks very much :D
RE: [Release] Timezone v1.01.020 by Matti on 09-15-2006 at 09:50 AM

quote:
Originally posted by Shondoit
But for the Netherlands there is a 1 hour time difference (have a friend in portugal)... So you should type '/tzSetGMT 01:00'
I was too lazy to calculate the difference, so I just gave an example. :P
RE: [Release] Timezone v1.01.021 by Shondoit on 09-23-2006 at 09:51 PM

-Finally another update-
Version 1.01.021

I fixed the autoupdate I hope, I can't test it, because I don't have that problem (It used to pop up even when you downloaded the latest version...

I also fixed the positioning when someone has a personal media set...

Still no GUI, but that will be in the next release

Check the opening post for download


RE: [Release] Timezone v1.01.021 by Blokie on 09-24-2006 at 12:06 PM

Yes the problem solved. my virusscannner gives no warning.
Now i can update it.
(Y)


RE: [Release] Timezone v1.01.021 by Shondoit on 09-24-2006 at 12:09 PM

Ha, cool :D
Actually it was a bugfix for another problem, when someone downloaded the latest version, the script would still say there was an update available

But hey, if it works... (y)


Next on the list: GUI
May take a while, 'cause I don't have much time to spare
RE: [Release] Timezone v1.01.021 by Blokie on 09-24-2006 at 12:14 PM

Yes i have read that but after the post.
I like the script.


RE: [Release] Timezone v1.01.021 by duck! on 09-24-2006 at 12:21 PM

Hi,
i like this script and a suggestion for the GUI is to have an option for a digital or analog, that will be brill because i like analog clocks;)


RE: [Release] Timezone v1.01.021 by Shondoit on 09-24-2006 at 12:34 PM

I'm sorry Mentoz, that won't be done
It would require alot of code, for one simple feature.

If someone feels like doing it, be my guest. Perhaps I will integrate it to the originial, but I doubt anyone would do it...


RE: [Release] Timezone v1.01.021 by lordy on 09-25-2006 at 11:10 AM

The script doesn't like if you type in a .5 time difference. One of my friends is half an hour behind me, I typed "/tzSetGMT -00.50" and it didn't like that at all.

It displayed NaN:0NaN


RE: [Release] Timezone v1.01.021 by Shondoit on 09-25-2006 at 11:28 AM

Eh, it should work properly...

Try typing -00:30
also -0.5 should work :S
I'm not sure why -00.50 doesn't work

I'm at school now, but you may add me on WLM, and I'll have a look at it this afternoon...


RE: [Release] Timezone v1.01.021 by lordy on 09-25-2006 at 11:34 AM

-0.5 doesn't work either... I get the same problem :<

When I type -00:30 I get a "this command is not recognised" error.


RE: [Release] Timezone v1.01.021 by Shondoit on 09-25-2006 at 11:41 AM

I'm at school now, so it will be difficult to find the problem, but possible (got nothing to do here, I'm in IT class :P)

Try typing '/tzShowDebug' and it should show the Debug Window
Select Timezone in the script combobox (top-left) and copy the piece where it says 'Settings::OnEvent_ChatWndSendMessage {'
and '$Message = /tzSetGMT -0.5' or similiar
Post it here, and I'll have a look


RE: [Release] Timezone v1.01.021 by NanaFreak on 09-25-2006 at 11:46 AM

i thought i might help out

code:
Settings:Event_ChatWndSendMessage {
    $ChatWnd = 459804
    $Message = "/tzSetGMT -00.50"
    var IsCommand = true
    var Command = "setgmt"
    var Params = "-00.50"
    //Evaluating "setgmt" with Params: "-00.50"
    var Email = "Address@Email.com"
    var GMTs = "-00.50"
    var GMT = NaN
    (GMT != 0): true
    Main::UpdateButton {
        $ChatWnd = 459804
        (ChatWnd.Contacts.Count == 1): true
        Main::AddButton {
            $ChatWnd = 459804
            var SignedIn = true
            (ChatWnds[ChatWnd.Handle] == undefined): false
            var ChildWnd = 3409034
            var Result = 1 //SetWindowPos call
            var ChildWnd.Visible = true
        }
    }
    //Command "setgmt" processed with Params: -00.50
}

RE: [Release] Timezone v1.01.021 by phalanxii on 09-25-2006 at 11:51 AM

I'm not sure if this is correct, but the problem seems to be:

code:
if(GMTs.indexOf(",") != -1) {
   var GMT = 1 * GMTs.replace(",", ".")
}
If you try setting the GMT like "1,5" it acts the same as if it is "1.5", so I assume that this "," should be changed to a ".". (Works for me at least.)
RE: [Release] Timezone v1.01.021 by NanaFreak on 09-25-2006 at 11:53 AM

yes i can confirm this :P it works if you put -0,5

atleast now we know the mistake :cheesy:


RE: [Release] Timezone v1.01.021 by Shondoit on 09-25-2006 at 11:55 AM

Thanks Jay_Jay, I found the problem now...
Also you should actually use -0,5 or -00.30 or -00:30
The latter ones don't work for now, will fix it in a minute
(got 5 min remaining :O (o))

-edit-
Fixed I hope, Jay_Jay, could you test it?
-0,5     -00.30     -00:30     should all do the same...

Download in the opening post
(at the end of the class (y))


RE: [Release] Timezone v1.01.022 by phalanxii on 09-25-2006 at 12:10 PM

Well, for me, "-0,5" works as it always has and takes off 30min. "-00.30" takes off 6min and "-00:30" does the same.

Also, on an unrelated note, I used to have the auto-update bug and it turned out to be because your earliest version of the script used a file called "Timezone.js" which set the version to something old on startup, and when I auto-updated, your main functions moved to "Main.js", but "Timezone.js" was never deleted, and hence the script thought it was still that old version. (Y)

EDIT: Debug log:

code:
Settings::OnEvent_ChatWndSendMessage {
   $ChatWnd = 2426400
   $Message = "/tzSetGMT -00:30"
   var IsCommand = true
   var Command = "setgmt"
   var Params = "-00:30"
   //Evaluating "setgmt" with Params: "-00:30"
   var Email = "email@domain.com"
   var GMTs = "-00.30"
   var GMT = -0.1
   (GMT != 0): true
   Main::UpdateButton {
      $ChatWnd = 2426400
      (ChatWnd.Contacts.Count == 1): true
      Main::AddButton {
         $ChatWnd = 2426400
         var SignedIn = true
         (ChatWnds[ChatWnd.Handle] == undefined): false
         var ChildWnd = 1967468
         var Result = 1 //SetWindowPos call
         var ChildWnd.Visible = true
      }
   }
   //Command "setgmt" processed with Params: -00:30
}
EDIT:
code:
var GMT = (Minutes != undefined) ? 1 * ("" + Hours + "." + Math.round(Minutes / 60)) : 1 * Hours
"Math.round()" rounds to the nearest integer. What you want is something like "Number.toFixed()" to round decimals. This works:
code:
("" + Hours + "." + (Minutes / 60).toFixed(2).substr(2))

RE: [Release] Timezone v1.01.023 by Shondoit on 09-25-2006 at 04:08 PM

quote:
Originally posted by phalanxii
I'm not sure if this is correct, but the problem seems to be:
code:
if(GMTs.indexOf(",") != -1) {
   var GMT = 1 * GMTs.replace(",", ".")
}
If you try setting the GMT like "1,5" it acts the same as if it is "1.5", so I assume that this "," should be changed to a ".". (Works for me at least.)
This was not the problem. If it had a comma, it would act as a normal decimal number, if it had a dot, it would act as a hour-minute pair (because GMTs.indexOf(",") != -1 would return false, the else statement is executed)
I let GMT be the hours + "." + Minutes / 60
Because Minutes divided by 60 could also be a decimal number, you'd have two dots, which is Not a Number or NaN
That's why I added the Math.round(), but it shouldn't divide by 60, but divide by 60 times 100 to convert the minutes to decimal (forgot the times 100)

-Update-
version 1.01.023
Minor bugfix


I was working on fixing this at school, so I didn't had the correct version at home. So I downloaded it, and installed it, and it also overwrote the windows.xml, which I was busy with, making the GUI. I lost it all :'( (wasn't very much, but still:S)
RE: [Release] Timezone v1.01.024 by Shondoit on 09-25-2006 at 05:08 PM

-update-
version 1.01.024
another minor bugfix :s

works correct now


RE: [Release] Timezone v1.01.024 by CookieRevised on 09-26-2006 at 06:41 AM

isn't it more logical and natural to treat numbers with dots and commas as decimal numbers, and only a double point as a hour/minute value?

Decimal numbers are written with a dot or with a comma depending on the country you're in, but time is always understood with a double point.


RE: [Release] Timezone v1.01.024 by phalanxii on 09-26-2006 at 08:13 AM

I think that was always his intention, though he had a few bugs which prevented it from working properly.

These bugs have been fixed in his latest version (v1.01.24) though, which works exactly like you suggested (dots and commas as decimal numbers, double points/colons as hour/minute values).

Keep up the good work, Shon. (Y) If you need help with the GUI, I can give it a go. :)


RE: [Release] Timezone v1.01.024 by NanaFreak on 09-26-2006 at 08:21 AM

hey sondiot i know you have said to me that you want to make it all yourself but i would be more than happy to make the GUI for you (i think i have had more experience than phalanixii)

so if you need a hand with it just give me a yell and i will be straight on it for you :cheesy: just tell me what you need and it will be done (if you can get it to work on time zones i can get them to work from that easy :P)


RE: [Release] Timezone v1.01.024 by Shondoit on 09-26-2006 at 12:18 PM

@Cookie, this is already the case... Though it wasn't in all previous version
And take your time on the PathChunk thingy, I have no rush bout that

@Phalanxii and Jay_Jay, as Jay_Jay already said, I would like to do it myself. I want to learn how to make GUIs myself. but thanks anyway


RE: [Release] Timezone v1.01.024 by CookieRevised on 09-26-2006 at 05:34 PM

quote:
Originally posted by Shondoit
@Phalanxii and Jay_Jay, as Jay_Jay already said, I would like to do it myself. I want to learn how to make GUIs myself. but thanks anyway
for the timezone thingie, take a look at how it is done in Windows.... but one thing windows doesn't do (which I thought it did :/), is highlighting the selected timezone on the map too (together with centralizing it).... all that would be great ;)


PS: one thing which is far from easy is to implement is a proper DTS setting. Despite what you might expect, the beginning and ending of DTS can (and will) change from year to year for certain timezones; so you can't have a fixed value for that, this needs to be looked up each year... (and of course DTS doesn't start and end in each DTS enabled timezone on the same time).
RE: [Release] Timezone v1.01.024 by Shondoit on 09-26-2006 at 05:47 PM

I already looked into those things...

The timezone settings are all saved in the registry
So you don't have to select your own timezone
the DTS settings are save also, even the date when it changes...
But people live in different timezones, with different date when to change to/from DST
But fortunately it is a fixed date, not octobre 24th (for example) but the third sunday of octobre...
I can save those settings for each contact, and then it'll change them automaticaly, it wouldn't be a big obstacle...

As for the map, it won't be implemented in the next version...
I'm working on positioning and settings, and I may release it then, or I'll add a list with contacts and the timezone settings for each and then release it... Depends on how much time the first two take


RE: RE: [Release] Timezone v1.01.024 by CookieRevised on 09-26-2006 at 06:29 PM

quote:
Originally posted by Shondoit
The timezone settings are all saved in the registry
So you don't have to select your own timezone
the DTS settings are save also, even the date when it changes...
I wasn't talking about the users own timezone, but about the GUI/timezone you set for your contacts. It would be very handy and nice looking if it was like in Windows I think.

quote:
Originally posted by Shondoit
But people live in different timezones, with different date when to change to/from DST. But fortunately it is a fixed date, not octobre 24th (for example) but the third sunday of octobre...
I can save those settings for each contact, and then it'll change them automaticaly, it wouldn't be a big obstacle...
that's what I meant, it is not always the third sunday of october (for example), it can be the second too or the day before. Heck, in some cases the DST isn't even activated each year (sounds strange, but it is :/). DST is reviewed each year by the countries and is able to change each year (whatever the politics decide). Of course in most countries the scheme will not change, but there are many countries where it does. Even in the US, they recently changed it (in 2005 I thought), and in 2007 it will be different than how it is now. But it is possible it will change back to the scheme used in 2005. In Chile the DST was delayed in 1987 and in 1990. In Australia the DST is very erratic.
RE: [Release] Timezone v1.01.024 by Shondoit on 09-26-2006 at 06:37 PM

All those things are saved in the registry...

My plans were like this:

You have Timezone (TZ) and your contact has TZ, now when your contact asks what timezone you're in, TZ will (try to) detect the command of someone asking your timezone. TZ will automatically reply with all the required data, and your contact's TZ will process it...
When a contact asks, which doesn't have TZ, your TZ will still reply, but the contact will just see all the info...
Once your contact's TZ receives all the data, it is automaticaly stored in the Registry and calculated...

It's not that hard to make, I just have to intepret one receiving command, and reply with the Registry data


btw, Cookie, did you found out how to use the PathChunk yet?
RE: RE: [Release] Timezone v1.01.024 by CookieRevised on 09-26-2006 at 06:55 PM

quote:
Originally posted by Shondoit
All those things are saved in the registry...
but this is not always accurate. And if you see how many people will not update (eg: SP1 to SP2) that information is less and less reliable. Many problems occur too if MS decides to update those regisrty settings (if it updates them at all that is, MS doesn't always issue an update for that), as it often simply adds new timezones instead of changing the existing timezones when erratic changes occur.

Though, it's better then nothing. Although maybe getting the settings from a website would be more accurate though.(eg: use the "The zoneinfo database")

quote:
Originally posted by Shondoit
btw, Cookie, did you found out how to use the PathChunk yet?
not looked into it yet
RE: [Release] Timezone v1.01.024 by Plan-1130 on 10-24-2006 at 09:51 PM

This is some very, very nice script as I got buddies all over the world.
Easy to use, very handy, good script :)


RE: [Release] Timezone v1.01.024 by Sana on 10-25-2006 at 04:00 AM

It's not really a GMT offset, it's an offset from your computer's local time so the command "tzSetGMT" is misleading and sometimes annoying.


RE: [Release] Timezone v1.01.024 by tank on 10-25-2006 at 04:26 PM

How and where do I write /tzMask <Mask> if I want to change am/pm to 24h clock?


RE: [Release] Timezone v1.01.024 by Spunky on 10-25-2006 at 06:31 PM

quote:
Originally posted by tank
How and where do I write /tzMask <Mask> if I want to change am/pm to 24h clock?

In a normal chat window
RE: [Release] Timezone v1.01.024 by warmth on 01-07-2007 at 04:31 AM

maybe you guys don't use messenger games... but try it with this script enable... I think there is a bug...


RE: [Release] Timezone v1.01.024 by kryp2nyt on 01-07-2007 at 02:10 PM

This is funny, but I live in Egypt, and I chat with a friend in Canada...yet no time difference??? it only displays the time of my system!!

Any idea?


RE: [Release] Timezone v1.01.024 by NanaFreak on 01-07-2007 at 02:14 PM

you have to set the time yourself... it doesnt detect the contacts time...


RE: [Release] Timezone v1.01.024 by warmth on 11-29-2007 at 01:38 AM

sorry for bring this old thread back but because of this thread tid=79455 I have remembered this script and tried to use it in WLM 8.5 but the convo time box got hidden by the color selection and menu bar icons... can you please do the fix for it??? and update the file in the first post??? thanks in advance... this is an script that will be bad to forget :(


RE: [Release] Timezone v1.01.024 by Dane on 11-29-2007 at 01:55 AM

Indeed, I'd also use this script if it were updated and fixed.  Please fix it for 8.5 :).


RE: [Release] Timezone v1.01.024 by CookieRevised on 11-29-2007 at 02:39 AM

Maybe, just maybe, there will now be a way to make such things in a proper way. I mean, the dodgy hoovering window.....

Since the new version of Plus! will have skinning features, it is maybe possible to alter the convo window in such a way that it includes an extra control of which the contents can be altered with a script. But that's for the skinners here to find out if this is possible. It would be neat though...

--

Other than that, DST should really be supported (in a proper way). See previous posts for that... Any progress with that Shondoit?


-------------------------

EDIT (off topic):

quote:
Originally posted by NanaFreak
quote:
Originally posted by Shondoit's Profile
Last Visit: 25-10-07 at 07:12 PM
somehow i dont think he come online much anymore =\
that means nothing at all. Remember I was gone since a longer time, and returned too :p
RE: [Release] Timezone v1.01.024 by NanaFreak on 11-29-2007 at 08:50 AM

quote:
Originally posted by Shondoit's Profile
Last Visit: 25-10-07 at 07:12 PM
somehow i dont think he come online much anymore =\
RE: [Release] Timezone v1.01.024 by Dane on 11-29-2007 at 09:09 AM

* Dane votes that NanaFreak takes over the project \o/


RE: [Release] Timezone v1.01.024 by markee on 11-29-2007 at 09:13 AM

quote:
Originally posted by Dane
* Dane votes that NanaFreak takes over the project \o/
He is meant to be working on web2live, and anyway he does not have the knowledge to perform such a task either.
RE: [Release] Timezone v1.01.024 by NanaFreak on 11-29-2007 at 09:33 AM

yea, im not a beta tester ]=


RE: [Release] Timezone v1.01.024 by Shondoit on 11-29-2007 at 11:24 AM

Well hey guys. I'm still alive... :)

Nice to hear some people still use my script
Unfortunately I don't have much time at hand (or had, for that matter)
I have 'bout 4 running projects and when I got some spare time I still have 3 more :P
And I need a job inbetween

Perhaps in the future I will revise this script ;)
But for the time being, I grant the more experienced scripters to update my code with credits to me and replies in this post with the updates
If no-one does, you'll just have to wait 6 months or so

I'm of to programming/rendering/designing/what not... |-)

I'll see you guys (a whole lot) later

Greetings and goodbye for now,
Shondoit


RE: [Release] Timezone v1.01.024 by warmth on 11-29-2007 at 11:37 AM

is a shame :( I hope to see somebody taking it...


RE: [Release] Timezone v1.01.024 by Matti on 11-29-2007 at 05:41 PM

OMG, Shondoit has resurrected!1!!!1!!one!1!!eleven!!1 :O
Maybe I can take over this project, it has some real potential and with a friendly GUI, it could become even better!

But first, I need to find some time for that between my work on my own scripts, gaming, (wanna-be) ET:QW map developing, chatting, making homework,... :P


RE: [Release] Timezone v1.01.024 by warmth on 11-29-2007 at 05:58 PM

quote:
Originally posted by Mattike
Maybe I can take over this project, it has some real potential and with a friendly GUI, it could become even better!
I hope you can... I know many people will love to use it...

RE: [Release] Timezone v1.01.024 by styler0001 on 06-14-2008 at 02:48 AM

Sorry to dredge this topic up once again after about 6 months of inactivity, but this is such a great script, I had to bring this up.  Here's a quote from shondoit in an e-mail I got from him when I asked if he could make a couple of changes.

The requests were an option to add a line break (which I think I saw someone else request here) as well as an option to have the text centered in the contact's time box.  One thing I didn't request at that time which I would like to ask for (I saw this in a script for Yahoo Messenger) is to have the contact's time displayed in the contact list (instead of or as well as in the chat window).

I don't have any experience in programming this type of thing, so I would like to ask if someone else can continue on with shondoit's script.  He has OK'd that in his e-mail to me.

I also can't seem to get the script to work now that I've applied the Vista service pack update.  Is anyone else having this problem?

Anyway, here's shondoit's reply to me on Jan. 2, 2008:

quote:
Originally posted by shondoit
Nice to here my script is still being used...
Unfortunately, I don't update this script anymore. I may do so in the future, but for the time being, I'm to busy with college and what not...
As for the requestst: the last time I worked on the script they weren't possible.
You could try posting it on the Messenger Plus! Live forum, maybe someone could look into it for you. Do mention I adviced you to post it, or else people will respond I'm not 'active' anymore.