; Minireminder. pb - my shortest PB application
;Minireminder.exe is placed in Startup folder. Shortcut of miniREMINDER.txt will placed on the Desktop after first run of program.
If OpenFile(0, "miniREMINDER.txt") ; Opens an existing file or creates one, if it does not exist yet.
If Lof(0)>6 ; Only window with a text will appear. Editing of windows is done through Notepad.
MessageBeep_(48) ; System sounds must be allowed (default setting of Windows), if not - the program is mute.
RunProgram("miniREMINDER.txt") ; Name (including path) of the text file is optional only before compilation of program.
EndIf
EndIf
It looks stupid but serves well!
Windows 7 Professional / Service Pack 1 - 32bit, PureBasic 5.46 LTS (x86) My mother tongue is Czech. I have a Czech version of Windows. Who is not afraid of GOTO, the one need not afraid any things!
As a joke possible, but if it is to be a meaningful application, ie the application that provide some service?
Windows 7 Professional / Service Pack 1 - 32bit, PureBasic 5.46 LTS (x86) My mother tongue is Czech. I have a Czech version of Windows. Who is not afraid of GOTO, the one need not afraid any things!
Windows 7 Professional / Service Pack 1 - 32bit, PureBasic 5.46 LTS (x86) My mother tongue is Czech. I have a Czech version of Windows. Who is not afraid of GOTO, the one need not afraid any things!
If FileSize("miniREMINDER.txt") > 6
MessageBeep_(48)
RunProgram("miniREMINDER.txt")
EndIf
Well Kiffi. If miniREMIDER.text is created in advance, you are right.
I accept with your solution.
Windows 7 Professional / Service Pack 1 - 32bit, PureBasic 5.46 LTS (x86) My mother tongue is Czech. I have a Czech version of Windows. Who is not afraid of GOTO, the one need not afraid any things!
Even though I know the "yellow cards" and "sticky notes" I prefer my own application for short reminders for several years. I submitted my utility for discussion in connection with the completion of my book "Surprising Basic". This book is intended for complete novices. Czech version is available at : http://people.fsv.cvut.cz/~svobodal/pure/index.htm
Windows 7 Professional / Service Pack 1 - 32bit, PureBasic 5.46 LTS (x86) My mother tongue is Czech. I have a Czech version of Windows. Who is not afraid of GOTO, the one need not afraid any things!