Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus
if A = Window
{
if B= Image to File
{
Take the screenshot
}
else
{
Several clicks to make B= Image to File
Sleep, 100
Take the screenshot
}
}
else
{
Several clicks to make A = Window
if B= Image to File
{
Take the screenshot
}
else
{
Several clicks to make B= Image to File
Sleep, 100
Take the screenshot
}
}
Is there a way to simplify this? Two conditions are already pretty time-consuming for me to write the code in that fashion, but I might run into situations requiring more than that. I really appreciate anyone who can help.