Advertisement
djvj

kill taskbar test

Apr 14th, 2016
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.42 KB | None | 0 0
  1. #Include, %A_ScriptDir%\Lib\Classes\Util\MiscUtils.ahk
  2. #Include, %A_ScriptDir%\Lib\Classes\Util\Environment\StringUtils.ahk
  3. #Include, %A_ScriptDir%\Lib\Classes\Util\File\File.ahk
  4. #Include, %A_ScriptDir%\Lib\Classes\Util\File\Process.ahk
  5. #Include, %A_ScriptDir%\Lib\Classes\Util\UI\Control.ahk
  6. #Include, %A_ScriptDir%\Lib\Classes\Util\UI\Window.ahk
  7. #Include, %A_ScriptDir%\Lib\Classes\Util\UI\WindowTitle.ahk
  8. #Include, %A_ScriptDir%\Module Extensions\VA_Extension.ahk
  9. #Include, %A_ScriptDir%\Module Extensions\VA.ahk
  10. Hotkey, Esc, closescript
  11.  
  12.  
  13. MiscUtils.TaskBarKill("off")
  14. ; msgbox Taskbar killed
  15. Sleep, 1000
  16. MiscUtils.TaskBarKill("on")
  17. ExitApp
  18.  
  19. ScriptError(txt,a="") {
  20. msgbox % txt
  21. }
  22.  
  23. GetFullName( fn ) {
  24. ; http://msdn.microsoft.com/en-us/library/Aa364963
  25. ; Static buf, i ; removed i from static because it was always using HS's root folder as the working dir which threw off all relative paths
  26. Static buf
  27. ; If !i
  28. i := VarSetCapacity(buf, 512)
  29. DllCall("GetFullPathNameA", "str", fn, "uint", 512, "str", buf, "str*", 0)
  30. Return buf
  31. }
  32. GetOSVersion() {
  33. VarSetCapacity(v,148), NumPut(148,v)
  34. DllCall("GetVersionEx", "uint", &v)
  35. ; Return formatted version string similar to A_AhkVersion.
  36. ; Assume build number will never be more than 4 characters.
  37. return NumGet(v,4) ; major
  38. . "." NumGet(v,8) ; minor
  39. . "." SubStr("0000" NumGet(v,12), -3) ; build
  40. }
  41.  
  42. closescript:
  43. ExitApp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement