Advertisement
Guest User

Untitled

a guest
Aug 2nd, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
  2. ; #Warn  ; Enable warnings to assist with detecting common errors.
  3. SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
  4. SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
  5.  
  6. SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
  7. SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
  8. ; Generated by AutoGUI 2.6.0
  9. #SingleInstance Force
  10. #NoEnv
  11. SetWorkingDir %A_ScriptDir%
  12. SetBatchLines -1
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19. Gui Add, Button, gbtn3 x168 y80 w80 h23, Copy3
  20. Gui Add, Button, gbtn2 x168 y48 w80 h23, Copy2
  21. Gui Add, Button, gbtn1 x168 y16 w80 h23, Copy1
  22. Gui Add, Edit, vEdtValue4 x0 y112 w155 h21, benne.andersson@gmail.com
  23. Gui Add, Edit, vEdtValue5 x0 y144 w153 h21, test
  24. Gui Add, Edit, vEdtValue6 x0 y176 w153 h21, 6
  25. Gui Add, Edit, vEdtValue7 x0 y208 w152 h21, 7
  26. Gui Add, Edit, vEdtValue3 x0 y80 w155 h21, benne123
  27. Gui Add, Edit, vEdtValue2 x0 y48 w154 h21, wdcwnmz7
  28. Gui Add, Edit, vEdtValue1 x0 y16 w155 h21, heknume9
  29. Gui Add, Button, gbtn4 x168 y112 w80 h23, Copy4
  30. Gui Add, Button, gbtn5 x168 y144 w80 h23, Copy5
  31. Gui Add, Button, gbtn6 x168 y176 w80 h23, Copy6
  32. Gui Add, Button, gbtn7 x168 y208 w80 h23, Copy7
  33. Gui Add, Edit, vEdtValue8 x0 y240 w152 h21, 8
  34. Gui Add, Edit, vEdtValue9 x0 y272 w152 h21, 9
  35. Gui Add, Edit, vEdtValue10 x0 y304 w152 h21, 10
  36. Gui Add, Button, gbtn8 x168 y240 w80 h23, Copy8
  37. Gui Add, Button, gbtn9 x168 y272 w80 h23, Copy9
  38. Gui Add, Button, gbtn10 x168 y304 w80 h23, Copy10
  39. Gui Add, Button, gsave x440 y312 w80 h23, Save to file
  40. Gui Add, Button, gload x528 y312 w80 h23, Load from file
  41. Gui Add, Button, gexit x352 y312 w80 h23, Exit
  42.  
  43. Gui Show, w620 h346, bennes
  44. Return
  45.  
  46. IniRead, kuk, conf.ini, test, EdtValue1
  47. ;MsgBox, The value is %EdtValue1%.
  48. IniRead, EdtValue2, conf.ini, test, EdtValue2
  49. ;MsgBox, The value is %EdtValue1%.
  50. IniRead, EdtValue3, conf.ini, test, EdtValue3
  51. ;MsgBox, The value is %EdtValue3%.
  52. IniRead, EdtValue4, conf.ini, test, EdtValue4
  53. ;MsgBox, The value is %EdtValue4%.
  54. IniRead, EdtValue5, conf.ini, test, EdtValue5
  55. ;MsgBox, The value is %EdtValue5%.
  56. IniRead, EdtValue6, conf.ini, test, EdtValue6
  57. ;MsgBox, The value is %EdtValue6%.
  58. IniRead, kukEdtValue7, conf.ini, test, EdtValue7
  59. ;MsgBox, The value is %EdtValue7%.
  60. IniRead, EdtValue8, conf.ini, test, EdtValue8
  61. ;MsgBox, The value is %EdtValue8%.
  62. IniRead, EdtValue9, conf.ini, test, EdtValue9
  63. ;MsgBox, The value is %EdtValue9%.
  64. IniRead, EdtValue10, conf.ini, test, EdtValue10
  65. ;MsgBox, The value is %EdtValue10%.
  66.  
  67.  
  68.  
  69. btn3:
  70. Gui,Submit,Nohide
  71. IniRead, EdtValue3, conf.ini, test, EdtValue3
  72. GuiControl,,EdtValue3,%EdtValue3%
  73. Clipboard=%EdtValue3%
  74.  
  75. ;MsgBox,% EdtValue3
  76. Return
  77.  
  78. btn2:
  79. Gui,Submit,Nohide
  80. IniRead, EdtValue2, conf.ini, test, EdtValue2
  81. GuiControl,,EdtValue2,%EdtValue2%
  82. Clipboard=%EdtValue2%
  83. ;MsgBox,% EdtValue2
  84. Return
  85.  
  86. btn1:
  87. Gui,Submit,Nohide
  88. IniRead, EdtValue1, conf.ini, test, EdtValue1
  89. GuiControl,,EdtValue1,%EdtValue1%
  90. Clipboard=%EdtValue3%
  91. ;MsgBox,% EdtValue1
  92. ;MsgBox, The value is %EdtValue1%.
  93. Return
  94.  
  95. btn4:
  96. Gui,Submit,Nohide
  97. IniRead, EdtValue4, conf.ini, test, EdtValue4
  98. GuiControl,,EdtValue4,%EdtValue4%
  99. Clipboard=%EdtValue4%
  100. ;MsgBox,% EdtValue4
  101. Return
  102.  
  103. btn5:
  104. Gui,Submit,Nohide
  105. IniRead, EdtValue5, conf.ini, test, EdtValue5
  106. GuiControl,,EdtValue5,%EdtValue5%
  107. Clipboard=%EdtValue5%
  108. ;MsgBox,% EdtValue5
  109. Return
  110.  
  111. btn6:
  112. Gui,Submit,Nohide
  113. IniRead, EdtValue6, conf.ini, test, EdtValue6
  114. GuiControl,,EdtValue6,%EdtValue6%
  115. Clipboard=%EdtValue6%
  116. ;MsgBox,% EdtValue6
  117. Return
  118.  
  119. btn7:
  120. ;Gui,Submit,Nohide
  121. if(EdtValue7 == kukEdtValue7 )
  122. {
  123.     MsgBox kuk
  124. }
  125. IniRead, kukEdtValue7, conf.ini, test, EdtValue7
  126. ;GuiControl,,EdtValue7,%kukEdtValue7%
  127. Clipboard=%kukEdtValue7%
  128. Return
  129.  
  130. btn8:
  131. Gui,Submit,Nohide
  132. IniRead, EdtValue8, conf.ini, test, EdtValue8
  133. GuiControl,,EdtValue8,%EdtValue8%
  134. Clipboard=%EdtValue8%
  135. ;MsgBox,% EdtValue8
  136. Return
  137.  
  138. btn9:
  139. Gui,Submit,Nohide
  140. IniRead, EdtValue9, conf.ini, test, EdtValue9
  141. GuiControl,,EdtValue9,%EdtValue9%
  142. Clipboard=%EdtValue9%
  143. ;MsgBox,% EdtValue9
  144. Return
  145.  
  146. btn10:
  147. Gui,Submit,Nohide
  148. IniRead, EdtValue10, conf.ini, test, EdtValue10
  149. GuiControl,,EdtValue10,%EdtValue10%
  150. Clipboard=%EdtValue10%
  151. ;MsgBox,% EdtValue10
  152. Return
  153.  
  154. save:
  155. Gui,Submit,Nohide
  156.  
  157. IniWrite, this is a new value, conf.ini, section2, key
  158. IniWrite, %EdtValue1%, conf.ini, test, EdtValue1
  159. IniWrite, %EdtValue2%, conf.ini, test, EdtValue2
  160. IniWrite, %EdtValue3%, conf.ini, test, EdtValue3
  161. IniWrite, %EdtValue4%, conf.ini, test, EdtValue4
  162. IniWrite, %EdtValue5%, conf.ini, test, EdtValue5
  163. IniWrite, %EdtValue6%, conf.ini, test, EdtValue6
  164. IniWrite, %EdtValue7%, conf.ini, test, EdtValue7
  165. IniWrite, %EdtValue8%, conf.ini, test, EdtValue8
  166. IniWrite, %EdtValue9%, conf.ini, test, EdtValue9
  167. IniWrite, %EdtValue10%, conf.ini, test, EdtValue10
  168.  
  169. Return
  170.  
  171. load:
  172. Gui,Submit,Nohide
  173. IniRead, EdtValue1, conf.ini, test, EdtValue1
  174. GuiControl,,EdtValue1,%EdtValue1%
  175. IniRead, EdtValue2, conf.ini, test, EdtValue2
  176. GuiControl,,EdtValue2,%EdtValue2%
  177. IniRead, EdtValue3, conf.ini, test, EdtValue3
  178. GuiControl,,EdtValue3,%EdtValue3%
  179. IniRead, EdtValue4, conf.ini, test, EdtValue4
  180. GuiControl,,EdtValue4,%EdtValue4%
  181. IniRead, EdtValue5, conf.ini, test, EdtValue5
  182. GuiControl,,EdtValue5,%EdtValue5%
  183. IniRead, EdtValue6, conf.ini, test, EdtValue6
  184. GuiControl,,EdtValue6,%EdtValue6%
  185. IniRead, EdtValue7, conf.ini, test, EdtValue7
  186. GuiControl,,EdtValue7,%EdtValue7%
  187. IniRead, EdtValue8, conf.ini, test, EdtValue8
  188. GuiControl,,EdtValue8,%EdtValue8%
  189. IniRead, EdtValue9, conf.ini, test, EdtValue9
  190. GuiControl,,EdtValue9,%EdtValue9%
  191. IniRead, EdtValue10, conf.ini, test, EdtValue10
  192. GuiControl,,EdtValue10,%EdtValue10%
  193.  
  194. IniRead, EdtValue10, conf.ini, test, EdtValue10
  195. Return
  196.  
  197. exit:
  198. ExitApp
  199. Return
  200.  
  201. GuiEscape:
  202. GuiClose:
  203. ExitApp
  204.  
  205.  
  206.  
  207. ;State=0
  208. ;
  209. ;Numpad0:: ;make the Hotkey Toggle between functions
  210. ;
  211. ;State:=!State
  212. ;
  213. ;If state
  214. ;
  215. ;{
  216.     ;
  217.     ;Send, {SHIFTDOWN}{F11}{SHIFTUP}
  218.     ;
  219.     ;CustomColor = EEAA99  
  220.     ;
  221.     ;Gui +LastFound +AlwaysOnTop -Caption +ToolWindow
  222.     ;
  223.     ;Gui, Color, red
  224.     ;
  225.     ;Gui, Font, s18
  226.     ;
  227.     ;Gui, Add, Text,, MIC LIVE.
  228.     ;
  229.     ;WinSet, TransColor, %CustomColor% 180
  230.     ;
  231.     ;Gui, Show, x860 y30 NoActivate, window.
  232.     ;
  233. ;}
  234. ;
  235.  
  236.  
  237.  
  238.  
  239. ^t::
  240.  
  241.  
  242. If WindowID =
  243. {
  244.  
  245.  MouseGetPos,,, WindowID
  246.  
  247.  WinGetTitle, WindowName, ahk_id %WindowID%
  248.  
  249. }
  250.  
  251. IfWinExist, ahk_id %WindowID% %WindowName%
  252.    
  253. WinHide
  254.  
  255. Else
  256.    
  257. WinShow, ahk_id %WindowID%
  258.  
  259. return
  260. ^b::
  261. WinHide,bennes
  262. return
  263.  
  264.  
  265. ^p::
  266. WinShow,bennes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement