Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

376 lines
18 KiB

  1. #include "..\inc\resource.h"
  2. #include "rc.h"
  3. LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
  4. /////////////////////////////////////////////////////////////////////////////
  5. //
  6. // Dialogs
  7. //
  8. general_page DIALOG DISCARDABLE 0, 0, 253, 218
  9. STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
  10. CAPTION "Task"
  11. FONT 8, "MS Shell Dlg"
  12. BEGIN
  13. ICON "",idc_icon,7,7,18,20
  14. LTEXT "task name",lbl_job_name,37,11,178,9
  15. CONTROL "",-1,"Static",SS_BLACKFRAME | SS_SUNKEN,7,34,239,1
  16. LTEXT "&Run:",lbl_app_name,7,45,44,9
  17. EDITTEXT txt_app_name,61,42,186,14,ES_AUTOHSCROLL
  18. #if defined(_CHICAGO_)
  19. PUSHBUTTON "&Browse...",btn_browse,136,60,53,14
  20. PUSHBUTTON "&Settings...",btn_settings,193,60,53,14
  21. #else
  22. PUSHBUTTON "&Browse...",btn_browse,193,60,53,14
  23. #endif
  24. LTEXT "S&tart in:",lbl_workingdir,7,86,41,9
  25. EDITTEXT txt_workingdir,61,82,186,14,ES_AUTOHSCROLL
  26. LTEXT "&Comments:",lbl_comments,7,102,36,8
  27. EDITTEXT txt_comments,61,100,186,32,ES_MULTILINE | ES_AUTOHSCROLL |
  28. ES_WANTRETURN
  29. CONTROL "",-1,"Static",SS_BLACKFRAME | SS_SUNKEN,7,139,239,1
  30. LTEXT "R&un as:",lbl_run_as,7,150,45,9
  31. EDITTEXT txt_run_as,61,147,93,14,ES_AUTOHSCROLL
  32. PUSHBUTTON "&Set password...",btn_passwd,163,147,83,14,WS_DISABLED
  33. CONTROL "&Enabled (scheduled task runs at specified time)",
  34. chk_enable_job,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,
  35. 203,190,9
  36. END
  37. set_passwd_dlg DIALOG DISCARDABLE 0, 0, 219, 82
  38. STYLE DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
  39. CAPTION "Set Password"
  40. FONT 8, "MS Shell Dlg"
  41. BEGIN
  42. LTEXT "&Password:",lbl_sp_passwd,9,16,49,8
  43. EDITTEXT edt_sp_passwd,94,10,111,15,ES_PASSWORD | ES_AUTOHSCROLL |
  44. WS_GROUP | WS_TABSTOP
  45. LTEXT "&Confirm password:",lbl_sp_cfrmpasswd,9,34,58,8
  46. EDITTEXT edt_sp_cfrmpasswd,94,30,111,14,ES_PASSWORD |
  47. ES_AUTOHSCROLL
  48. DEFPUSHBUTTON "OK",IDOK,47,58,50,14
  49. PUSHBUTTON "Cancel",IDCANCEL,122,58,50,14
  50. END
  51. set_account_info_dlg DIALOG DISCARDABLE 0, 0, 236, 98
  52. STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
  53. CAPTION "Set Account Information"
  54. FONT 8, "MS Shell Dlg"
  55. BEGIN
  56. LTEXT "R&un as:",lbl_sa_run_as,9,13,45,9
  57. EDITTEXT txt_sa_run_as,113,10,110,14,ES_AUTOHSCROLL
  58. LTEXT "&Password:",lbl_sa_passwd,9,36,49,8
  59. EDITTEXT edt_sa_passwd,113,32,111,15,ES_PASSWORD | ES_AUTOHSCROLL |
  60. WS_GROUP | WS_TABSTOP
  61. LTEXT "&Confirm password:",lbl_sa_cfrmpasswd,9,53,58,8
  62. EDITTEXT edt_sa_cfrmpasswd,113,50,111,14,ES_PASSWORD |
  63. ES_AUTOHSCROLL
  64. DEFPUSHBUTTON "OK",IDOK,52,75,50,14
  65. PUSHBUTTON "Cancel",IDCANCEL,133,75,50,14
  66. END
  67. schedule_page DIALOG DISCARDABLE 0, 0, 1255, 218
  68. STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
  69. CAPTION "Schedule"
  70. FONT 8, "MS Shell Dlg"
  71. BEGIN
  72. ICON "",idc_icon,7,7,20,20
  73. LTEXT "Text",txt_trigger,37,11,205,33
  74. COMBOBOX cbx_triggers,7,9,239,66,CBS_DROPDOWNLIST |
  75. WS_VSCROLL | WS_TABSTOP
  76. PUSHBUTTON "&New",btn_new,140,26,50,14
  77. PUSHBUTTON "&Delete",btn_delete,195,26,50,14
  78. CONTROL "",-1,"Static",SS_BLACKFRAME | SS_SUNKEN,7,49,239,1
  79. LTEXT "&Schedule Task:",-1,7,58,65,10
  80. COMBOBOX cbx_trigger_type,7,69,76,70,CBS_DROPDOWNLIST |
  81. WS_VSCROLL | WS_TABSTOP
  82. LTEXT "S&tart time:",-1,88,58,57,10
  83. CONTROL "",dp_start_time,DATETIMEPICK_CLASS,WS_TABSTOP |
  84. WS_VISIBLE | WS_CHILD | DTS_TIMEFORMAT,88,69,68,14
  85. PUSHBUTTON "Ad&vanced...",btn_advanced,161,68,52,14
  86. GROUPBOX "Schedule Task Daily",grp_daily,7,89,239,39
  87. LTEXT "&Every",daily_lbl_every,17,106,22,9
  88. EDITTEXT daily_txt_every,42,104,44,14,ES_AUTOHSCROLL|ES_NUMBER
  89. CONTROL "",daily_spin_every,"msctls_updown32",UDS_SETBUDDYINT |
  90. UDS_ALIGNRIGHT | UDS_AUTOBUDDY | UDS_ARROWKEYS |
  91. UDS_NOTHOUSANDS,77,104,11,14
  92. LTEXT "day(s)",daily_lbl_days,92,106,22,9
  93. GROUPBOX "Schedule Task Weekly",grp_weekly,257,89,239,84
  94. LTEXT "&Every",weekly_lbl_every,263,106,22,9
  95. EDITTEXT weekly_txt_every,287,104,42,14,ES_AUTOHSCROLL |
  96. ES_NUMBER
  97. CONTROL "Spin1",weekly_spin_every,"msctls_updown32",
  98. UDS_SETBUDDYINT | UDS_ALIGNRIGHT | UDS_AUTOBUDDY |
  99. UDS_ARROWKEYS | UDS_NOTHOUSANDS,318,103,11,14
  100. LTEXT "week(s) on:",weekly_lbl_weeks_on,337,106,44,9
  101. CONTROL "Mon",chk_mon,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,384,
  102. 106,48,9
  103. CONTROL "Tue",chk_tue,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,384,
  104. 118,48,9
  105. CONTROL "Wed",chk_wed,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,384,
  106. 130,48,9
  107. CONTROL "Thu",chk_thu,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,384,
  108. 142,48,9
  109. CONTROL "Fri",chk_fri,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,384,
  110. 154,48,9
  111. CONTROL "Sat",chk_sat,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,438,
  112. 106,48,9
  113. CONTROL "Sun",chk_sun,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,438,
  114. 118,48,9
  115. GROUPBOX "Schedule Task Monthly ",grp_monthly,507,89,239,81
  116. CONTROL "Da&y",md_rb,"Button",BS_AUTORADIOBUTTON | WS_TABSTOP |
  117. WS_GROUP, 513,106,28,10
  118. CONTROL "Th&e",dow_rb,"Button",BS_AUTORADIOBUTTON, 513,124,28,10
  119. EDITTEXT md_txt,547,104,30,14,ES_AUTOHSCROLL | ES_NUMBER | WS_GROUP
  120. CONTROL "Spin1",md_spin,"msctls_updown32",UDS_SETBUDDYINT |
  121. UDS_ALIGNRIGHT | UDS_AUTOBUDDY | UDS_ARROWKEYS |
  122. UDS_NOTHOUSANDS,569,104,11,12
  123. LTEXT "of the month(s)",md_lbl,580,107,70,10
  124. COMBOBOX dow_cbx_week,547,123,52,66,CBS_DROPDOWNLIST | WS_VSCROLL |
  125. WS_TABSTOP
  126. COMBOBOX dow_cbx_day,604,123,69,88,CBS_DROPDOWNLIST | WS_VSCROLL |
  127. WS_TABSTOP
  128. LTEXT "of the month(s)",dow_lbl,676,125,54,10
  129. PUSHBUTTON "Select &Months",btn_sel_months,513,147,60,14
  130. GROUPBOX "Schedule Task Once",grp_once,757,89,239,41
  131. LTEXT "&Run on:",once_lbl_run_on,769,105,45,9
  132. CONTROL "",once_dp_date,DATETIMEPICK_CLASS,WS_TABSTOP |
  133. WS_VISIBLE | WS_CHILD | DTS_LONGDATEFORMAT,849,104,130,14
  134. GROUPBOX "Schedule Task When Idle",grp_idle,1007,89,239,39
  135. LTEXT "&When the computer has been idle for:",idle_lbl_when,1017,106,122,9
  136. EDITTEXT sch_txt_idle_min,1146,104,30,14,ES_AUTOHSCROLL|ES_NUMBER
  137. CONTROL "",sch_spin_idle_min,"msctls_updown32",UDS_SETBUDDYINT |
  138. UDS_ALIGNRIGHT | UDS_AUTOBUDDY | UDS_ARROWKEYS |
  139. UDS_NOTHOUSANDS,1144,104,11,14
  140. LTEXT "minute(s)",idle_lbl_mins,1184,106,34,9
  141. CONTROL "Show m&ultiple schedules.",
  142. chk_show_multiple_scheds,"Button",BS_AUTOCHECKBOX |
  143. BS_TOP | BS_MULTILINE | WS_GROUP | WS_TABSTOP,7,203,
  144. 231,18
  145. END
  146. select_month_dlg DIALOG DISCARDABLE 0, 0, 251, 153
  147. STYLE DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_CAPTION | WS_SYSMENU
  148. CAPTION "Select Months"
  149. FONT 8, "MS Shell Dlg"
  150. BEGIN
  151. CONTROL "&January",chk_jan,"Button",BS_AUTOCHECKBOX |
  152. WS_GROUP | WS_TABSTOP,21,26,41,10
  153. CONTROL "&February",chk_feb,"Button",BS_AUTOCHECKBOX |
  154. WS_TABSTOP,21,43,43,10
  155. CONTROL "&March",chk_mar,"Button",BS_AUTOCHECKBOX |
  156. WS_TABSTOP,21,60,36,10
  157. CONTROL "&April",chk_apr,"Button",BS_AUTOCHECKBOX |
  158. WS_TABSTOP,21,77,29,10
  159. CONTROL "Ma&y",chk_may,"Button",BS_AUTOCHECKBOX |
  160. WS_TABSTOP,21,94,29,10
  161. CONTROL "J&une",chk_jun,"Button",BS_AUTOCHECKBOX |
  162. WS_TABSTOP,21,111,31,10
  163. CONTROL "Ju&ly",chk_jul,"Button",BS_AUTOCHECKBOX |
  164. WS_TABSTOP,149,26,28,10
  165. CONTROL "Au&gust",chk_aug,"Button",BS_AUTOCHECKBOX |
  166. WS_TABSTOP,149,43,38,10
  167. CONTROL "&September",chk_sep,"Button",BS_AUTOCHECKBOX |
  168. WS_TABSTOP,149,60,50,10
  169. CONTROL "&October",chk_oct,"Button",BS_AUTOCHECKBOX |
  170. WS_TABSTOP,149,77,41,10
  171. CONTROL "&November",chk_nov,"Button",BS_AUTOCHECKBOX |
  172. WS_TABSTOP,149,94,49,10
  173. CONTROL "&December",chk_dec,"Button",BS_AUTOCHECKBOX |
  174. WS_TABSTOP,149,111,49,10
  175. DEFPUSHBUTTON "OK",IDOK,57,132,50,14,WS_GROUP
  176. PUSHBUTTON "Cancel",IDCANCEL,129,132,50,14
  177. LTEXT "Please select the months you would like the task to run.",
  178. lbl_sel_months,7,8,176,8
  179. END
  180. settings_page DIALOG DISCARDABLE 0, 0, 253, 218
  181. STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
  182. CAPTION "Settings"
  183. FONT 8, "MS Shell Dlg"
  184. BEGIN
  185. GROUPBOX "Scheduled Task Completed",grp_task_completed,8,6,238,44
  186. CONTROL "&Delete the task if it is not scheduled to run again.",
  187. chk_delete_when_done,"Button",BS_AUTOCHECKBOX | WS_GROUP |
  188. WS_TABSTOP,16,17,224,9
  189. CONTROL "S&top the task if it runs for:",chk_stop_after,"Button",
  190. BS_AUTOCHECKBOX | WS_TABSTOP,16,33,91,10
  191. LTEXT "&hour(s)",lbl_hours,149,33,24,9
  192. EDITTEXT txt_stop_after_hr,109,31,37,13,ES_AUTOHSCROLL |
  193. ES_NUMBER
  194. CONTROL "Spin1",spin_stop_after_hr,"msctls_updown32",
  195. UDS_SETBUDDYINT | UDS_ALIGNRIGHT | UDS_AUTOBUDDY |
  196. UDS_ARROWKEYS | UDS_NOTHOUSANDS,135,32,11,11
  197. LTEXT "&minute(s).",lbl_min,212,33,30,9
  198. EDITTEXT txt_stop_after_min,172,31,37,13,ES_AUTOHSCROLL |
  199. ES_NUMBER
  200. CONTROL "Spin1",spin_stop_after_min,"msctls_updown32",
  201. UDS_SETBUDDYINT | UDS_ALIGNRIGHT | UDS_AUTOBUDDY |
  202. UDS_ARROWKEYS | UDS_NOTHOUSANDS,198,32,11,11
  203. GROUPBOX "Idle Time",grp_idle_time,8,56,238,89
  204. CONTROL "&Only start the task if the computer has been idle for at least:",
  205. chk_start_on_idle,"Button",BS_AUTOCHECKBOX | WS_GROUP |
  206. WS_TABSTOP,16,66,207,9
  207. LTEXT "m&inute(s)",txt_idle_minutes,72,82,34,9
  208. EDITTEXT txt_idle_min,31,81,37,13,ES_AUTOHSCROLL | ES_NUMBER
  209. CONTROL "Spin1",spin_idle_min,"msctls_updown32",UDS_SETBUDDYINT |
  210. UDS_ALIGNRIGHT | UDS_AUTOBUDDY | UDS_ARROWKEYS |
  211. UDS_NOTHOUSANDS,57,82,11,11
  212. LTEXT "If the computer has not been idle that long, retry for up to:",
  213. lbl_idle_deadline1,31,99,211,8
  214. LTEXT "mi&nute(s)",lbl_idle_deadline2,72,111,34,9
  215. EDITTEXT txt_idle_deadline,31,111,37,13,ES_AUTOHSCROLL |
  216. ES_NUMBER
  217. CONTROL "Spin2",spin_idle_deadline,"msctls_updown32",
  218. UDS_SETBUDDYINT | UDS_ALIGNRIGHT | UDS_AUTOBUDDY |
  219. UDS_ARROWKEYS | UDS_NOTHOUSANDS,57,111,11,11
  220. CONTROL "Stop the task if the computer &ceases to be idle.",
  221. chk_stop_if_not_idle,"Button",BS_AUTOCHECKBOX |
  222. WS_TABSTOP,16,127,207,9
  223. GROUPBOX "Power Management",grp_power_management,8,151,238,62
  224. CONTROL "Don't start the task if the computer is running on &batteries.",
  225. chk_dont_start_if_on_batteries,"Button",BS_AUTOCHECKBOX |
  226. WS_GROUP | WS_TABSTOP,16,163,220,9
  227. CONTROL "Stop the task if batter&y mode begins.",
  228. chk_kill_if_going_on_batteries,"Button",BS_AUTOCHECKBOX |
  229. WS_TABSTOP,16,179,220,9
  230. CONTROL "&Wake the computer to run this task.",
  231. chk_system_required,"Button",BS_AUTOCHECKBOX |
  232. WS_TABSTOP,16,195,220,9
  233. END
  234. dlg_advanced DIALOG DISCARDABLE 0, 0, 241, 165
  235. STYLE DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_CAPTION | WS_SYSMENU
  236. CAPTION "Advanced Schedule Options"
  237. FONT 8, "MS Shell Dlg"
  238. BEGIN
  239. LTEXT "&Start Date:",lbl_start_date,21,11,51,10
  240. CONTROL "",dp_start_date,DATETIMEPICK_CLASS,WS_TABSTOP |
  241. WS_VISIBLE | WS_CHILD | DTS_LONGDATEFORMAT,102,10,130,14
  242. CONTROL "&End Date:",chk_end_date,"Button",BS_AUTOCHECKBOX |
  243. WS_TABSTOP,9,28,51,10
  244. CONTROL "",dp_end_date,DATETIMEPICK_CLASS,WS_TABSTOP |
  245. WS_VISIBLE | WS_CHILD | DTS_LONGDATEFORMAT,102,28,130,14
  246. GROUPBOX "",grp_repeat_until,9,51,223,86
  247. CONTROL "&Repeat task",chk_repeat_task,"Button",BS_AUTOCHECKBOX |
  248. WS_TABSTOP,17,50,56,11
  249. LTEXT "E&very:",lbl_every,19,66,21,8
  250. EDITTEXT txt_repeat_task,45,63,43,13,ES_AUTOHSCROLL | ES_NUMBER
  251. CONTROL "Spin1",spin_repeat_task,"msctls_updown32",
  252. UDS_SETBUDDYINT | UDS_ALIGNRIGHT | UDS_AUTOBUDDY |
  253. UDS_ARROWKEYS | UDS_NOTHOUSANDS,77,63,11,11
  254. COMBOBOX cbx_time_unit,94,63,63,41,CBS_DROPDOWNLIST | WS_VSCROLL |
  255. WS_TABSTOP
  256. LTEXT "Until:",lbl_until,19,85,17,8
  257. CONTROL "&Time:",rb_end_time,"Button",BS_AUTORADIOBUTTON |
  258. WS_GROUP | WS_TABSTOP,45,84,41,11
  259. CONTROL "&Duration:",rb_end_duration,"Button",BS_AUTORADIOBUTTON,
  260. 45,101,42,11
  261. CONTROL "",dp_end_time,"SysDateTimePick32",DTS_UPDOWN | WS_GROUP |
  262. WS_TABSTOP | 0x8,94,82,65,13
  263. LTEXT "&hour(s)",lbl_hours,136,103,22,8
  264. EDITTEXT txt_end_duration_hr,94,100,39,13,ES_AUTOHSCROLL |
  265. ES_NUMBER
  266. CONTROL "Spin1",spin_end_duration_hr,"msctls_updown32",
  267. UDS_SETBUDDYINT | UDS_ALIGNRIGHT | UDS_AUTOBUDDY |
  268. UDS_ARROWKEYS | UDS_NOTHOUSANDS,122,101,11,11
  269. LTEXT "&minute(s)",lbl_min,199,103,29,8
  270. EDITTEXT txt_end_duration_min,160,101,36,13,ES_AUTOHSCROLL |
  271. ES_NUMBER
  272. CONTROL "Spin1",spin_end_duration_min,"msctls_updown32",
  273. UDS_SETBUDDYINT | UDS_ALIGNRIGHT | UDS_AUTOBUDDY |
  274. UDS_ARROWKEYS | UDS_NOTHOUSANDS,185,102,11,11
  275. CONTROL "If the task is still running, st&op it at this time.",
  276. chk_terminate_at_end,"Button",BS_AUTOCHECKBOX |
  277. WS_TABSTOP,45,119,169,10
  278. DEFPUSHBUTTON "OK",IDOK,130,144,50,14
  279. PUSHBUTTON "Cancel",IDCANCEL,183,144,50,14
  280. END
  281. STRINGTABLE
  282. BEGIN
  283. IDS_ONCE "Once"
  284. IDS_SUNDAY "Sunday"
  285. IDS_MONDAY "Monday"
  286. IDS_TUESDAY "Tuesday"
  287. IDS_WEDNESDAY "Wednesday"
  288. IDS_THURSDAY "Thursday"
  289. IDS_FRIDAY "Friday"
  290. IDS_SATURDAY "Saturday"
  291. IDS_EXE "exe"
  292. IDS_PROGRAMSFILTER "Programs\0*.exe;*.pif;*.com;*.bat;*.cmd\0All Files (*.*)\0*.*\0"
  293. IDS_BROWSE "Browse"
  294. IDS_AT_STARTUP "At System Startup"
  295. IDS_AT_LOGON "At Logon"
  296. IDS_NO_TRIGGERS "<Task not scheduled>"
  297. END
  298. // ** Important **
  299. //
  300. // Ensure error strings defined here do not exceed the buffer size manifest,
  301. // ERROR_STRING_BUFFER_SIZE, defined in errhdlr.cxx.
  302. //
  303. // Also, be sure to double the string size in anticipation of localization.
  304. //
  305. STRINGTABLE
  306. BEGIN
  307. IERR_ENDDATE_LT_STARTDATE "The end date must be later than the start date"
  308. IERR_DURATION_LT_INTERVAL "The duration must be greater than the repetition interval"
  309. IERR_PASSWORD "The passwords do not match. Please try again"
  310. IERR_OUT_OF_MEMORY "Insufficient memory to continue. Please close some applications and try again"
  311. IERR_INTERNAL_ERROR "An unrecoverable error has occured. Unable to continue"
  312. IERR_GENERAL_PAGE_INIT "General page initialization failed"
  313. IERR_SCHEDULE_PAGE_INIT "Schedule page initialization failed"
  314. IERR_SETTINGS_PAGE_INIT "Settings page initialization failed"
  315. IERR_INVALID_DAYILY_EVERY "The number in 'Every _ day(s)' must be at least 1"
  316. IERR_INVALID_WEEKLY_EVERY "The number in 'Every _ week(s)' must be at least 1"
  317. IERR_MONTHLY_DATE_LT0 "The day of the month cannot be less than 1"
  318. IERR_MONTHLY_DATE_GT31 "The day of the month cannot be greater than 31"
  319. IERR_MONTHLY_DATE_INVALID "The day of the month specified does not occur in any of the months specified"
  320. IERR_INVALID_WEEKLY_TASK "Invalid weekly task. Ensure one or more days are checked"
  321. IERR_INVALID_MONTHLY_TASK "Invalid monthly task. Ensure one or more months are checked"
  322. IERR_FILE_NOT_FOUND "The system cannot find the file specified"
  323. IERR_APP_NOT_FOUND "Cannot find a file named '%s'. Try using the Browse button on the Tasks page to locate the application. Application parameters may only appear in the 'Parameters' control."
  324. IERR_ACCESS_DENIED "Access is denied"
  325. // This message should match the wording of the chk_stop_after control above
  326. IERR_MAXRUNTIME "The time in 'Stop the task if it runs for _' should be greater than zero"
  327. IERR_SECURITY_READ_ERROR "An error has occurred attempting to retrieve task account information. You may continue editing the task object, but will be unable to change task account information"
  328. IERR_ACCOUNTNAME "No account name specified. Please specify an account name"
  329. END