AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Detecting user's default time format (regional)

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
M^ck^y



Joined: 29 Nov 2007
Posts: 30

PostPosted: Thu Aug 28, 2008 7:22 am    Post subject: Detecting user's default time format (regional) Reply with quote

Found under Control Panel> Regional Options > Customize> Time TAB> is the default Time Format.

how to detect which one is being used by the user?

I'm having to automate a date time field in a form for work and input to the date picker depends on time format of the user, specially AM and PM. and controlset doesn't work there. Some of the staffs have customised their default time format for quicker inputs. In order for autohotkey to work 100%, i need to detect their default time format prior to sending the right keystrokes.

please help, any advise or directions appreciated.
Back to top
View user's profile Send private message
rodfell



Joined: 05 Oct 2007
Posts: 57
Location: Bundaberg (Bundy), Qld, Australia

PostPosted: Thu Aug 28, 2008 7:35 am    Post subject: Reply with quote

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Control Panel\International]
"sTimeFormat"="h:mm:ss tt"
Code:
RegRead,format,HKEY_CURRENT_USER,Control Panel\International,sTimeFormat
msgbox %format%
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group