Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- nomainwin
- WindowWidth = 350
- WindowHeight =150
- UpperLeftX = 10
- UpperLeftY = 10
- dim fullPath$(20)
- 'HourChime$
- 'MinChime$
- '
- 'MinChime$
- 'QuarterChime$
- 'HalfChime$
- 'ThreeQuarterChime$
- 'HourChime$
- ' BackgroundColor$ = "white"
- MENU #w, "File", "Exit", [Exit],"start",[Alarm]
- MENU #w, "Settings", "settings", [browseForChime],"start",[Alarm]
- MENU #w, "Clock Theme", "Grand Father Clock", [GrandTheme],"Kukoo Clock",[KukooTheme],"DigitalWatch",[DigitalWatch],"Custom Teme",[Custom]
- MENU #w, "Help", "Instructons", [Instructons], "About", [About]
- radiobutton #w.min, "Silant", [silent], [Wait], 1, 1, 45, 15 '140, 60, 25, 20
- radiobutton #w.min, "Minute", [Minute], [Wait], 50, 1, 50, 20
- radiobutton #w.Hour, "Hour", [Hour], [Wait], 100,1, 45, 20
- radiobutton #w.Default, "Default", [Default], [Wait], 145,1, 50, 20
- STATICTEXT #w.statict, "24H00 Format : Set Time", 05, 30, 120, 15'05 30 120 15
- STATICTEXT #w.statict, "Time now", 150, 30, 50, 15
- textbox #w.tb1, 10, 60, 100, 30
- textbox #w.tb3, 150, 60, 100, 30
- button #w.button, "Start", [Alarm], LR, 50, 20,50,30'default
- inter = 2
- b$ = "00"
- ' C:\Alarm Clock 1.04\Digital Watch
- HourChime$ = "C:\Alarm Clock 1.04\Digital Watch\Four.wav"
- HourChime$ = SeparateFile$(HourChime$)
- MinChime$ = "C:\Alarm Clock 1.04\Digital Watch\One.wav"
- ' MinChime$ = SeparateFile$(MinChime$)
- AlarmChime$ = "'C:\Alarm Clock 1.04\Digital Watch\One.wav"
- AlarmChime$ = SeparateFile$( AlarmChime$)
- ' HourChime$ = "\Digital Watch\was intence.wav"
- ' STATICTEXT #w.staticText1, "", 10, 05, 500, 45
- ' a$ ="Alarm Clock 1.01 By Kevin van Os";chr$(10);"For more info on this pacage and\or others Contant Kevin van Os ";chr$(13);"Tell: 082 713-5259"
- ' [Default]
- inter = 2
- b$ = "00"
- 'HourChime$ = "Digital Watch2.wav"
- open "Alarm Clock 1.05" for window_nf as #w
- ' #w.tb1 "24H00"
- ' print #w.tb1, "!setfocus"
- print #w.Default, "set"
- '********************************
- inter = 2
- b$ = "00"
- HourChime$ = "Digital Watch\One.wav"
- MinChime$ = "Digital Watch\One.wav"
- MinChime3$ = "Digital Watch\One.wav"
- '********************************
- '__________________.
- #w "trapclose [quit2]"
- #w.tb1 "hh:mm"
- #w.tb1 "!selectall"
- #w.tb1 "!font arial 15 bold"
- #w.tb3 "!font arial 15 bold"
- #w.tb3 time$()
- ' #w.staticText1, a$
- [loop1]
- scan
- '****************
- t$ = time$()
- 'threeQuarterHourChime
- if right$(t$,5) > "46:00" then threeQuarterHourChime = 0
- if right$(t$,2) > "10" then HourChime = 0
- if right$(t$,5) > "31:00" then halfHourChime = 0
- if right$(t$,2) > "50" then Min = 0
- if right$(t$,5) = "15:00" then gosub [quarterChime]'quarter
- if right$(t$,5) = "30:00" then gosub [halfHourChime]
- if right$(t$,5) = "45:00" then gosub [threeQuarterHourChime]
- if right$(t$,inter) = "00" then gosub [MinChime]
- a$ = time$()
- if b$ = right$(a$,inter) then
- gosub [HourChime]
- end if
- '****************
- [backToTheLoop]'Back To The Loop Of Time
- t$ = time$()
- Scan
- CallDLL #kernel32, "Sleep",100 As Long, ret As Void '************
- a$ = time$() 'update the string to be compared
- #w.tb3,a$
- if left$(set$,5) = left$(a$,5) then'00:00:00
- gosub [cont]
- end if
- goto [loop1]
- [Alarm]
- #w.tb1,"!contents? set$";' set$ = hh$+":"+mm$+":"+sec$ ****************
- #w.tb1, ""
- hh$ = left$(set$,2)' get the last two charicters fom the number string on the left
- mm$ = right$(set$,2)' get the last two charicters fom the number string on the Right
- [SlipInFromSnooz]
- generic$ = mm$
- ms$ = "00"
- set$ = hh$+":"+mm$+":";ms$'put all the string bit together
- #w.tb1, set$ 'print the set string to textbox 1
- '[loop2]
- ' if left$(set$,5) = left$(a$,5) then goto [cont]'while set$ is not equil to a$ string LOOP************8
- ' Scan
- ' CallDLL #kernel32, "Sleep",100 As Long, ret As Void '************
- ' a$ = time$() 'update the string to be compared
- ' #w.tb3,a$ '***************
- goto [loop1]
- [cont]
- playwave AlarmChime2$, sync 'pay wav sound and added mode
- confirm "Snoozzzzz";answer$ 'put a notice up so that the user can stop the wav
- if answer$ = "yes" then [Snooz] else [Stop]
- playwave "" 'end the alarm
- #w.tb1 "!selectall"
- ' goto [loop1]
- return
- [HourChime]'hourlychimebeg
- if Phour <> 1 then return
- if Phour = 1 and right$(t$,5) = "00:00" then goto [playwav]
- [playwav]
- scan 'HourChime$
- if HourChime = 0 then playwave HourChime$, sync : HourChime = 1
- return
- [MinChime]
- if Pmin = 1 and right$(t$,5) = "00:00"goto [HourChime]
- if Phour = 1 then goto [HourChime]
- if Pmin = 1 then
- if Min = 0 then
- playwave MinChime$, sync : Min = 1
- end if
- end if
- return
- goto [loop1]
- [quarterChime]
- playwave QuarterChime$,sync
- return
- [halfHourChime]
- if halfHourChime = 0 then playwave HalfChime$ , sync :halfHourChime = 1
- return
- [threeQuarterHourChime]
- if threeQuarterHourChime = 0 then playwave ThreeQuarterChime$ , sync : threeQuarterHourChime = 1
- return
- [GrandTheme]
- MinChime$ = "grand fater clock\HourOne.wav"
- QuarterChime$ = "grand fater clock\HourOne.wav"
- HalfChime$ ="grand fater clock\HourTwo.wav"
- ThreeQuarterChime$ = "grand fater clock\HourThree.wav"
- HourChime$ = "grand fater clock\HourFour.wav"
- goto [loop1]
- [DigitalWatch]
- MinChime$ ="Digital Watch\One.wav"
- QuarterChime$ = "Digital Watch\One.wav"
- HalfChime$ = "Digital Watch\Two.wav"
- ThreeQuarterChime$ = "Digital Watch\Three.wav"
- HourChime$ = "Digital Watch\Two.wav"
- goto [loop1]
- scan
- [Stop]
- playwave ""
- [quit]
- 'if ch = 1 then close #ch
- 'ch = 0
- close#w
- end
- [Snooz]
- playwave ""
- 'Take the string of the set "30" minuts
- 'Convert the string into a numerik value
- 'add 10 to 30 that equils 40
- 'Convert the numeric value back into a numeric string
- Snooze = val(generic$)
- Snooze = Snooze + 10
- mm$ = str$(Snooze)
- goto [SlipInFromSnooz]
- [About]
- 'close #w
- button #c.button1, "Close",[AboutClose], LR, 30, 10,50,30
- STATICTEXT #c.s, "", 05, 5, 280,120
- a$ = "Alarm Clock 1.01 By Kevin van Os";Chr$(13);"For more info about this customizable Software pakage";chr$(13);"And\or others contact Kevin van Os";Chr$(13);"Tell - 082 713-5259";chr$(13);"E - Mail: kevinos@mweb.co.za"
- 'StyleBits #c, 0, _WS_SIZEBOX OR _WS_SYSMENU , 0, 0
- open "About" for Window_nf as #c
- #c "trapclose [TrapCloseAbout]"
- #c.s, a$
- wait
- [TrapCloseAbout]
- close #w
- close #c
- end
- wait
- [quit2]
- if view = 1 then close #view2
- close #w
- end
- '[ReStart]
- 'close#w
- [Exit]
- close #w
- end
- [AboutClose]
- close #c
- goto [loop1]
- [a]
- close #c
- wait
- [Instructons]
- 'close #w
- button #d.button1, "Close",[InstructonsClose], LR, 30, 10,50,30
- STATICTEXT #d.s, "Instructons", 05, 5, 200, 120
- a$ = "Alarm Clock 1.01";chr$(13);" By Kevin van Os";Chr$(13);"1) Type a time you desire to set";chr$(13);"2) Click start button to set Alarm";Chr$(13);"Tell - 082 713-5259"
- 'StyleBits #d, 0, _WS_SIZEBOX OR _WS_SYSMENU , 0, 0
- open "" for Window_nf as #d
- #d.s, a$
- wait
- [TrapCloseInstructons]
- close #w
- close #d
- end
- [InstructonsClose]
- close #d
- goto [loop1]
- '********************************************************BROWSE FOR CHIME**********************************************************************************************************
- '*************************************************************BROWSE FOR CHIME***************17 SEP 2011*********************************************************************************
- [browseForChime]
- UpperLeftX = 10
- UpperLeftY = 10
- WindowWidth = 420
- WindowHeight = 200'300
- setwin = 1
- ' AlarmChime$ = SeparateFile$( AlarmChime$)
- GROUPBOX #ch.ext1, "AlarmChimel", 140, 1, 130, 100 ' 05, 1, 100, 100
- GROUPBOX #ch.ext1, "HourChime", 05, 1, 130, 100 ' 170, 1, 150, 100
- GROUPBOX #ch.ext1, "MinutCime", 275, 1, 130, 100 ' 170, 1, 150, 100
- ' statictext #ch.s1,"HR", 140, 10, 20, 14
- ' statictext #ch.s2,"Min", 140,50,19, 15
- 'radiobutton #ch.sil, "S", [silent], [Wait], 140, 70, 25, 10
- 'radiobutton #ch.min, "", [Minute], [Wait], 140, 60, 25, 20
- 'radiobutton #ch.Hour, "", [Hour], [Wait], 140,20, 25, 20
- 'radiobutton #ch.OldTheme, "", [OldTheme], [Wait], 140, 90, 25, 20
- 'statictext #ch.s1, HourChime$, 15, 10, 40, 18
- ' statictext #ch.s1,"HOURCHIME", 20, 10, 150, 18
- ' statictext #ch.s2,"ALARMCHIME", 150,10, 150, 18
- statictext #ch.s3,HourChime$, 20, 30, 100, 50
- statictext #ch.s4,AlarmChime$, 170,30, 80, 50
- statictext #ch.s5,AlarmChime$, 280,30, 80, 50
- button #ch.exit1, "HourChime", [HourChime2], LR, 380, 10,100,25
- button #ch.exit, "&OK!", [QuitY], LR, 220,30',150,5
- button #ch.exit1, "AlermChime", [AlarmChime2], LR, 250, 0,100,25
- button #ch.exit1, "MinutChime", [MinutChim], LR, 100, 10,100,25
- open "Brouse for Chime" for window_nf as #ch
- print #ch, "trapclose [QuitZ]"
- wait
- [MinutChim]
- filedialog "Chose Chime", "*.wav", MinChime$
- MinChime3$ = MinChime$
- MinChime3$ = SeparateFile$( MinChime3$)
- #ch.s5, MinChime3$
- wait
- [AlarmChime2]
- filedialog "Chose Chime", "*.wav", AlarmChime$
- AlarmChime2$ = AlarmChime$
- '******************
- AlarmChime$ = SeparateFile$( AlarmChime$)
- '******************
- #ch.s4, AlarmChime$;
- wait
- [HourChime2]
- filedialog "Open text file", "*.wav", HourChime$
- '**********************************************************
- HourChime$ = SeparateFile$(HourChime$)
- #ch.s3, HourChime$;
- goto [loop1]
- '************************************************************
- Function SeparateFile$(f$)
- fileindex=Len(f$)
- filelength=Len(f$)
- While Mid$(f$, fileindex,1)<>"\"
- scan
- fileindex=fileindex-1
- Wend
- SeparateFile$=Right$(f$,filelength-fileindex)
- End Function
- '************************************************************
- wait
- [QuitY]
- close #ch
- ch = 0
- goto [loop1]
- [QuitZ]
- close #ch
- goto [loop1]
- '********************************************************************************BROWSE FOR CHIME*****************************************************************************************************
- '********************************************************************************CONFIGERATION*****************************************************************************************************
- [setup]
- ' end
- goto [loop1]
- wait
- [silent]
- MinChime$ = ""
- QuarterChime$ = ""
- HalfChime$ = ""
- ThreeQuarterChime$ = ""
- HourChime$ = ""
- silent = 1
- inter = 2
- b$ = "00"
- goto [loop1]
- [Minute]
- Phour = 0
- Pmin = 1
- silent = 0
- inter = 2
- 'MinChime$ = "Digital Watch\One.wav"
- 'MinChime$ = "'C:\Alarm Clock 1.04\Digital Watch\One.wav"
- b$ = "00"
- 'HourChime$ = "chimes.wav"
- '#ch.s3 HourChime$
- '#ch.s4 ""
- goto [loop1]
- [Hour]
- Phour = 1
- Pmin = 0
- Min = 0
- inter = 5
- b$ = "00:00"
- goto [loop1]
- MinChime$ = ""
- 'AlarmChime$ = "Father Clock.wav"
- HourChime$ = "Father Clock.wav"
- '#ch.s3 HourChime$
- '#ch.s4 AlarmChime$
- '#ch.s4 ""
- goto [loop1]
- [OldTheme]
- AlarmChime$ = ""
- HourChime$ = ""
- '#ch.s3 HourChime$
- '#ch.s4 AlarmChime$
- inter = 5
- b$ = "00:00"
- goto [loop1]
- [Default]
- Pmin = 1
- inter = 2
- b$ = "00"
- 'HourChime$ = "Digital Watch\One.wav"
- 'MinChime$ = "Digital Watch\One.wav"
- 'MinChime3$ = "Digital Watch\One.wav"
- goto [loop1]
- '********KukooTheme*******************************
- [KukooTheme]
- MinChime$ = "Kukoo chimes\One.wav"
- QuarterChime$ = "Kukoo chimes\One.wav"
- HalfChime$ = "Kukoo chimes\Two.wav"
- ThreeQuarterChime$ = "Kukoo chimes\Three.wav"
- HourChime$ = "Kukoo chimes\Four.wav"
- 'MinChime$ = "Kukoo chimes\One.wav"
- goto [loop1]
- [OKcustom]
- [OK]'maybe
- close #period
- goto [loop1]
- scan
- [Custom]
- '****************************************************************************************************************************************
- dim hourChime$(100)
- dim minChime$(100)
- dim AlarmChime$(100)
- dim QuarterChime$(100)
- dim HalfChime$(100)
- dim ThreeQuarter$(100)
- nomainwin
- WindowWidth = 550
- WindowHeight = 300
- UpperLeftX=10
- UpperLeftY=10
- 'HourChime$
- 'MinChime$
- 'QuarterChime$
- 'HalfChime$
- 'ThreeQuarterChime$
- 'HourChime$
- ComboboxColor$ = "white"
- combobox #custom.combobox1, hourChime$(), [combobox1DoubleClick], 74, 22, 355, 100
- combobox #custom.combobox2, minChime$(), [combobox2DoubleClick], 140, 52, 345, 100
- combobox #custom.combobox3, AlarmChime$(), [combobox5DoubleClick], 74, 82, 355, 100'74, 82, 355, 100
- combobox #custom.combobox4, QuarterChime$(), [combobox3DoubleClick], 145, 110, 345, 100' 145, 117, 345, 100
- combobox #custom.combobox5, HalfChime$(), [combobox4DoubleClick], 74,138, 360, 100' 55, 157, 360, 100
- combobox #custom.combobox6, ThreeQuarter$(), [combobox11DoubleClick], 145, 168, 350, 100'145, 175, 350, 100
- button #custom.b1, "Browse1", btnBrowse, UL, 1, 20 'HourChime
- button #custom.b2, "Browse2", btnBrowse, UL, 1, 52'MinChime
- button #custom.b3, "Browse3", btnBrowse, UL, 1, 82'AlarmChime
- button #custom.b4, "Browse4", btnBrowse, UL, 1, 113'ThreeQuarterChime
- button #custom.b5, "Browse5", btnBrowse, UL, 1, 143'HalfHour Chime-143
- button #custom.b6, "Browse6", btnBrowse , UL, 1, 170' Tree Quarterhime
- button #custom.b7, ">>>>", [set] , LR, 50, 10' Tree Quarterhime
- button #custom.b7, "View Custom Chimes", [viewChimes] , LR, 205, 10
- ' button #custom.b1, "Browse1", [Browse1], UL, 1, 20 'HourChime
- ' button #custom.b2, "Browse2", [Browse2], UL, 1, 52'MinChime
- ' button #custom.b3, "Browse3", [Browse3], UL, 1, 82'AlarmChime
- ' button #custom.b4, "Browse", [Browse4], UL, 1, 113'ThreeQuarterChime
- ' button #custom.b5, "Browse", [Browse5], UL, 1, 143'HalfHour Chime-143
- ' button #custom.b6, "Brouse", [Browse6] , LL, 1, 113
- ' button #custom.b6, "Browse", [Browse6] , UL, 1, 170' Tree Quarterhime
- statictext #custom.statictext6, "Hour ", 440, 22, 70, 20
- statictext #custom.statictext7, "Minut ", 80, 57, 50, 20
- statictext #custom.statictext8, "Alarm ", 435, 78, 55, 25
- statictext #custom.statictext9, "Quarter ", 80, 118, 50, 20' 80, 122, 50, 20
- statictext #custom.statictext10, "Half Hour", 440, 143, 60, 20' 440, 155, 50, 40
- statictext #custom.statictext12, "Three Quarter", 80, 166, 50, 40'80, 166, 50, 40
- '-----End GUI objects code
- open "Customised Theme" for window_nf as #custom
- print #custom, "font ms_sans_serif 10"
- print #custom, "trapclose [custom]"
- ' filedialog "Open text file", "*.txt", fileName$
- [main.inputLoop] 'wait here for input event
- wait
- [custom]
- close #custom
- goto [loop1]
- [combobox1DoubleClick] 'Perform action for the combobox named 'combobox1'
- 'Insert your own code here
- wait
- [combobox2DoubleClick] 'Perform action for the combobox named 'combobox2'
- 'Insert your own code here
- wait
- [combobox3DoubleClick] 'Perform action for the combobox named 'combobox3'
- 'Insert your own code here
- wait
- [combobox4DoubleClick] 'Perform action for the combobox named 'combobox4'
- 'Insert your own code here
- wait
- [combobox5DoubleClick] 'Perform action for the combobox named 'combobox5'
- 'Insert your own code here
- wait
- [combobox11DoubleClick] 'Perform action for the combobox named 'combobox11'
- 'Insert your own code here
- wait
- sub btnBrowse handle$' Hear
- whichBtn = val(right$(handle$,1)) 'get button number from handle
- ' print whichBtn
- filedialog "Open sound file", "*.wav", fullPath$
- fullPath2$ = fullPath$
- z = 1
- ' name$(z) = fullPath$
- z = z + 1
- fileName$ = SeparateFile$( fullPath$)
- combo$ = "#custom.combobox";whichBtn 'get combo name by number
- '/////////////////////////////////////////////////////////
- ' HourChime$ = hourChime$(1)
- ' MinChime$ = minChime$(1)
- ' QuarterChime$ = QuarterChime$(1)
- ' HalfChime$ = HalfChime$(1)
- ' ThreeQuarterChime$ = ThreeQuarter$(1)
- '//////////////////////////////////////////////////////////
- in = 0
- i = 1
- while in <> 1
- scan
- 'now, the only part different would be array names
- select case whichBtn
- case 1
- if hourChime$(i) = "" then hourChime$(i) = fullPath$ :in = 1 : fullPath$(1) = fullPath$
- HourChime$ = hourChime$(i)
- case 2
- if minChime$(i) = "" then minChime$(i) = fullPath$ :in = 1 : fullPath$(2) = fullPath$
- MinChime$ = minChime$(i)
- case 3
- if AlarmChime$(i) = "" then AlarmChime$(i) = fullPath$ :in = 1 : fullPath$(3) = fullPath$
- AlarmChime$ = AlarmChime$(i)
- case 4
- if QuarterChime$(i) = "" then QuarterChime$(i) = fullPath$ :in = 1 : fullPath$(4) = fullPath$
- QuarterChime$ = QuarterChime$(i)
- case 5
- if HalfChime$(i) = "" then HalfChime$(i) = fullPath$ :in = 1 : fullPath$(5) = fullPath$
- HalfChime$ = HalfChime$(i)
- case 6
- if ThreeQuarter$(i) = "" then ThreeQuarter$(i) = fullPath$ :in = 1 : fullPath$(6) = fullPath$
- ThreeQuarterChime$ = ThreeQuarter$(i)
- case else
- print "Sub works for hour and minutes as of now": exit while 'it loops forever without Exit
- end select
- '/////////////////////////////////////////////////////////
- ' HourChime$ = hourChime$(1)
- ' MinChime$ = minChime$(1)
- ' QuarterChime$ = QuarterChime$(1)
- ' HalfChime$ = HalfChime$(1)
- ' ThreeQuarterChime$ = ThreeQuarter$(1)
- '//////////////////////////////////////////////////////////
- print #combo$, "reload"
- print #combo$, "selectindex ";1 'last added selecte
- 'print #combo$, "selectindex ";i-1 'last added selecte
- wend
- end sub
- [Browse1]'HourChime
- filedialog "Open text file", "*.wav", dumieHourChime$
- '**************
- HourChime$ = dumieHourChime$
- HourChime$ = SeparateFile$(HourChime$)
- '**************
- i = 1
- while in <> 1
- scan
- if hourChime$(i) = "" then hourChime$(i) = HourChime$ :in = 1
- i = i + 1
- print #custom.combobox1, "reload"
- 'print #custom.combobox2, MinChime$"
- 'print #custom.combobox2, "select MinChime$"
- print #custom.combobox1, "selectindex 1"
- 'print #custom.combobox2, "selection? MinChime$"
- wend
- wait
- [Browse2] 'MinChime
- filedialog "Open text file", "*.wav", dumieMinChime$
- '**************
- MinChime$ = dumieMinChime$
- ' SeparateFile$(HourChime$)
- MinChime$ = SeparateFile$( MinChime$)
- '**************
- i = 1
- in = 0
- while in <> 1
- scan
- if minChime$(i) = "" then minChime$(i) = MinChime$ :in = 1
- i = i + 1
- print #custom.combobox2, "reload"
- 'print #custom.combobox2, MinChime$"
- 'print #custom.combobox2, "select MinChime$"
- print #custom.combobox2, "selectindex 1"
- 'print #custom.combobox2, "selection? MinChime$"
- wend
- wait
- [Browse3]
- filedialog "Open text file", "*.wav", HalfChime$
- i = 0
- while in <> 1
- scan
- if minChime$(i) = "" then minChime$(i) = QuarterChime$ :in = 1:else if minChime$(i+1) = "" then minChime$(i+1) = QuarterChime$ :in = 1
- wend
- wait
- [Browse4]
- filedialog "Open text file", "*.wav", ThreeQuarterChime$
- wait
- [Browse5]
- filedialog "Open text file", "*.wav", HourChime$
- wait
- [Browse6]
- filedialog "Open text file", "*.wav", HourChime$
- wait
- [quit.main] 'End the program
- close #custom
- end
- '**********************************************************
- 'FileOnly$ = SeparateFile$(filename$)
- wait
- 'function SeparateFile$(f$)
- ' fileindex=Len(f$)
- ' filelength=Len(f$)
- ' While Mid$(f$, fileindex,1)<>"\"
- ' scan
- ' fileindex=fileindex-1
- ' Wend
- ' SeparateFile$=Right$(f$,filelength-fileindex)
- 'End Function
- scan
- [GetFileContence]
- scan
- [set]'[OK2]
- 'AlarmChime$ = AlarmChime$(i)
- HourChime$ = fullPath$(1)
- MinChime$ = fullPath$(2)
- AlarmChime$ = fullPath$(3)
- QuarterChime$ = fullPath$(4)
- HalfChime$ = fullPath$(5)
- ThreeQuarterChime$ = fullPath$(6)
- open "Theme.txt" for output as #x
- #x, HourChime$
- #x, MinChime$
- #x, QuarterChime$
- #x, HalfChime$
- #x, ThreeQuarterChime$
- #x,""
- #x,""
- '**************************
- close #x
- close #custom
- goto [loop1]
- scan
- [viewChimes]
- '\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- HourChime$ = fullPath$(1)
- MinChime$ = fullPath$(2)
- AlarmChime$ = fullPath$(3)
- QuarterChime$ = fullPath$(4)
- HalfChime$ = fullPath$(5)
- ThreeQuarterChime$ = fullPath$(6)
- '\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- '\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- WindowWidth = 285
- WindowHeight = 435
- UpperLeftX=0
- UpperLeftY= 0
- ')))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))PART 3))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
- '-----Begin GUI objects code
- TextboxColor$ = "white"
- textbox#view2.textbox1, 15, 42, 245, 25
- textbox#view2.textbox2, 10, 102, 245, 25
- textbox#view2.textbox3, 10, 157, 245, 25
- textbox#view2.textbox4, 10, 217, 245, 25
- textbox#view2.textbox5, 10, 277, 245, 25
- textbox#view2.textbox6, 10, 335, 245, 25
- statictext#view2.statictext7, "Hour Chime", 90, 15, 70, 20
- statictext#view2.statictext8, "Minut Chime", 90, 72, 72, 20
- statictext#view2.statictext9, "Alarm Chime", 90, 132, 76, 20
- statictext#view2.statictext10, "Quarter Chime", 85, 192, 120, 20
- statictext#view2.statictext11, "Half Chime", 95, 252, 100, 20
- textbox#view2.textbox12, 10, 332, 245, 25
- statictext#view2.statictext13, "Three Quarter Chime", 65, 310, 150, 20
- button#view2.button14,"Accept ",[Accept], UL, 90, 372, 70, 25
- '-----End GUI objects code
- open "Veiw Chime" for dialog_nf as#view2
- print#view2, "font ms_sans_serif 10"
- view = 1
- print #view2.textbox1, SeparateFile$(HourChime$)
- print #view2.textbox2, SeparateFile$(MinChime$)
- print #view2.textbox3, SeparateFile$(AlarmChime$)
- print #view2.textbox4, SeparateFile$(QuarterChime$)
- print #view2.textbox5, SeparateFile$(HalfChime$)
- print #view2.textbox6, SeparateFile$(ThreeQuarterChime$)
- '**********************************************************
- wait
- [Accept]
- '\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- HourChime$ = fullPath$(1)
- MinChime$ = fullPath$(2)
- AlarmChime$ = fullPath$(3)
- QuarterChime$ = fullPath$(4)
- HalfChime$ = fullPath$(5)
- ThreeQuarterChime$ = fullPath$(6)
- '\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- close#veiw
- goto [loop1]
Add Comment
Please, Sign In to add comment