Jump to content

WinINet


ucserge
 Share

Recommended Posts

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 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Seeing your code will definitely help.

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

      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
Link to comment
Share on other sites

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

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

Link to comment
Share on other sites


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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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