Sign in to follow this  
Followers 0
Das Ami

Confusing script...

6 posts in this topic

Hi everyone it's been a while since I last used Autoit and I've got some problems with my script.

It is supposed to fake a counter for me by activating Tor, (a proxy system) starting Firefox, deleting all cookies, going to the bookmarked site, de-activate Tor (to get another IP) and start it over.

This is what I've got so far but it seems that I've got alot of errors in there, I had to use a shitload of confusing while loops cause there's no goto command.

I'd be very grateful for any help.

While 1
    $tor = PixelGetColor( 812 , 757 )
    ;Get the color of 812 757
    
If $tor = 9826915 Then
    ;If the color is 9826915 (green - tor is active) then
    WinActivate ( "DiebSpiel - Mozilla Firefox" )
    ;Activate Firefox
    MouseClick ( "left" ,226, 32 , 1 , 0  )
    ;Click on "Tools"
    MouseClick ( "left" , 227, 242 , 1 , 20  )
    ;Click on "Clear Private Data"
    MouseClick ( "left" , 248, 94 , 1 , 20  )
    ;Click on the bookmark and load the Site
While 1
    $siteload = PixelGetColor( 168 , 35 )
    ;Get the color of the site to check if it loaded already
        If $siteload = 7047368 Then
            ;If it's 7047368 (blue - loaded) then
            MouseClick ( "left" , 812, 757 , 1 , 10  )
            ;Open the Tor Menu
            MouseClick ( "left" , 841, 548 , 1 , 10  )
            ;DeActivate Tor
            ExitLoop
        Else
            Sleep ( 200 )
            ;Wait till it finishes loading
            WEnd        
    
ElseIf $tor = 11288127 Then
    ;If the color is 11288127 (red - inactive) then
    MouseClick ( "left" , 812, 757 , 1 , 10  )
    ;Open the Tor Menu
    MouseClick ( "left" , 841, 548 , 1 , 10  )
    ;Activate Tor
EndIf
WEnd
;Start it over

Share this post


Link to post
Share on other sites



you only forgot one endif, maybe for running firefox check out the Run command and check out controlsend and such, and the autoit window info along with the control send, may remove some errors with mouse clicks

While 1
    $tor = PixelGetColor( 812 , 757 )
    ;Get the color of 812 757
   
If $tor = 9826915 Then
    ;If the color is 9826915 (green - tor is active) then
    WinActivate ( "DiebSpiel - Mozilla Firefox" )
    ;Activate Firefox
    ;why not use Run
    MouseClick ( "left" ,226, 32 , 1 , 0  )
    ;Click on "Tools"
    ;
    MouseClick ( "left" , 227, 242 , 1 , 20  )
    ;Click on "Clear Private Data"
    MouseClick ( "left" , 248, 94 , 1 , 20  )
    ;Click on the bookmark and load the Site
While 1
    $siteload = PixelGetColor( 168 , 35 )
    ;Get the color of the site to check if it loaded already
        If $siteload = 7047368 Then
            ;If it's 7047368 (blue - loaded) then
            MouseClick ( "left" , 812, 757 , 1 , 10  )
            ;Open the Tor Menu
            MouseClick ( "left" , 841, 548 , 1 , 10  )
            ;DeActivate Tor
            ExitLoop
        Else
            Sleep ( 200 )
          ;Wait till it finishes loading
        EndIf
WEnd       
ElseIf $tor = 11288127 Then
    ;If the color is 11288127 (red - inactive) then
    MouseClick ( "left" , 812, 757 , 1 , 10  )
    ;Open the Tor Menu
    MouseClick ( "left" , 841, 548 , 1 , 10  )
    ;Activate Tor
EndIf
WEnd
;Start

Share this post


Link to post
Share on other sites

Or maybe use IE.au3 for your script. Then you dont have to use pixelgetcolor to see if its loaded, etc.


AutoIt Scripts:Aimbot: Proof of Concept - PixelSearching Aimbot with several search/autoshoot/lock-on techniques.Sliding Toolbar - Add a nice Sliding Toolbar to your next script. Click the link to see an animation of it in action!FontInfo UDF - Get list of system fonts, or search to see if a particular font is installed.Get Extended Property UDF - Retrieve a files extended properties (e.g., video/image dimensions, file version, bitrate of song/video, etc)

Share this post


Link to post
Share on other sites

He's using Firefox, not IE.

Share this post


Link to post
Share on other sites

He's using Firefox, not IE.

... I know that? I was suggesting he switch.


AutoIt Scripts:Aimbot: Proof of Concept - PixelSearching Aimbot with several search/autoshoot/lock-on techniques.Sliding Toolbar - Add a nice Sliding Toolbar to your next script. Click the link to see an animation of it in action!FontInfo UDF - Get list of system fonts, or search to see if a particular font is installed.Get Extended Property UDF - Retrieve a files extended properties (e.g., video/image dimensions, file version, bitrate of song/video, etc)

Share this post


Link to post
Share on other sites

yes it would make your script alot less buggy and so simple you would then be able to use httpsetproxy to set the proxy(idk if IE.au3 can set a proxy) and then you IE.au3 to simply navigate through to a site and basically do whatever you want

Share this post


Link to post
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
Sign in to follow this  
Followers 0