Advertisement
Najeebsk

FILES-LISTS-MAKER2.ahk

Mar 30th, 2023 (edited)
1,293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. SetBatchLines, -1
  2. ;#NoTrayIcon
  3. SetWorkingDir %A_ScriptDir%  
  4. ;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  5. FileCreateDir, %A_ScriptDir%\DATA
  6. FileInstall , FILES-LISTS-MAKER2.ahk, %A_ScriptDir%\DATA\FILES-LISTS-MAKER2.ahk, 1
  7. FileInstall , Milikymac.msstyles, %A_ScriptDir%\DATA\Milikymac.msstyles, 1
  8. FileInstall , USkin.dll, %A_ScriptDir%\DATA\USkin.dll, 1
  9. FileSetAttrib +HS, %A_ScriptDir%\DATA\FILES-LISTS-MAKER2.ahk, 2
  10. FileSetAttrib +HS, %A_ScriptDir%\DATA\Milikymac.msstyles, 2
  11. FileSetAttrib +HS, %A_ScriptDir%\DATA\USkin.dll, 2
  12. FileSetAttrib +HS, %A_ScriptDir%\DATA, 2
  13. ;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  14. SkinForm(Apply, A_ScriptDir . "\DATA\USkin.dll", A_ScriptDir . "\DATA\Milikymac.msstyles")
  15. OnExit, GetOut
  16. ;DIR=%A_WorkingDir%
  17. Loop,%A_WorkingDir%\* ,1,1
  18. files .= (( files <> "" ) ? "|" : "" ) A_LoopFileName
  19. Gui, Add, ComboBox, Simple w550 r26 vScript gRunScript, %files%
  20. Gui, Add, Button, x10 y400 h20 w100 +Default gRunScript2, Run Script
  21. Gui,Add,Button,x120 y400 h20 w100 gSave,Current File Name
  22. Gui,Add,Button,x230 y400 h20 w100 gSave2,Save Full Path
  23. Gui,Add,Button,x340 y400 h20 w100 gSave3,Save File Name
  24. Gui,Add,Button,x450 y400 h20 w100 gSave4,Save File Hidden
  25. Gui, Show, x50 y50, Najeeb Files And Folders List
  26. Return ;                         // end of auto-execute section //
  27. RunScript:
  28. IfNotEqual, A_GuiEvent, DoubleClick, Return
  29. RunScript2:
  30. GuiControlGet, Script
  31.  Run, "%Script%"
  32. Return
  33. Save:
  34. Gui,submit,nohide
  35. Run, %Comspec% /C DIR /B/A-D/OD %CD%\* >> FILE-CURRENT-LIST.txt,,hide
  36. Return
  37.  
  38. Save2:
  39. Gui,submit,nohide
  40. Run, %Comspec% /C DIR /S /B /A %CD%\* >> FULL-PATH-LIST.txt,,hide
  41. Return
  42.  
  43. Save3:
  44. Gui,submit,nohide
  45. Loop, %A_WorkingDir%\*.*, 1, 0
  46.     {
  47.         FileAppend, %A_LoopFileName%`n, FILES-LIST.txt
  48.         Loop, %A_LoopFileName%\*.*, 1, 0
  49.             {
  50.                 FileAppend, %A_TAB%%A_LoopFileName%`n, FILES-LIST.txt
  51.             }
  52.     }
  53. Return
  54. Save4:
  55. Gui,submit,nohide
  56. Run, %Comspec% /C DIR /S /AH %CD%\* >> FF-HIDDEN-LIST.txt,,hide
  57. Return
  58. ;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  59. GetOut:
  60. GuiClose:
  61. Gui, Hide
  62. SkinForm(0)
  63. ExitApp
  64. return
  65.  
  66. SkinForm(Param1 = "Apply", DLL = "", SkinName = ""){
  67.     if(Param1 = Apply){
  68.         DllCall("LoadLibrary", str, DLL)
  69.         DllCall(DLL . "\USkinInit", Int,0, Int,0, AStr, SkinName)
  70.     }else if(Param1 = 0){
  71.         DllCall(DLL . "\USkinExit")
  72.         }
  73. }
  74. ;=-=-=-=-=-=-=- END Script-=-=-=-=-=-=-=-=-
  75. #S::Suspend
  76. #P::Pause
  77. #R::Reload
  78. ESC::ExitApp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement