Things were slow during lunch...

Anything Really. Just keep it clean!

Moderators: Dorian (MJT support), JRL

Post Reply
User avatar
JRL
Automation Wizard
Posts: 3497
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Things were slow during lunch...

Post by JRL » Tue Aug 16, 2016 6:10 pm

Code: Select all

 Message>Goodbye
  SetControlText>Macro Scheduler Message,TButton,1,>>------>
  GetFocusedObject>hwnd
  Let>MessageTimeout=5
  Timer>StartTime
  Let>TotalTime=
  Let>WinX=0
  Repeat>TotalTime
    Add>WinX,5
    Let>WIN_USEHANDLE=1
    MoveWindow>hwnd,WinX,5
    Let>WIN_USEHANDLE=0
    Timer>EndTime
    Let>TotalTime={%MessageTimeout%-(round((%EndTime%-%StartTime%)/1000))}
    SetControlText>Macro Scheduler Message,TMemo,1,Goodbye in %TotalTime%
    SetControlText>Macro Scheduler Message,TButton,1,>>---%TotalTime%--->
    Wait>0.11
  Until>TotalTime=0
  IfWindowOpen>Macro Scheduler Message*
    SetFocus>Macro Scheduler Message*
  EndIf
  Press Enter
  Exit>0

User avatar
Dorian (MJT support)
Automation Wizard
Posts: 1348
Joined: Sun Nov 03, 2002 3:19 am
Contact:

Re: Things were slow during lunch...

Post by Dorian (MJT support) » Wed Aug 24, 2016 10:36 pm

I like that. Pretty clever. :)
Yes, we have a Custom Scripting Service. Message me or go here

User avatar
CyberCitizen
Automation Wizard
Posts: 721
Joined: Sun Jun 20, 2004 7:06 am
Location: Adelaide, South Australia

Re: Things were slow during lunch...

Post by CyberCitizen » Fri Oct 28, 2016 2:08 am

I like that, didn't even realise you could modify the message dialog like that, very cool.
FIREFIGHTER

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