{"id":154,"date":"2009-05-20T01:10:28","date_gmt":"2009-05-20T07:10:28","guid":{"rendered":"http:\/\/gregsowell.com\/?p=154"},"modified":"2018-02-13T12:13:46","modified_gmt":"2018-02-13T18:13:46","slug":"autoit-soundboard","status":"publish","type":"post","link":"https:\/\/gregsowell.com\/?p=154","title":{"rendered":"Autoit Soundboard"},"content":{"rendered":"<p>We get a copious amount of sales calls, so one of my coworkers used an online soundboard (Miss Cleo is my favorite) while speaking to the sales people.\u00a0 Sooo I thought it would be funny for us to record our own and attempt to use it.\u00a0 I wrote a little Autoit script to do just that.\u00a0 It has 115 buttons that you can assign sound files to.\u00a0 You can also change the description of the button.\u00a0 When you try to change to a new sound board or exit the current sound board, it will save it.\u00a0 Really simple.\u00a0 You can download the exe here <div class=\"wp-block-button\">\n<a  data-e-Disable-Page-Transition=\"true\" class=\"dlm-download-link dlm-download-default wp-block-button__link wp-element-button\" title=\"\" href=\"https:\/\/gregsowell.com?download=5661&amp;tmstv=1784655679\" rel=\"nofollow\" id=\"download-link-5661\" data-redirect=\"false\" >\n\tAutoit soundboard\t(1943 downloads\t)\n<\/a>\n<\/div>\n or click\u00a0 the link below to view the code.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-160\" title=\"soundboard\" src=\"http:\/\/gregsowell.com\/wp-content\/uploads\/2009\/02\/soundboard-300x226.jpg\" alt=\"soundboard\" width=\"300\" height=\"226\" srcset=\"https:\/\/gregsowell.com\/wp-content\/uploads\/2009\/02\/soundboard-300x226.jpg 300w, https:\/\/gregsowell.com\/wp-content\/uploads\/2009\/02\/soundboard.jpg 861w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/> <!--more--><\/p>\n<pre class=\"gs-code\"><code class=\"language-plaintext\">#Include &lt;GuiButton.au3&gt;\r\n#include &lt;file.au3&gt;\r\n#include &lt;GUIConstants.au3&gt;\r\n\r\nFileDelete(@ScriptDir &amp; &quot;\\base.chk&quot;) ;smite base file everytime\r\n$file = FileOpen(@ScriptDir &amp; &quot;\\base.chk&quot;, 1) ;create base file\r\n\r\n; Check if file opened for writing OK\r\nIf $file = -1 Then\r\n    MsgBox(0, &quot;Error&quot;, &quot;Unable to open file.&quot;)\r\n    Exit\r\nEndIf\r\n\r\nfor $y = 1 to 224\r\n\tFileWriteLine($file, 1 &amp; @CRLF)\r\nNext\r\nFileClose($file)\r\n\r\n#Region ### START Koda GUI section ### Form=C:\\Documents and Settings\\gsowell\\Desktop\\autoit\\soundboard\\Form1.kxf\r\n$Form1 = GUICreate(&quot;Sound Board&quot;, 854, 625, 193, 115)\r\n$Button1 = GUICtrlCreateButton(&quot;1&quot;, 16, 8, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button2 = GUICtrlCreateButton(&quot;1&quot;, 121, 8, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button3 = GUICtrlCreateButton(&quot;1&quot;, 225, 8, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button4 = GUICtrlCreateButton(&quot;1&quot;, 329, 8, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button5 = GUICtrlCreateButton(&quot;1&quot;, 433, 8, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button6 = GUICtrlCreateButton(&quot;1&quot;, 537, 8, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button7 = GUICtrlCreateButton(&quot;1&quot;, 641, 8, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button8 = GUICtrlCreateButton(&quot;1&quot;, 745, 8, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button9 = GUICtrlCreateButton(&quot;1&quot;, 18, 44, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button10 = GUICtrlCreateButton(&quot;1&quot;, 123, 44, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button11 = GUICtrlCreateButton(&quot;1&quot;, 227, 44, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button12 = GUICtrlCreateButton(&quot;1&quot;, 331, 44, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button13 = GUICtrlCreateButton(&quot;1&quot;, 435, 44, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button14 = GUICtrlCreateButton(&quot;1&quot;, 539, 44, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button15 = GUICtrlCreateButton(&quot;1&quot;, 643, 44, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button16 = GUICtrlCreateButton(&quot;1&quot;, 747, 44, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button17 = GUICtrlCreateButton(&quot;1&quot;, 18, 84, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button18 = GUICtrlCreateButton(&quot;1&quot;, 123, 84, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button19 = GUICtrlCreateButton(&quot;1&quot;, 227, 84, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button20 = GUICtrlCreateButton(&quot;1&quot;, 331, 84, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button21 = GUICtrlCreateButton(&quot;1&quot;, 435, 84, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button22 = GUICtrlCreateButton(&quot;1&quot;, 539, 84, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button23 = GUICtrlCreateButton(&quot;1&quot;, 643, 84, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button24 = GUICtrlCreateButton(&quot;1&quot;, 747, 84, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button25 = GUICtrlCreateButton(&quot;1&quot;, 18, 124, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button26 = GUICtrlCreateButton(&quot;1&quot;, 123, 124, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button27 = GUICtrlCreateButton(&quot;1&quot;, 227, 124, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button28 = GUICtrlCreateButton(&quot;1&quot;, 331, 124, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button29 = GUICtrlCreateButton(&quot;1&quot;, 435, 124, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button30 = GUICtrlCreateButton(&quot;1&quot;, 539, 124, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button31 = GUICtrlCreateButton(&quot;1&quot;, 643, 124, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button32 = GUICtrlCreateButton(&quot;1&quot;, 747, 124, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button33 = GUICtrlCreateButton(&quot;1&quot;, 18, 164, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button34 = GUICtrlCreateButton(&quot;1&quot;, 123, 164, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button35 = GUICtrlCreateButton(&quot;1&quot;, 227, 164, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button36 = GUICtrlCreateButton(&quot;1&quot;, 331, 164, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button37 = GUICtrlCreateButton(&quot;1&quot;, 435, 164, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button38 = GUICtrlCreateButton(&quot;1&quot;, 539, 164, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button39 = GUICtrlCreateButton(&quot;1&quot;, 643, 164, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button40 = GUICtrlCreateButton(&quot;1&quot;, 747, 164, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button41 = GUICtrlCreateButton(&quot;1&quot;, 18, 204, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button42 = GUICtrlCreateButton(&quot;1&quot;, 123, 204, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button43 = GUICtrlCreateButton(&quot;1&quot;, 227, 204, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button44 = GUICtrlCreateButton(&quot;1&quot;, 331, 204, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button45 = GUICtrlCreateButton(&quot;1&quot;, 435, 204, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button46 = GUICtrlCreateButton(&quot;1&quot;, 539, 204, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button47 = GUICtrlCreateButton(&quot;1&quot;, 643, 204, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button48 = GUICtrlCreateButton(&quot;1&quot;, 747, 204, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button49 = GUICtrlCreateButton(&quot;1&quot;, 18, 244, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button50 = GUICtrlCreateButton(&quot;1&quot;, 123, 244, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button51 = GUICtrlCreateButton(&quot;1&quot;, 227, 244, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button52 = GUICtrlCreateButton(&quot;1&quot;, 331, 244, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button53 = GUICtrlCreateButton(&quot;1&quot;, 435, 244, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button54 = GUICtrlCreateButton(&quot;1&quot;, 539, 244, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button55 = GUICtrlCreateButton(&quot;1&quot;, 643, 244, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button56 = GUICtrlCreateButton(&quot;1&quot;, 747, 244, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button57 = GUICtrlCreateButton(&quot;1&quot;, 18, 284, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button58 = GUICtrlCreateButton(&quot;1&quot;, 123, 284, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button59 = GUICtrlCreateButton(&quot;1&quot;, 227, 284, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button60 = GUICtrlCreateButton(&quot;1&quot;, 331, 284, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button61 = GUICtrlCreateButton(&quot;1&quot;, 435, 284, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button62 = GUICtrlCreateButton(&quot;1&quot;, 539, 284, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button63 = GUICtrlCreateButton(&quot;1&quot;, 643, 284, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button64 = GUICtrlCreateButton(&quot;1&quot;, 747, 284, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button65 = GUICtrlCreateButton(&quot;1&quot;, 18, 324, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button66 = GUICtrlCreateButton(&quot;1&quot;, 123, 324, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button67 = GUICtrlCreateButton(&quot;1&quot;, 227, 324, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button68 = GUICtrlCreateButton(&quot;1&quot;, 331, 324, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button69 = GUICtrlCreateButton(&quot;1&quot;, 435, 324, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button70 = GUICtrlCreateButton(&quot;1&quot;, 539, 324, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button71 = GUICtrlCreateButton(&quot;1&quot;, 643, 324, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button72 = GUICtrlCreateButton(&quot;1&quot;, 747, 324, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button73 = GUICtrlCreateButton(&quot;1&quot;, 18, 364, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button74 = GUICtrlCreateButton(&quot;1&quot;, 123, 364, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button75 = GUICtrlCreateButton(&quot;1&quot;, 227, 364, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button76 = GUICtrlCreateButton(&quot;1&quot;, 331, 364, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button77 = GUICtrlCreateButton(&quot;1&quot;, 435, 364, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button78 = GUICtrlCreateButton(&quot;1&quot;, 539, 364, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button79 = GUICtrlCreateButton(&quot;1&quot;, 643, 364, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button80 = GUICtrlCreateButton(&quot;1&quot;, 747, 364, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button81 = GUICtrlCreateButton(&quot;1&quot;, 18, 404, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button82 = GUICtrlCreateButton(&quot;1&quot;, 123, 404, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button83 = GUICtrlCreateButton(&quot;1&quot;, 227, 404, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button84 = GUICtrlCreateButton(&quot;1&quot;, 331, 404, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button85 = GUICtrlCreateButton(&quot;1&quot;, 435, 404, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button86 = GUICtrlCreateButton(&quot;1&quot;, 539, 404, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button87 = GUICtrlCreateButton(&quot;1&quot;, 643, 404, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button88 = GUICtrlCreateButton(&quot;1&quot;, 747, 404, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button89 = GUICtrlCreateButton(&quot;1&quot;, 18, 444, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button90 = GUICtrlCreateButton(&quot;1&quot;, 123, 444, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button91 = GUICtrlCreateButton(&quot;1&quot;, 227, 444, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button92 = GUICtrlCreateButton(&quot;1&quot;, 331, 444, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button93 = GUICtrlCreateButton(&quot;1&quot;, 435, 444, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button94 = GUICtrlCreateButton(&quot;1&quot;, 539, 444, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button95 = GUICtrlCreateButton(&quot;1&quot;, 643, 444, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button96 = GUICtrlCreateButton(&quot;1&quot;, 747, 444, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button97 = GUICtrlCreateButton(&quot;1&quot;, 18, 484, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button98 = GUICtrlCreateButton(&quot;1&quot;, 123, 484, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button99 = GUICtrlCreateButton(&quot;1&quot;, 227, 484, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button100 = GUICtrlCreateButton(&quot;1&quot;, 331, 484, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button101 = GUICtrlCreateButton(&quot;1&quot;, 435, 484, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button102 = GUICtrlCreateButton(&quot;1&quot;, 539, 484, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button103 = GUICtrlCreateButton(&quot;1&quot;, 643, 484, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button104 = GUICtrlCreateButton(&quot;1&quot;, 747, 484, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button105 = GUICtrlCreateButton(&quot;1&quot;, 18, 524, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button106 = GUICtrlCreateButton(&quot;1&quot;, 123, 524, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button107 = GUICtrlCreateButton(&quot;1&quot;, 227, 524, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button108 = GUICtrlCreateButton(&quot;1&quot;, 331, 524, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button109 = GUICtrlCreateButton(&quot;1&quot;, 435, 524, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button110 = GUICtrlCreateButton(&quot;1&quot;, 539, 524, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button111 = GUICtrlCreateButton(&quot;1&quot;, 643, 524, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button112 = GUICtrlCreateButton(&quot;1&quot;, 747, 524, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button113 = GUICtrlCreateButton(&quot;Edit Button&quot;, 122, 580, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button114 = GUICtrlCreateButton(&quot;New SoundBoard&quot;, 226, 580, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\n$Button115 = GUICtrlCreateButton(&quot;Open SoundBoard&quot;, 330, 580, 89, 25, 0)\r\nGUICtrlSetFont(-1, 6, 400, 0, &quot;MS Sans Serif&quot;)\r\nGUISetState(@SW_SHOW)\r\n#EndRegion ### END Koda GUI section ###\r\n$ButtNum = 0 ;button number\r\n$Edit = 0 ; whether edit has been clicked\r\n\r\n$fileLocation = @ScriptDir &amp; &quot;\\base.chk&quot; ; set base file location\r\n$aConfigFile = _openConfig() ; load in base file\r\n\r\nWhile 1\r\n\t$nMsg = GUIGetMsg()\r\n\tSwitch $nMsg\r\n\t\tCase $GUI_EVENT_CLOSE ; look for close and check if they want to save the soundboard\r\n\t\t\tif StringInStr($fileLocation , &quot;\\base.chk&quot;) &gt; 0 Then\r\n\t\t\t\t$saveFile = InputBox(&quot;Save file or loose settings&quot;, &quot;If you don&#039;t choose a name to save this as, your settings will be erased!! &quot; &amp; @CRLF &amp; &quot;Give a file name for the config file.  It will be stored in the script dir&quot;)\r\n\t\t\t\tif @error == 1 Then\r\n\t\t\t\t\tExit\r\n\t\t\t\tElse\r\n\t\t\t\t\tFileCopy($fileLocation, @ScriptDir &amp; &quot;\\&quot; &amp; $saveFile &amp; &quot;.chk&quot;)\r\n\t\t\t\t\tExit\r\n\t\t\t\tEndIf\r\n\t\t\tElse\r\n\t\t\t\tExit\r\n\t\t\tEndIf\r\nCase $Button1 ;check for buttons\r\n\t\t\t$ButtNum = 1 ;set button #\r\n\t\t\tif $Edit = 1 then ; if edit has been clicked edit\r\n\t\t\t\t_editButton()\r\n\t\t\tElse ;play sound\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button2\r\n\t\t\t$ButtNum = 2\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button3\r\n\t\t\t$ButtNum = 3\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button4\r\n\t\t\t$ButtNum = 4\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button5\r\n\t\t\t$ButtNum = 5\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button6\r\n\t\t\t$ButtNum = 6\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button7\r\n\t\t\t$ButtNum = 7\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button8\r\n\t\t\t$ButtNum = 8\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button9\r\n\t\t\t$ButtNum = 9\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button10\r\n\t\t\t$ButtNum = 10\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button11\r\n\t\t\t$ButtNum = 11\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button12\r\n\t\t\t$ButtNum = 12\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button13\r\n\t\t\t$ButtNum = 13\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button14\r\n\t\t\t$ButtNum = 14\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button15\r\n\t\t\t$ButtNum = 15\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button16\r\n\t\t\t$ButtNum = 16\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button17\r\n\t\t\t$ButtNum = 17\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button18\r\n\t\t\t$ButtNum = 18\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button19\r\n\t\t\t$ButtNum = 19\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button20\r\n\t\t\t$ButtNum = 20\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button21\r\n\t\t\t$ButtNum = 21\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button22\r\n\t\t\t$ButtNum = 22\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button23\r\n\t\t\t$ButtNum = 23\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button24\r\n\t\t\t$ButtNum = 24\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button25\r\n\t\t\t$ButtNum = 25\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button26\r\n\t\t\t$ButtNum = 26\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button27\r\n\t\t\t$ButtNum = 27\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button28\r\n\t\t\t$ButtNum = 28\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button29\r\n\t\t\t$ButtNum = 29\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button30\r\n\t\t\t$ButtNum = 30\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button31\r\n\t\t\t$ButtNum = 31\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button32\r\n\t\t\t$ButtNum = 32\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button33\r\n\t\t\t$ButtNum = 33\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button34\r\n\t\t\t$ButtNum = 34\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button35\r\n\t\t\t$ButtNum = 35\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button36\r\n\t\t\t$ButtNum = 36\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button37\r\n\t\t\t$ButtNum = 37\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button38\r\n\t\t\t$ButtNum = 38\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button39\r\n\t\t\t$ButtNum = 39\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button40\r\n\t\t\t$ButtNum = 40\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button41\r\n\t\t\t$ButtNum = 41\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button42\r\n\t\t\t$ButtNum = 42\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button43\r\n\t\t\t$ButtNum = 43\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button44\r\n\t\t\t$ButtNum = 44\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button45\r\n\t\t\t$ButtNum = 45\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button46\r\n\t\t\t$ButtNum = 46\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button47\r\n\t\t\t$ButtNum = 47\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button48\r\n\t\t\t$ButtNum = 48\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button49\r\n\t\t\t$ButtNum = 49\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button50\r\n\t\t\t$ButtNum = 50\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button51\r\n\t\t\t$ButtNum = 51\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button52\r\n\t\t\t$ButtNum = 52\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button53\r\n\t\t\t$ButtNum = 53\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button54\r\n\t\t\t$ButtNum = 54\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button55\r\n\t\t\t$ButtNum = 55\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button56\r\n\t\t\t$ButtNum = 56\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button57\r\n\t\t\t$ButtNum = 57\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button58\r\n\t\t\t$ButtNum = 58\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button59\r\n\t\t\t$ButtNum = 59\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button60\r\n\t\t\t$ButtNum = 60\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button61\r\n\t\t\t$ButtNum = 61\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button62\r\n\t\t\t$ButtNum = 62\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button63\r\n\t\t\t$ButtNum = 63\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button64\r\n\t\t\t$ButtNum = 64\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button65\r\n\t\t\t$ButtNum = 65\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button66\r\n\t\t\t$ButtNum = 66\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button67\r\n\t\t\t$ButtNum = 67\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button68\r\n\t\t\t$ButtNum = 68\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button69\r\n\t\t\t$ButtNum = 69\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button70\r\n\t\t\t$ButtNum = 70\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button71\r\n\t\t\t$ButtNum = 71\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button72\r\n\t\t\t$ButtNum = 72\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button73\r\n\t\t\t$ButtNum = 73\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button74\r\n\t\t\t$ButtNum = 74\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button75\r\n\t\t\t$ButtNum = 75\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button76\r\n\t\t\t$ButtNum = 76\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button77\r\n\t\t\t$ButtNum = 77\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button78\r\n\t\t\t$ButtNum = 78\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button79\r\n\t\t\t$ButtNum = 79\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button80\r\n\t\t\t$ButtNum = 80\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button81\r\n\t\t\t$ButtNum = 81\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button82\r\n\t\t\t$ButtNum = 82\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button83\r\n\t\t\t$ButtNum = 83\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button84\r\n\t\t\t$ButtNum = 84\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button85\r\n\t\t\t$ButtNum = 85\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button86\r\n\t\t\t$ButtNum = 86\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button87\r\n\t\t\t$ButtNum = 87\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button88\r\n\t\t\t$ButtNum = 88\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button89\r\n\t\t\t$ButtNum = 89\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button90\r\n\t\t\t$ButtNum = 90\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button91\r\n\t\t\t$ButtNum = 91\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button92\r\n\t\t\t$ButtNum = 92\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button93\r\n\t\t\t$ButtNum = 93\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button94\r\n\t\t\t$ButtNum = 94\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button95\r\n\t\t\t$ButtNum = 95\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button96\r\n\t\t\t$ButtNum = 96\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button97\r\n\t\t\t$ButtNum = 97\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button98\r\n\t\t\t$ButtNum = 98\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button99\r\n\t\t\t$ButtNum = 99\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button100\r\n\t\t\t$ButtNum = 100\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button101\r\n\t\t\t$ButtNum = 101\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button102\r\n\t\t\t$ButtNum = 102\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button103\r\n\t\t\t$ButtNum = 103\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button104\r\n\t\t\t$ButtNum = 104\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button105\r\n\t\t\t$ButtNum = 105\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button106\r\n\t\t\t$ButtNum = 106\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button107\r\n\t\t\t$ButtNum = 107\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button108\r\n\t\t\t$ButtNum = 108\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button109\r\n\t\t\t$ButtNum = 109\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button110\r\n\t\t\t$ButtNum = 110\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button111\r\n\t\t\t$ButtNum = 111\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\nCase $Button112\r\n\t\t\t$ButtNum = 112\r\n\t\t\tif $Edit = 1 then\r\n\t\t\t\t_editButton()\r\n\t\t\tElse\r\n\t\t\t\t_playSound()\r\n\t\t\tEndIf\r\n\r\n\t\tCase $Button114 ; new soundboard button, check if save then restart program\r\n\t\t\tif StringInStr($fileLocation , &quot;\\base.chk&quot;) &gt; 0 Then\r\n\t\t\t\t$saveFile = InputBox(&quot;Save file or loose settings&quot;, &quot;If you don&#039;t choose a name to save this as, your settings will be erased!! &quot; &amp; @CRLF &amp; &quot;Give a file name for the config file.  It will be stored in the script dir&quot;)\r\n\t\t\t\tif @error == 1 Then\r\n\t\t\t\t\tRun(@ScriptDir &amp; &quot;\\soundboard.exe&quot;)\r\n\t\t\t\t\tExit\r\n\t\t\t\tElse\r\n\t\t\t\t\tFileCopy($fileLocation, @ScriptDir &amp; &quot;\\&quot; &amp; $saveFile &amp; &quot;.chk&quot;)\r\n\t\t\t\tEndIf\r\n\t\t\tElse\r\n\t\t\t\tRun(@ScriptDir &amp; &quot;\\soundboard.exe&quot;)\r\n\t\t\t\tExit\r\n\t\t\tEndIf\r\n\r\n\t\tCase $Button113 ;edit butotn\r\n\t\t\t$Edit = 1 ;set edit variable\r\n\r\n\t\tCase $Button115 ;open soundboard button\r\n\t\t\t$fileLocation = FileOpenDialog(&quot;Choose Config File&quot;, @ScriptDir, &quot;Sound Boards(*.chk)&quot;)\r\n\t\t\t$aConfigFile = _openConfig()\r\n\tEndSwitch\r\nWEnd\r\n\r\nFunc _editButton ()\r\n$Edit = 0 ; get caption and file path\r\n$caption = InputBox(&quot;Description&quot;, &quot;What should the button description be?&quot;, $aConfigFile[$ButtNum + 2])\r\n$newFile = FileOpenDialog(&quot;Choose Sound File&quot;, @ScriptDir, &quot;Sound File(*.wav;*.mp3)&quot;)\r\nif FileExists($newFile) Then ; if real file, then save the file and reset text\r\n\t$aConfigFile[$ButtNum] = $caption\r\n\t$aConfigFile[$ButtNum + 112] = $newFile\r\n\t;MsgBox(0,$ButtNum, $newFile)\r\n\t_FileWriteFromArray($fileLocation,$aConfigFile, 1)\r\n\t_GUICtrlButton_SetText($ButtNum + 2, $caption);$button &amp; $\r\nEndIf\r\nEndFunc\r\n\r\nfunc _playSound ()\r\n\t;SoundPlay(@WindowsDir &amp; &quot;\\media\\tada.wav&quot;,1)\r\n\tif FileExists($aConfigFile[$ButtNum + 112]) Then\r\n\t\t;playit\r\n\t\tSoundPlay($aConfigFile[$ButtNum + 112],1)\r\n\tEndIf\r\nEndFunc\r\n\r\nFunc _openConfig()\r\n\t;read in config file and then set descriptions on buttons\r\n\tDim $aConfigFile\r\n\tIf Not _FileReadToArray($fileLocation,$aConfigFile) Then\r\n\tMsgBox(4096,&quot;Error&quot;, &quot; Error reading log to Array     error:&quot; &amp; @error)\r\n\tExit\r\n\tEndIf\r\n\tFor $x = 1 to 112 ;$aConfigFile[0]\r\n\t\t;starts at 3\r\n\t\t_GUICtrlButton_SetText($x + 2, $aConfigFile[$x]);$button &amp; $x\r\n\tNext\r\n\tReturn $aConfigFile\r\nEndFunc<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>We get a copious amount of sales calls, so one of my coworkers used an online soundboard (Miss Cleo is my favorite) while speaking\u2026<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,7],"tags":[],"class_list":["post-154","post","type-post","status-publish","format-standard","hentry","category-autoit","category-programmingscripting"],"_links":{"self":[{"href":"https:\/\/gregsowell.com\/index.php?rest_route=\/wp\/v2\/posts\/154","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gregsowell.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gregsowell.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gregsowell.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/gregsowell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=154"}],"version-history":[{"count":14,"href":"https:\/\/gregsowell.com\/index.php?rest_route=\/wp\/v2\/posts\/154\/revisions"}],"predecessor-version":[{"id":5743,"href":"https:\/\/gregsowell.com\/index.php?rest_route=\/wp\/v2\/posts\/154\/revisions\/5743"}],"wp:attachment":[{"href":"https:\/\/gregsowell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=154"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gregsowell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=154"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gregsowell.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=154"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}