help me please, to start notepad at a specific time. Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
XtiiGmA
Posts: 26
Joined: 21 Apr 2021, 10:22

help me please, to start notepad at a specific time.

04 May 2021, 18:39

I need that the time you enter can enter "CalcTimeCheck", like this for example:
if (An_hour = "The hour you enter") && (An_Min = "The minute you enter")
It is a script that when it is run, shows you the time to modify it, and by pressing the Save button, save the time information and have to put it in "CalcTimeCheck". and run notepad.
Thanks friends.

Code: Select all

#SingleInstance, force
#Persistent

;SISTEMA DE ALARMA CON VENTANA;
;Gui, Add, DateTime, 2 vFecha,  dd-MM-yyyy
Gui, Add, DateTime, 1 vHora,  hh:mm tt
Gui, Add, Edit, 
Gui, Add, Button,gSave,Save
Gui, Add, Button,y+ gClose,Close
Gui, show, ,something for today?
return



CalcTimeCheck: 
If (A_Hour=hh) && (A_Min=mm)  ;I NEED HELP HERE!!!
Run notepad.exe
return

Save:
	Gui, submit, NoHide
	SetTimer, CalcTimeCheck, 60000 ; Chekequea cada minuto
	FormatTime, Hora, %Hora%, hh:mm tt
	MsgBox, Time is: `n%Hora%
	return

Close:
	Gui, Hide
	return

GuiClose:
ExitApp

F12:
ExitApp
User avatar
mikeyww
Posts: 27372
Joined: 09 Sep 2014, 18:38

Re: help me please, to start notepad at a specific time.  Topic is solved

04 May 2021, 19:23

Code: Select all

CalcTimeCheck:
If (A_Now < Hora)
 Return
SetTimer, CalcTimeCheck, Off
Run, notepad.exe
Return
XtiiGmA
Posts: 26
Joined: 21 Apr 2021, 10:22

Re: help me please, to start notepad at a specific time.

04 May 2021, 20:31

It's work!! Thanks!
mikeyww wrote:
04 May 2021, 19:23

Code: Select all

CalcTimeCheck:
If (A_Now < Hora)
 Return
SetTimer, CalcTimeCheck, Off
Run, notepad.exe
Return

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Bing [Bot], bobstoner289, Google [Bot], peter_ahk and 337 guests