Loc Posted October 8, 2020 Posted October 8, 2020 1. Is there any way to check for internet connection? Because I use inetread and inetget when running scripts without internet it gives an error. 2. Each computer has different machine codes, let me ask if there is any way to get the code. I see that very long computer does not know who has done this yet?
Moderators Melba23 Posted October 8, 2020 Moderators Posted October 8, 2020 Loc, Did you mean to post this in the AutoItX section? And your second question is complete gibberish - can you explain more fully what you want to do. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
Loc Posted October 8, 2020 Author Posted October 8, 2020 (edited) Google dịch sai hết Ý tôi là: (Câu hỏi 2 là lấy mã máy tính. Mã máy tính thường là số: 1578999843322577785. Hardwave id Edited October 8, 2020 by Loc
Moderators Melba23 Posted October 8, 2020 Moderators Posted October 8, 2020 Moved to the appropriate forum. Moderation Team Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
TheXman Posted October 8, 2020 Posted October 8, 2020 (edited) On 10/8/2020 at 4:06 AM, Loc said: 2. Each computer has different machine codes, let me ask if there is any way to get the code. I see that very long computer does not know who has done this yet? Are you referring to the computer's serial number? If so, you can get it from several sources. One source is by querying the WMI Win32_ComputerSystemProduct object. Edited October 9, 2020 by TheXman CryptoNG UDF: Cryptography API: Next Gen jq UDF: Powerful and Flexible JSON Processor | jqPlayground: An Interactive JSON Processor Xml2Json UDF: Transform XML to JSON | HttpApi UDF: HTTP Server API | Roku Remote: Example Script About Me How To Ask Good Questions On Technical And Scientific Forums (Detailed) | How to Ask Good Technical Questions (Brief) "Any fool can know. The point is to understand." -Albert Einstein "If you think you're a big fish, it's probably because you only swim in small ponds." ~TheXman
TheXman Posted October 8, 2020 Posted October 8, 2020 (edited) On 10/8/2020 at 4:06 AM, Loc said: Is there any way to check for internet connection? Because I use inetread and inetget when running scripts without internet it gives an error. There are plenty of ways to check for internet connectivity. Here's one way. Look at the example in the first post... Edited October 9, 2020 by TheXman CryptoNG UDF: Cryptography API: Next Gen jq UDF: Powerful and Flexible JSON Processor | jqPlayground: An Interactive JSON Processor Xml2Json UDF: Transform XML to JSON | HttpApi UDF: HTTP Server API | Roku Remote: Example Script About Me How To Ask Good Questions On Technical And Scientific Forums (Detailed) | How to Ask Good Technical Questions (Brief) "Any fool can know. The point is to understand." -Albert Einstein "If you think you're a big fish, it's probably because you only swim in small ponds." ~TheXman
Skysnake Posted October 27, 2020 Posted October 27, 2020 Func GET_MAC() ; 2020.04.13$_MACsIP ;https://www.autoitscript.com/forum/topic/165393-get-mac-address-efficiently/ Local $_MAC, $_MACSize, $_MACsIP = @IPAddress1 Local $_MACi, $_MACs, $_MACr, $_MACiIP $_MAC = DllStructCreate("byte[6]") $_MACSize = DllStructCreate("int") DllStructSetData($_MACSize, 1, 6) $_MACr = DllCall("Ws2_32.dll", "int", "inet_addr", "str", $_MACsIP) $_MACiIP = $_MACr[0] $_MACr = DllCall("iphlpapi.dll", "int", "SendARP", "int", $_MACiIP, "int", 0, "ptr", DllStructGetPtr($_MAC), "ptr", DllStructGetPtr($_MACSize)) $_MACs = "" For $_MACi = 0 To 5 If $_MACi Then $_MACs = $_MACs & ":" $_MACs = $_MACs & Hex(DllStructGetData($_MAC, 1, $_MACi + 1), 2) Next DllClose($_MAC) DllClose($_MACSize) Return $_MACs EndFunc ;==>GET_MAC Skysnake Why is the snake in the sky?
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