is that possible?

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
ranzou
Newbie
Posts: 3
Joined: Mon Jun 01, 2009 5:39 pm

is that possible?

Post by ranzou » Wed May 12, 2010 8:35 pm

hi all!, i have a macro that i want to compile into a exe, that macro must to work on schuder times but i dont want to put fixed times, i want something like the user open the exe select the date/time that he wants to execute the macro, press ok, the exe got minimized and execute the macro on the date/time that the user have selected before, is that possible? yes? how?

adroege
Automation Wizard
Posts: 438
Joined: Tue Dec 07, 2004 7:39 pm

This should get you started

Post by adroege » Thu May 13, 2010 1:08 pm

This should get you started....


[code]
Input>Target_date,Enter Date (mm/dd/yyyy) to execute,
Input>Target_time,Enter Time (hh:mm 24 hour time) to execute,


Year>Cur_Year
Month>Cur_Month
Day>Cur_Day

Hour>Cur_Hour
Min>Cur_Min
Sec>Cur_Sec

Separate>Target_date,/,arrItems
Let>Target_Month=arrItems_1
Let>Target_Day=arrItems_2
Let>Target_Year=arrItems_3

Separate>Target_time,:,arrItems
Let>Target_Hour=arrItems_1
Let>Target_Min=arrItems_2

MessageModal>Current Date is %Cur_Month%/%Cur_Day%/%Cur_Year% %CRLF%Current Time is %Cur_Hour%:%Cur_Min%:%Cur_Sec% %CRLF%%CRLF%Target Date is %Target_Month%/%Target_Day%/%Target_Year% %CRLF%Target Time is %Target_Hour%:%Target_Min%

Label>Loop
Year>Cur_Year
Month>Cur_Month
Day>Cur_Day

Hour>Cur_Hour
Min>Cur_Min

If>Cur_Year=Target_Year
If>Cur_Month=Target_Month
If>Cur_Day=Target_Day
If>Cur_Hour=Target_Hour
If>Cur_Min=Target_Min
MessageModal>It is Time!
Endif
Endif
Endif
Endif
Endif

Wait>30
Goto>Loop
[/code]

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts