Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
samfisherirl authored May 14, 2023
1 parent 5d3feec commit 0e0221a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion complete_application/AutoGUI.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -1461,12 +1461,16 @@ Open(Files := "", Flag := 0) {

SaveAs(n) {
; Show a file selection dialog box and return the selected file path
FileSelectFile, SelectedFile, 3, , Select a file to write code to
FileSelectFile, SelectedFile, S, , Select a file to write code to, AutoHotKey (*.ahk)


; Check if a file was selected
if (SelectedFile != "") {
; Open the selected file for writing
SplitPath, SelectedFile, FileName
if !InStr(FileName, ".ahk") {
SelectedFile := SelectedFile . ".ahk"
}
OutputFile := FileOpen(SelectedFile, "w")
FileRead, Code, %A_ScriptDir%\convert\lastv2.txt
; Write some sample code to the file
Expand Down

0 comments on commit 0e0221a

Please sign in to comment.