Hello,
I am having a brain cramp for macro that at times I would like to interact with and other times let run on it's own; based on lack of input.
So the input window would appear and if in 'x' amount of time there's no entry into the window it would continue on it's path.
Hope that makes sense.
Thanks, Ed
Massachusetts, USA
Time_Out for an Input Window?
Moderators: JRL, Dorian (MJT support)
Code: Select all
Macro>ask.scp
Wait>10
IfWindowOpen>Confirm,CloseWindow
Label>Answer
GetClipboard>var
Message>Answer was: %var%
Goto>End
Label>CloseWindow
SetFocus>Confirm
WindowAction>3,Confirm
Message>There was no answer!
Label>End
Message>Done
Code: Select all
Ask>Anything new?,var
PutClipboard>%var%
Code: Select all
Macro>input.scp
Wait>10
IfWindowOpen>Macro Scheduler Input,CheckInput
Goto>GetTheInput
Label>CheckInput
SetFocus>Macro Scheduler Input
PushButton>Macro Scheduler Input,OK
If>var=NO, End
If>var=, End
Message>The input made: %var%
Goto>End
Label>GetTheInput
GetClipboard>%var%
Label>End
input.scp
Code: Select all
Input>var,Do you realy like G.W.Bush ?, NO
PutClipboard>%var%