1. I want to know how to get the gui on min right screen. I have searched online but i cant find it how to do it.
2. I want to try 3 gui's what i like it most the version of the gui that i have now and 1 with full screen and 1 with in the right corner.
3. I want even that i can toggle it i doesn't know what part of the code must i toggle so i can switch off the timer and switch on again.
the color and the text color is fine for me.
Code: Select all
F6::
toggle_Timer := !toggle_Timer
if(toggle_Timer) ;if true
SetTimer, Clock, 1000 ;48m - GTA Day Timer
else
SetTimer, Clock, Off
Return
SysGet, Mon2, Monitor, 2
width := 280, time := 20000101004800 ;48m - GTA Day Timer
Gui -Caption
Gui, Font, s32 c008000
Gui, Add, Text, w%width% vtext
Gui, Show, w%width%, Timer
Gui, Color, 000000
SetTimer, Clock, 1000
Clock:
FormatTime, clock, %time%, HH:mm:ss
time += -1, Seconds
GuiControl,, text, %clock%
If (clock = "00:00:00"){
SetTimer, Clock, Off
}
If (clock = "00:00:06"){
SetTimer, DbD1, 6000
}
DbD1(){
SoundPlay, %A_WinDir%\Media\Alarm01.wav
}
thanks in advance
[Mod edit: Moved topic from 'Scripts and Functions'.]