Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Run loop every 3 minutes endlessly


  • Please log in to reply
3 replies to this topic
edoggy88
  • Members
  • 2 posts
  • Last active: Jun 06 2012 08:28 PM
  • Joined: 06 Jun 2012
I am new to this.

I am trying to run this every 3 minutes, with and endless loop and "1" as the stop key

WinWait, Program Manager,
IfWinNotActive, Program Manager, , WinActivate, Program Manager,
WinWaitActive, Program Manager,
Send, {PGUP}{PGUP}{PGUP}{PGUP}{PGUP}{PGUP}{PGUP}{PGUP}{PGUP}{PGUP}{PGUP}
WinWait, RightBed :: Bed Board - Windows Internet Explorer,
IfWinNotActive, RightBed :: Bed Board - Windows Internet Explorer, , WinActivate, RightBed :: Bed Board - Windows Internet Explorer,
WinWaitActive, RightBed :: Bed Board - Windows Internet Explorer,
MouseClick, left, 245, 210
Sleep, 100

How do i do this?

janopn
  • Members
  • 694 posts
  • Last active: Jun 12 2017 03:41 PM
  • Joined: 08 Jul 2011
Hi!

To Run "X" set of instructions every "Y" ammount of time, the best option is Settimer.

Settimer, Instructions, 18000 ; 18.000 ms = 3 minutes
return

Instructions:
WinWait, Program Manager,
IfWinNotActive, Program Manager, , WinActivate, Program Manager,
WinWaitActive, Program Manager,
Send, {PGUP}{PGUP}{PGUP}{PGUP}{PGUP}{PGUP}{PGUP}{PGUP}{PGUP}{PGUP}{PGUP}
WinWait, RightBed :: Bed Board - Windows Internet Explorer,
IfWinNotActive, RightBed :: Bed Board - Windows Internet Explorer, , WinActivate, RightBed :: Bed Board - Windows Internet Explorer,
WinWaitActive, RightBed :: Bed Board - Windows Internet Explorer,
MouseClick, left, 245, 210
Sleep, 100
return

1::Settimer, Instructions, off

All in all is all we are ~

edoggy88
  • Members
  • 2 posts
  • Last active: Jun 06 2012 08:28 PM
  • Joined: 06 Jun 2012
Thanks, will this be an endless loop? Sorry! Extremely new at thins

Person93
  • Members
  • 443 posts
  • Last active: Feb 11 2014 12:07 AM
  • Joined: 26 Jan 2012
The 'SetTimer' command runs the specified subroutine at the specified interval.

SetTimer, RoutineX, 50

The above example would run 'RoutineX' every 50 miliseconds.