Advertisement
CivReborn

AHK Gui Mini Tut 21

Apr 27th, 2017
1,683
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*                                DESCRIPTION
  2. ;$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
  3. ;$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
  4. ;$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
  5.  
  6.         Written By: Hellbent aka. CivReborn
  7.         Date Started: April 27th, 2017
  8.         Date Of Last Edit: April 27th, 2017
  9.         PasteBin Save: https://pastebin.com/ZvZGSv6J
  10.        
  11.         Description Of Program:
  12.        
  13.             This script is part of the Gui mini tutorial #21
  14.         This script will help to show the viewer how to save the contents (Variables) of a Gui to a file
  15.         and then load them back into the Gui using different methods to do so.
  16. */
  17.  
  18.  
  19. ;                                SETTINGS
  20. ;$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
  21. ;$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
  22. ;$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
  23.  
  24. #SingleInstance,Force
  25. SetWorkingDir,%A_ScriptDir%
  26. FileCreateDir, Temp File Folder For Gui Mini Tut 21
  27. SetWorkingDir,Temp File Folder For Gui Mini Tut 21
  28.  
  29. ;                               VARIABLE LIST
  30. ;$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
  31. ;$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
  32. ;$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
  33. /*
  34. RAD_Select_Bulk
  35. RAD_Select_Delimited
  36. EB_Bulk_Save
  37. CB_Auto_Save
  38. EB_DS_1
  39. EB_DS_2
  40. EB_DS_3
  41. EB_DS_4
  42. EB_DS_5
  43. */
  44.  
  45.  
  46. ;                                GUI LAYOUT
  47. ;$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
  48. ;$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
  49. ;$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
  50.  
  51. Gui, Color, Black,FFB1B1
  52.  
  53. Gui, Add, Radio,cAqua x40 y20 vRAD_Select_Bulk gSelect_Section,Bulk Save
  54. Gui, Add, Radio,cAqua x+30 vRAD_Select_Delimited gSelect_Section,Delimited Save
  55.  
  56. ;      Bulk Area
  57. ;-----------------------------------------------------------------------------
  58. Gui, Add, Groupbox, x5 y40 w290 h215,
  59. Gui, Add, Edit, xp+5 yp+10 w280 r10 Section Disabled vEB_Bulk_Save gBulk_Text_Edit,
  60. Gui, Add, Checkbox,cWhite xs+30  Disabled Checked vCB_Auto_Save gSubmit_All,Auto Save
  61. Gui, Add, Button, x+30 h13 w100 Disabled vButton1 gSave_Bulk_To_File,Press To Save
  62. Gui, Add, Button, xs+6 yp+30 w130 h20 Disabled vButton2 gLoad_Bulk_File,Press To Load
  63. Gui, Add, Button, x+10 w130 h20 Disabled vButton3 gUpdate_Edit,Press To Update
  64.  
  65. ;    Delimited Area
  66. ;----------------------------------------------------------------------------
  67. Gui, Add, Groupbox, x5 y+10 w290 h180 ,
  68. Gui, Add, Text,cLime xp+10 yp+20 w20 h20 Section Border Center,1:
  69. Gui, Add, Edit, x+20  w220 h20 Disabled vEB_DS_1 gSubmit_All,
  70. Gui, Add, Text,cB400FF xs  w20 h20 Border Center,2:
  71. Gui, Add, Edit, x+20  w220 h20 Disabled vEB_DS_2 gSubmit_All,
  72. Gui, Add, Text,cLime xs  w20 h20 Border Center,3:
  73. Gui, Add, Edit, x+20  w220 h20 Disabled vEB_DS_3 gSubmit_All,
  74. Gui, Add, Text,cB400FF xs  w20 h20 Border Center,4:
  75. Gui, Add, Edit, x+20  w220 h20 Disabled vEB_DS_4 gSubmit_All,
  76. Gui, Add, Text,cLime xs  w20 h20 Border Center,5:
  77. Gui, Add, Edit, x+20  w220 h20 Disabled vEB_DS_5 gSubmit_All,
  78. Gui, Add, Button, xs y+10 w125 h20 Disabled vButton4 gSave_Delimited_To_File,Save To File
  79. Gui, Add, Button, x+20 w125 h20 Disabled vButton5 gLoad_Delimited_File,Load From File
  80.  
  81. ;-------------------------------------------------------------------------
  82.  
  83. Gui, Add, Button, x10 y+10 w135 h30 Disabled vButton6 gRun_Bulk_Text_File,Display Bulk.txt
  84. Gui, Add, Button, x+10  w135 h30 Disabled vButton7 gRun_Delimited_File,Display Delimited.txt
  85. Gui, Add, Button, x10 w280 h18 gReload_Gui,Reload
  86.  
  87. Gui,+AlwaysOnTop
  88. Gui, Show, w300 h500,
  89.  
  90. Gui, Submit, NoHide
  91. return
  92.  
  93. ;                                LABELS
  94. ;$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
  95. ;$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
  96. ;$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
  97.  
  98. GuiClose:
  99.     ExitApp
  100.  
  101. Reload_Gui:
  102.     return
  103.  
  104. Submit_All:
  105.     return
  106.  
  107. Select_Section:
  108.     return
  109.  
  110. Bulk_Text_Edit:
  111.     return
  112.  
  113. Save_Bulk_To_File: 
  114.     return
  115.  
  116. Load_Bulk_File:
  117.     return
  118.    
  119. Update_Edit:   
  120.     return
  121.    
  122. Save_Delimited_To_File:
  123.     return
  124.  
  125. Load_Delimited_File:   
  126.     return
  127.  
  128. Run_Bulk_Text_File:
  129.     return
  130.    
  131. Run_Delimited_File:
  132.     return
  133.  
  134. ;                                HOTKEYS
  135. ;$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
  136. ;$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
  137. ;$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
  138.  
  139. Esc::ExitApp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement