c# Having trouble getting my head around a loop
Im currently working on a relog program for a game(oldie but goodie) Ultima Online. I got the addies and things for the account input and im able to read/write data into them. Ive attempted trying to figure out this loop for a week now and im about to throw my arms up and say the heck with it. Im positive its something simple that im just over thinking. but anyway heres some details on what im trying to accomplish.
Assume the following:
5 accounts
7 characters per account.
Needs:
-Every Hour the following needs to happen.
--Log in First account.
---Log in first character and do something(takes 60secs) then log out(takes you back to account sign in).
----Log in First account again
-----Log in second character.
------Repeat for each character on account(7 total).
--Log in Second account
---Log in first character and do something(takes 60secs) then log out(takes you back to account sign in).
----Log into Second account again
-----Log in second character.
------Repeat for each character on account(7 total).
--Repeat the pattern for each account.
Dont need help with any of the code other then figuring out the loop required. Any help would be great, example snippits wonderful!.
Assume the following:
5 accounts
7 characters per account.
Needs:
-Every Hour the following needs to happen.
--Log in First account.
---Log in first character and do something(takes 60secs) then log out(takes you back to account sign in).
----Log in First account again
-----Log in second character.
------Repeat for each character on account(7 total).
--Log in Second account
---Log in first character and do something(takes 60secs) then log out(takes you back to account sign in).
----Log into Second account again
-----Log in second character.
------Repeat for each character on account(7 total).
--Repeat the pattern for each account.
Dont need help with any of the code other then figuring out the loop required. Any help would be great, example snippits wonderful!.
). But Ill be Adding to this as time allows. But the entire purpose was for Sleep Macroing.