0% found this document useful (0 votes)
36 views1 page

DD

The document describes a GUI for playing piano music by pressing F4. It contains edits to remove newlines and special characters from the piano music text, then uses a loop and regex matching to send each character as a key press with a delay set by the user. Pressing F8 suspends/resumes the playback, and closing the GUI exits the application.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views1 page

DD

The document describes a GUI for playing piano music by pressing F4. It contains edits to remove newlines and special characters from the piano music text, then uses a loop and regex matching to send each character as a key press with a delay set by the user. Pressing F8 suspends/resumes the playback, and closing the GUI exits the application.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

Gui, Add, Text,, ------------------------------------------Key

Delay-----------------------------------------
Gui, Add, Edit, w300 vKeyDelay, 100
Gui, Add, Text,, ----------------------------------------Piano
Music-----------------------------------------
Gui, Add, Edit, R10 w300 vPianoMusic
Gui, Add, Text,, F4 To Play Piano Music
Gui, Add, Text,, Press F8 To Suspend/Resume
Gui, Add, Text,, Edited by WalkerOnly
Gui, Show
F4::
!F4::
Gui, Submit, Nohide
PianoMusic := RegExReplace(PianoMusic, "`n|`r|/") ; Remove Stuff
X := 1
while (X:=RegExMatch(PianoMusic, "U)(\[.*]|.)",Keys, X))
{
X+=StrLen(Keys)
Keys := Trim(Keys, "[]")
SendInput % Keys
Sleep, %KeyDelay%
}
return

f8::

Pause

Suspend

return

GuiClose:
ExitApp

You might also like