c# go to action

mrmadman

Client
Регистрация
20.12.2016
Сообщения
50
Благодарностей
2
Баллы
8
is there a way for a c# method to repeat the action before it? I dont want to use an if block because i would need hundreds.

for example

if(x > y)
{
//repeat last action
}
 

PHaRTnONu

Client
Регистрация
01.10.2016
Сообщения
340
Благодарностей
48
Баллы
28
Do loop until late var met?
 

mrmadman

Client
Регистрация
20.12.2016
Сообщения
50
Благодарностей
2
Баллы
8
But the previous action is getting the top value of a variable, for example


if(top > screenSize)
{
//press pageDown
// repeat last action in PM (Get Top Value Action)
}

I know i could get the top value in c#, but its going to take a long time to hardcode every single thing i want to click. Im looking for a better way.
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)