| View previous topic :: View next topic |
| Author |
Message |
M^ck^y
Joined: 29 Nov 2007 Posts: 30
|
Posted: Thu Aug 28, 2008 7:22 am Post subject: Detecting user's default time format (regional) |
|
|
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 |
|
 |
rodfell
Joined: 05 Oct 2007 Posts: 57 Location: Bundaberg (Bundy), Qld, Australia
|
Posted: Thu Aug 28, 2008 7:35 am Post subject: |
|
|
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 |
|
 |
|