BBC BASIC for Windows
« homemade datetime in tasklbas/systray »

Welcome Guest. Please Login or Register.
Apr 5th, 2018, 10:57pm



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

If you require a dump of the post on your message board, please come to the support board and request it.


Thank you Conforums members.

BBC BASIC for Windows Resources
Online BBC BASIC for Windows documentation
BBC BASIC for Windows Beginners' Tutorial
BBC BASIC Home Page
BBC BASIC on Rosetta Code
BBC BASIC discussion group
BBC BASIC for Windows Programmers' Reference

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: homemade datetime in tasklbas/systray  (Read 269 times)
dynamic35
New Member
Image


member is offline

Avatar




PM

Gender: Male
Posts: 34
xx homemade datetime in tasklbas/systray
« Thread started on: Jan 24th, 2012, 6:17pm »

REM How to display eu datetime in Taskbar /systray deskbar asks Dynamic35 23.01.12 Most code written by Richard I believe
PRINT "To hide systray clock press any key"
REPEAT ipe=INKEY(1):UNTIL ipe>0
SYS "FindWindow", "Shell_TrayWnd", 0 TO htray%
SYS "FindWindowEx", htray%, 0, "TrayNotifyWnd", 0 TO hnotify%
SYS "FindWindowEx", hnotify%, 0, "TrayClockWClass", 0 TO hclock%
SYS "ShowWindow", hclock%, 0
PRINT "To show systray clock press any key"
REPEAT ipe=INKEY(1):UNTIL ipe>0
REM Show systray clock
SYS "FindWindow", "Shell_TrayWnd", 0 TO htray%
SYS "FindWindowEx", htray%, 0, "TrayNotifyWnd", 0 TO hnotify%
SYS "FindWindowEx", hnotify%, 0, "TrayClockWClass", 0 TO hclock%
SYS "ShowWindow", hclock%, 1

PRINT "To show online date and time in shortest possible EU mode, press any key"
REPEAT ipe=INKEY(1):UNTIL ipe>0



REPEAT
WAIT 100
REM ddmmyy$=LEFT$(FNfime$,8)
REM hhmmss$=RIGHT$(FNfime$,8)
PRINT TAB(1,5)FNfime$
UNTIL FALSE
END
DEF FNfime$
LOCAL D%
DIM D% LOCAL 18
SYS "GetDateFormat", 0, 0, 0, "dd.MM.yy", D%, 8
SYS "GetTimeFormat", 0, 0, 0, ",HH:mm:ss", D%+8,9
= $$D%

User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls