Search the Community
Showing results for tags 'forever'.
-
Hello, I have a script, its working well. When I start running the script the random website is loading and then the browser is hiding. (That's OK for me.) Then the script is sleeping for a random time. (That's OK for me.) My problem is: After the next website is loading, then the browser is visible again. I can see the browser for a few moments. (until the website is finish the loading.) My question is: How can I solve this problem? (Hide IE browser forever :)) Code: Global $var[4] $var[1] = "http://google.com" $var[2] = "http://google.com" $var[3] = "http://google.com" $x = Random(1, 3, 1) ShellExecute($var[$x]) Local $hWnd = WinWait("[CLASS:IEFrame]", "Google", 10) WinSetState($hWnd, "", @SW_HIDE) Sleep(Random(5000, 8000, 1)) Global $var[4] $var[1] = "http://google.com" $var[2] = "http://google.com" $var[3] = "http://google.com" $x = Random(1, 3, 1) ShellExecute($var[$x]) Local $hWnd = WinWait("[CLASS:IEFrame]", "Google", 10) WinSetState($hWnd, "", @SW_HIDE) Sleep(Random(5000, 8000, 1)) Thanks for helping!