Jump to content
Sign in to follow this  
ucserge

WinINet

Recommended Posts

ucserge

Hey guys, need a little help here.. After i compile any sort of script autoit has a built in internet check using WinINet to check for the version.

Anyway i can toggle this off? My scripts can't have any internet connections.

Thanks, serge.

Share this post


Link to post
Share on other sites
water

Welcome to AutoIt and the forum!

Without having seen your script I can tell you that AutoIt itself doesn't connect to the internet.

Edited by water

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-12-03 - Version 1.4.11.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
ucserge

Welcome to AutoIt and the forum!

Without having seen your script I can tell you that AutoIt itself doesn't connect to the internet.

I believe you but how come when it's analyzed WinINet pops up, version check? Doesnt actually have to connect to the internet but still calls this function.

Let me know if you need to see my script.

Share this post


Link to post
Share on other sites
water

Seeing your code will definitely help.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-12-03 - Version 1.4.11.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
ucserge

Editted out the code.

Hopefully you inspected it.

Yes its not clean code i only been using autoit for 2 days.

What do you think? Why is it calling WinINet? AutoHotKey does the same thing. Maybe my fault somehow?

Edited by ucserge

Share this post


Link to post
Share on other sites
water

Sorry, just returned and didn't see your code.

Can you compile the following script and check if it connects to the internet?

MsgBox(0, "Test", "Test")

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-12-03 - Version 1.4.11.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
ucserge

It was like 450 lines of code, using pixel search, mousemove, and send functions.

only include was Misc.au3

I don't do the anaysis myself but multiple times it came back as WinINet doing something, most likely a versioncheck.

Anyway to blockout wininet function?

Share this post


Link to post
Share on other sites
BrewManNH

Was the compiled program actually doing a network connection or was it your AV software checking it against some online database?


If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Share this post


Link to post
Share on other sites
water

What do you mean by "came back as WinINet"?

Can you post a screenshot?

Did you test the code I posted above?


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-12-03 - Version 1.4.11.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
ucserge

I dont have AV, I checked with TCPView before and after the same amount of connections after i run my compiled script.

Its not that it actually connects to the internet its that when the file is checked by a debugger you can see that it calls WinINet..

And apparently thats "connecting to the internet"

I don't know how to fix this.

Share this post


Link to post
Share on other sites
water

Which debugger are you talking about? Could it be the debugger which calls WinINet?

BTW: You really use a Windows PC without AV software installed :huh:


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-12-03 - Version 1.4.11.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
ucserge

Lol why would the debugger call WinINet?

I can't be sure why it's doing this, I don't see any internet connections.

I havn't used AV software in more than 5 years, I've spent 2 years creating/debugging my own and other malwares for educational purposes.

I can spot them from a mile away and AV's are useless against encryption technology.

I guess that concludes our discussion since no relevant answer is found must be mine or the debuggers fault.

Thank you all very much.

Share this post


Link to post
Share on other sites
water

Unfortunately from the information you have given us we can't tell what 's going on.

We don't know

  • which operating system, bitness
  • which AutoIt version
  • which debugger
  • the code you use
  • etc. etc.

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-12-03 - Version 1.4.11.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
ucserge

      Sleep(100)
      $coord1 = PixelSearch(882, 157, 922, 167, 0xD2D2D2, 3)
      ErrorCheck(@error)
      Sleep(100)
      $coord2 = PixelSearch(884, 181, 924, 193, 0xD2D2D2, 3)
      ErrorCheck(@error)
      Sleep(100)
      $coord3 = PixelSearch(885, 206, 924, 215, 0xD2D2D2, 3)
      ErrorCheck(@error)
 
      func ErrorCheck($errorcheck)
         Select
         Case Not $errorcheck
            Sleep(100)
         MouseMove(418, 257, 10) ;start
         Sleep(150)
         MouseClick("left")
         Sleep(7000)
             Case $errorcheck
            Sleep(10)
            EndSelect
            Sleep(10)
            EndFunc

I have another issue btw, this checks the results from 3 different pixelsearches.

however it only acts on the last one, if its true regardless of the first 2 it will perform the action.

How do i make it all inside one function(except for the ErrorCheck function that can stay seperate) but have it check the results from all 3 pixelsearches

and then only execute if all 3 are Not @error?

I got this to work with multiple functions but not inside one function.

Edited by ucserge

Share this post


Link to post
Share on other sites
TheSaint

Doesn't look to me like you are checking what the error is or might be?

It seems to me, that $errorcheck is always going to have a value, so why are you not checking for a value?

i.e. Case Not $errorcheck = 1

or somesuch.

I'd personally drop the NOT and just use Case Else for the second lot of processing.

So start with ->

Case $errorcheck = 1

or whatever value is required.

Edited by TheSaint

AutoIt.4.Life Clubrooms - Life is like a Donut (secret key)

Make sure brain is in gear before opening mouth!
Remember, what is not said, can be just as important as what is said.

Spoiler

What is the Secret Key? Life is like a Donut

If I put effort into communication, I expect you to read properly & fully, or just not comment.
Ignoring those who try to divert conversation with irrelevancies.
If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it.
I'm only big and bad, to those who have an over-active imagination.

I may have the Artistic Liesense ;) to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)

userbar.png

Share this post


Link to post
Share on other sites
ucserge


I'd personally drop the NOT and just use Case Else for the second lot of processing.

So start with ->

Case $errorcheck = 1

 

Thank you for this i will try this out, i know that its a noob thing to ask but i have only been using autoit for a few days now.

i will post back with the results.

Edited by ucserge

Share this post


Link to post
Share on other sites
ucserge

Doesn't look to me like you are checking what the error is or might be?

It seems to me, that $errorcheck is always going to have a value, so why are you not checking for a value?

i.e. Case Not $errorcheck = 1

or somesuch.

I'd personally drop the NOT and just use Case Else for the second lot of processing.

So start with ->

Case $errorcheck = 1

or whatever value is required.

 

Ok i got that part i don't know why i didnt think of that

      func OtherFunction()
      Sleep(100)
      $coord1 = PixelSearch(882, 157, 922, 167, 0xD2D2D2, 3)
      ErrorCheck(@error)
      Sleep(100)
      $coord2 = PixelSearch(884, 181, 924, 193, 0xD2D2D2, 3)
      ErrorCheck(@error)
      Sleep(100)
      $coord3 = PixelSearch(885, 206, 924, 215, 0xD2D2D2, 3)
      ErrorCheck(@error)
      EndFunc
 
     func ErrorCheck($errorcheck)
      Select
      Case $errorcheck = 1
      Sleep(10)
      Case $errorcheck = 0
      Sleep(100)
      MouseMove(418, 257, 10) ;start
      Sleep(150)
      MouseClick("left")
      Sleep(7000)
      EndSelect
      EndFunc

 

Question is i don't know how to get it to check the error for all 3 individually.

Right now if only 1 of them returns $errorcheck = 0 it will execute.

It needs to check all 3 for $errorcheck = 0 and then only execute.

Edited by ucserge

Share this post


Link to post
Share on other sites
ucserge

Never mind, i found a solution ->

$number = 0
      Sleep(100)
      $search1 = PixelSearch(882, 157, 922, 167, 0xD2D2D2, 3)
      If @error = 0 Then $number += 1
      Sleep(100)
      $search2 = PixelSearch(884, 181, 924, 193, 0xD2D2D2, 3)
      If @error = 0 Then $number += 2
      Sleep(100)
      $search3 = PixelSearch(885, 206, 924, 215, 0xD2D2D2, 3)
      If @error = 0 Then $number += 4
      
      Switch $number
      Case 7
      Sleep(100)
      MouseMove(418, 257, 10) ;start
      Sleep(150)
      MouseClick("left")
      Sleep(7000)
      EndSwitch

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  

×