Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 10/09/2019 in all areas

  1. Bored, so here is one way to do it (requires testing): HotKeySet("{ESC}", "_Exit") HotKeySet("`", "_DateTime") While 1 Sleep(100) WEnd Func _DateTime() ;~ Declare @HOUR Local $iHour = @HOUR ;~ Determine am/pm $sHour = ($iHour >= 0 And $iHour <= 11) ? "am" : "pm" ;~ Change Hour 0 to 12 $iHour = $iHour = 0 ? 12 : $iHour ;~ Change Hour to 12 Hour format $iHour = $iHour > 12 ? $iHour - 12 : $iHour ;~ Format Date/Time Local $sDateTime = StringFormat("%1i-%1i-%2i_%1i_%1i" & $sHour, @MON, @MDAY, StringRight(@YEAR, 2), $iHour, @MIN) Send($sDateTime) EndFunc Func _Exit() Exit EndFunc
    1 point
  2. Strange. I'll add a link to your post in the example if there are others who get the same problem.
    1 point
  3. This works even better for me Win10 + Win7 : #include <Constants.au3> #include <GUIConstants.au3> #include <WinAPI.au3> #include <Array.au3> #include <WinAPISysWin.au3> Opt("MustDeclareVars", 1) Global $hDesktop = WinGetHandle("Program Manager") Local $aChild = _WinAPI_EnumChildWindows ($hDesktop,False) ; _ArrayDisplay ($aChild) $hDesktop = $aChild[1][0] Global $hGui = GUICreate("Test", 200, 200, -1, -1, $WS_POPUP+$WS_CAPTION) _WinAPI_SetWindowLong($hGui, $GWL_HWNDPARENT, $hDesktop) GUISetState() While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE ExitLoop EndSwitch WEnd
    1 point
  4. From the command prompt: sc config <servicename> start= disabled So for example to disable the Print Spooler service the command would be: sc config spooler start= disabled Edit: typo
    1 point
×
×
  • Create New...