Advertisement
Najeebsk

SCRIPTS.ahk

Jul 21st, 2022
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; <COMPILER: v1.1.32.00>
  2. #NoEnv
  3. #SingleInstance, Force
  4. SetBatchLines, -1
  5. #NoTrayIcon
  6. IniRead, CMD, %A_ScriptDir%\SCRIPTS.ini, CMD
  7. IniRead, AHK, %A_ScriptDir%\SCRIPTS.ini, AHK
  8. IniRead, VBS, %A_ScriptDir%\SCRIPTS.ini, VBS
  9. IniRead, BATCH, %A_ScriptDir%\SCRIPTS.ini, BATCH
  10. IniRead, HTML, %A_ScriptDir%\SCRIPTS.ini, HTML
  11. IniRead, HELP, %A_ScriptDir%\SCRIPTS.ini, HELP
  12. IniRead, URLS, %A_ScriptDir%\SCRIPTS.ini, URLS
  13.  
  14. PATH=
  15. (Ltrim Join|
  16. SELECT PATH TO SAVE FILE|
  17. C:\Users\%A_USERNAME%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\
  18. %A_ScriptDir%\
  19. %A_WorkingDir%\
  20. %A_Desktop%\
  21. %A_Temp%\
  22. %A_WinDir%\
  23. %A_ProgramFiles%\
  24. %A_AppData%\
  25. %A_MyDocuments%\
  26. C:\
  27. D:\
  28. E:\
  29. F:\
  30. G:\
  31. )
  32. ;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  33. Gui +LastFound +AlwaysOnTop -Caption +ToolWindow +Border
  34. ;Gui -Caption +ToolWindow +Resize
  35. CustomColor = 884488
  36. Gui, Color, %CustomColor%
  37. Gui,Font,S14 Bold,Verdana
  38. ;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  39. ;Gui +ToolWindow +Resize
  40. ;Gui Margin, 0, 0
  41. ;Gui, Font, s11, Calibri
  42. Gui, Add, Text, x18 y0 w80 h10 gGuiMove 0x1
  43. Gui, Add, Edit, vTXT W760 R21
  44. Gui, Add, DropDownList, w560 gchoose vCMD2, %Work% ;Commands
  45. Gui, Add, DropDownList, x600 y520 w180  vWork gDisplay, CMD||AHK|VBS|BATCH|HTML|HELP|URLS|
  46. ;Gui, Add, Edit, gselect vTXT2 x600 y520 W150
  47. Gui, Add, DropDownList, x20 y570 w760 vPath, %PATH%
  48. Gui, Add, Edit, x20 y615 w400 vEXTE,%EXT% ;Extension
  49. gui, add, button, x20 y654 ,SUBMIT
  50. gui, add, button, Default x650 y654,RUN
  51. Gui, Show, x0 y30 w800 h710 Center, NAJEEB SCRIPT BOOK
  52. WinSet, Region, 0-0 W800 H710 R20-20,
  53. WinMove, 0, 0
  54. return
  55. GuiMove:
  56.  PostMessage, 0xA1, 2,,, A
  57. Return
  58. Display:
  59. Gui, Submit, NoHide
  60. GuiControl,, CMD2, % %Work%
  61.  
  62. return
  63. choose:
  64. gui, submit, nohide
  65. guicontrol, , TXT, %CMD2%
  66. return
  67. buttonRun:
  68. gui, submit, nohide
  69. Runwait,%comspec% /k %TXT%
  70. return
  71. ButtonSubmit:
  72.     Gui, Submit, NoHide
  73.     FileAppend, % TXT, %Path%%EXTE%
  74. return
  75. #R::Reload  ;<--  ~ Reload Script ~
  76. #S::Suspend ;<--  ~ Suspend Script ~
  77. #P::Pause   ;<--  ~ Pause Script ~
  78. #M::WinMinimize, ;<--  ~ Minimize Script ~
  79. ESC::ExitApp     ;<--  ~ Exit Script ~
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement