Code: Select all
START:
Loop
{
msgbox main code
}
Interupt:
IfExist, C:\Filepath and file name here.jpg
goto START
goto Interupt
Code: Select all
START:
Loop
{
msgbox main code
}
Interupt:
IfExist, C:\Filepath and file name here.jpg
goto START
goto Interupt
Code: Select all
F1::
Yourscript here
Return
Code: Select all
;^o::
SetWorkingDir %A_ScriptDir%
FileSelectFile, file,,, Select your file, Data File (*.txt)
If ErrorLevel = 1
{
ExitApp
}
Run, D:\Program Files\IrfanView\i_view32.exe "%file%
Return
Code: Select all
MsgBox, One lazy horse..
Sleep, 1000
MsgBox, Two Lazy horses
Sleep, 1000
MsgBox, Three Lazy Horses
F1::
Run, Your script name here.ahk
Return
I have seen and read all of them. None of them do this properly.
I didn't have any blank lines or spaces etc.tidbit wrote:if you're using fileread, the file cannot contain anything else, not even a blank line. just a number.