ucserge Posted September 28, 2013 Share Posted September 28, 2013 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. Link to comment Share on other sites More sharing options...
water Posted September 28, 2013 Share Posted September 28, 2013 (edited) 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 September 28, 2013 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 - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
ucserge Posted September 28, 2013 Author Share Posted September 28, 2013 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 More sharing options...
water Posted September 28, 2013 Share Posted September 28, 2013 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 - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
ucserge Posted September 28, 2013 Author Share Posted September 28, 2013 (edited) 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 September 28, 2013 by ucserge Link to comment Share on other sites More sharing options...
water Posted September 28, 2013 Share Posted September 28, 2013 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 - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
ucserge Posted September 28, 2013 Author Share Posted September 28, 2013 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 More sharing options...
BrewManNH Posted September 28, 2013 Share Posted September 28, 2013 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 GudeHow 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 More sharing options...
water Posted September 28, 2013 Share Posted September 28, 2013 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 - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
ucserge Posted September 28, 2013 Author Share Posted September 28, 2013 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 More sharing options...
water Posted September 28, 2013 Share Posted September 28, 2013 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 My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
ucserge Posted September 28, 2013 Author Share Posted September 28, 2013 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 More sharing options...
JohnOne Posted September 28, 2013 Share Posted September 28, 2013 Lol, why would it call wininet? AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
water Posted September 28, 2013 Share Posted September 28, 2013 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 - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
ucserge Posted September 29, 2013 Author Share Posted September 29, 2013 (edited) 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 September 29, 2013 by ucserge Link to comment Share on other sites More sharing options...
TheSaint Posted September 29, 2013 Share Posted September 29, 2013 (edited) 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 September 29, 2013 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) Link to comment Share on other sites More sharing options...
JohnOne Posted September 29, 2013 Share Posted September 29, 2013 Since you choose to ignore what you're being asked regarding the topic right from the start, why don't you take your help and support questions to the help and support forum. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
ucserge Posted September 30, 2013 Author Share Posted September 30, 2013 (edited) 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 September 30, 2013 by ucserge Link to comment Share on other sites More sharing options...
ucserge Posted September 30, 2013 Author Share Posted September 30, 2013 (edited) 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 September 30, 2013 by ucserge Link to comment Share on other sites More sharing options...
ucserge Posted September 30, 2013 Author Share Posted September 30, 2013 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now