Advertisement
zCooki

MEGAcode

Feb 12th, 2023 (edited)
2,338
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @echo off
  2. title MEGAKOSMOS - Checking for Updates...
  3. del n.v
  4. download https://pastebin.com/raw/FPyc4YhJ n.v
  5. if not exist n.v goto men
  6. set /p new=<n.v
  7. del n.v
  8. if NOT %new%==1.2 (
  9.     cls
  10.     choice /M "MEGAKOSMOS has an update available, would you like to install it?"
  11.     if errorlevel==2 goto men
  12.     start up.bat
  13.     exit
  14. )
  15. :men
  16. title MEGAKOSMOSViewer
  17. cls
  18. echo --MEGAKOSMOS 1.2
  19. cmdMenuSel 0ff0 "Images" "Logs" "Camera Software" "User Guide" "Exit"
  20. if %errorlevel%==1 goto imgs
  21. if %errorlevel%==2 goto logs
  22. if %errorlevel%==3 (
  23.     cd..
  24.     start iCap
  25.     cd view64
  26.     goto men
  27. )
  28. if %errorlevel%==4 goto man
  29. if %errorlevel%==5 exit
  30. goto men
  31.  
  32. :imgs
  33. cd ..
  34. md imgs
  35. cd imgs
  36. start .
  37. cd ..
  38. cd view64
  39. goto men
  40.  
  41. :logs
  42. title MEGAKOSMOS - Log Menu
  43. cls
  44. cmdMenuSel 0ff0 "Select Existing" "Create/Edit Current" "Back"
  45. if %errorlevel%==1 goto findlog
  46. if %errorlevel%==2 goto currentlog
  47. if %errorlevel%==3 goto men
  48. goto logs
  49.  
  50. :findlog
  51. cd ..
  52. md logs
  53. cd logs
  54. title MEGAKOSMOS - Log Viewer
  55. cls
  56. :rey
  57. dir
  58. set /p selyr=Enter Year:
  59. if not exist %selyr% (
  60.     cls
  61.     echo Year does not exist.
  62.     echo.
  63.     echo.
  64.     goto rey
  65. )
  66. cd %selyr%
  67. cls
  68. :rem
  69. dir
  70. set /p selmnth=Enter Month:
  71. if not exist %selmnth% (
  72.     cls
  73.     echo Month does not exist.
  74.     echo.
  75.     echo.
  76.     goto rem
  77. )
  78. cd %selmnth%
  79. cls
  80. dir
  81. set /p selday=Enter Day:
  82. cls
  83. title MEGAKOSMOS - Log Viewer\%selday%.%selmnth%.%selyr:~2,2%SpaceReport.log
  84. type %selday%.%selmnth%.%selyr:~2,2%SpaceReport.log
  85. pause >nul
  86. cd ..
  87. cd ..
  88. cd ..
  89. cd view64
  90. goto logs
  91.  
  92. :currentlog
  93. cd ..
  94. md logs
  95. cd logs
  96. set ar=%date:~8,2%
  97. set year=%date:~6,4%
  98. set month=%date:~3,2%
  99. set day=%date:~0,2%
  100. md %year%
  101. cd %year%
  102. md %month%
  103. cd %month%
  104. if exist %day%.%month%.%ar%SpaceReport.log start %day%.%month%.%ar%SpaceReport.log
  105. if not exist %day%.%month%.%ar%SpaceReport.log echo .LOG > %day%.%month%.%ar%SpaceReport.log & start %day%.%month%.%ar%SpaceReport.log
  106. cd ..
  107. cd ..
  108. cd ..
  109. cd view64
  110. goto logs
  111.  
  112. :man
  113. title MEGAKOSMOS - User Guide
  114. cls
  115. cmdMenuSel 0ff0 "Calibration" "Optimising Software" "Link Telescope" "Return" "For any additional help, click here to watch the source video."
  116. if %errorlevel%==1 goto cal
  117. if %errorlevel%==2 goto opt
  118. if %errorlevel%==3 goto lin
  119. if %errorlevel%==4 goto men
  120. if %errorlevel%==5 (
  121.     start https://www.youtube.com/watch?v=OqqoFZyxzQg
  122.     goto man
  123. )
  124.  
  125. :cal
  126. title MEGAKOSMOS - User Guide\Calibration
  127. cls
  128. echo Alignment unto three stars.
  129. echo.
  130. echo Press any key to return...
  131. pause >nul
  132. goto man
  133. :opt
  134. title MEGAKOSMOS - User Guide\Optimising Software
  135. cls
  136. echo :Device: NexImage 10 (37024427)
  137. echo :Video Size and Color Format: RGB32 (1920x1080)
  138. echo :FPS: 15.00
  139. echo :Zoom Factor: 15 %
  140. echo //:Application Name: iCap 2.3
  141. echo //Use [Crtl + U] Save Image...
  142. echo //:File Name for Image Saving: img#
  143. echo.
  144. echo Press any key to return...
  145. pause >nul
  146. goto man
  147. :lin
  148. title MEGAKOSMOS - User Guide\Linking Telescope
  149. cls
  150. echo Connect USB and power unit into USB block.
  151. echo Connect telescope to mains supply or battery pack.
  152. echo.
  153. echo Press any key to return...
  154. pause >nul
  155. goto man
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement