Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 04/09/2016 in all areas

  1. When I first visit a new client, I take inventory of their machines, what is on them, stats, and other useful information. Up till now I would either write the information down, or just try to remember it myself. Then I decided why not write a script that would allow me to gather all this useful information, and put it in a format that I can understand and possibly print. I created that program (its even listed in this thread). I then expounded on my ideas, and have created this great Computer Information Library. Feel free to use it as you see fit, but please credit when you use one of my functions. Keywords: CompInfo, CompInfo.au3, Library, Computer, Computers, Info, Information, WMI, Windows Management Instrumentation Requires: AutoIt v3.2 + or AutoIt Beta v3.2.1.2+ Software UDFs _ComputerGetStartup _ComputerGetSoftware _ComputerGetUsers _ComputerGetGroups _ComputerGetServices _ComputerGetThreads _ComputerGetProcesses _ComputerGetOSs _ComputerGetShares _ComputerGetEventLogs _ComputerGetBootConfig _ComputerGetExtensions _ComputerGetDesktops _ComputerGetDependentServices _ComputerGetPrintJobs _ComputerGetLoggedOnUsers Hardware UDFs _ComputerGetDrives _ComputerGetPrinters _ComputerGetProcessors _ComputerGetBIOS _ComputerGetSoundCards _ComputerGetVideoCards _ComputerGetKeyboard _ComputerGetMouse _ComputerGetSystemProduct _ComputerGetNetworkCards _ComputerGetSystem _ComputerGetMonitors _ComputerGetMotherboard _ComputerGetBattery _ComputerGetMemory I have finally created an include file with the above listed UDF's. I will be continually adding to this file. Include File: CompInfo.au3 | 1671 Previous Downloads (Total) Example File: CompInfoExamples.au3 | 929 Previous Downloads (Total) I have listed special thanks in the include file. Please note all example code will now start with #include "CompInfo.au3". I am working on adding error checking and standardizing the code. (Note: I haven't spent much time doing this as of late) NerdFencer has created a set of Drive UDF's that were inspired from this code. If you need more drive information please see his thread. ?do=embed' frameborder='0' data-embedContent> Edit 01: Added _ComputerGetPrinters Edit 02: Added _ComputerGetCPUs Edit 03: Changed _DriveGetInfo to _ComputerGetDrives Edit 04: Updated _ComputerGetDrives with documentation and error checking. Edit 05: Fixed _ComputerGetUsers @ComputerName wasnt being used properly. Edit 06: Added _ComputerGetGroups Edit 07: Updated _ComputerGet Printers/Groups with documentation and error checking. Edit 08: Changed _ComputerGetUsers to include more information. Updated _ComputerGetUsers with documentation and error checking. Edit 09: Changed _ComputerGetStartup to include more information. Updated _ComputerGetStartup with documentation and error checking. Edit 10: Added _ComputerGetServices Edit 11: Added to the top of the post about requiring AutoIt's Beta version. Edit 12: Added _ComputerGetBIOS Edit 13: Added _ComputerGetThreads Edit 14: Changed _ComputerGetCPUs to _ComputerGetProcessors and included more information. Edit 15: Added _ComputerGetProcesses Edit 16: Changed _ComputerGetPrinters to include more information and documentation. Edit 17: Added an Example file containing all 11 current UDF's in one simple file. Edit 18: Added _ComputerGetOSs, _ComputerGetShares, _ComputerGetEventLogs Edit 19: Added to the top about no longer requiring a Beta version to work correctly. Requires v3.2 + Edit 20: Added _ComputerGetSoundCards, _ComputerGetVideoCards Updated _ComputerGetGroups (moved "Description" to element 4 to match the rest of the library). Updated Processes, OSs, Processors, Services, Software, Threads, Printers, BIOS, and EventLogs to have the same header layout. Alphabetized CompInfo.au3 and CompInfoExamples.au3 Edit 21: Updated _ComputerGetOSs (Bug Fix) in CompInfoExamples.au3 (Thanks Koala) Edit 22: Added _ComputerGetKeyboard, _ComputerGetMouse Edit 23: Added _ComputerGetSystemProduct, _ComputerGetBootConfig Updated Spelling errors and misc items in CompInfoExamples.au3 Edit 24: Added _ComputerGetNetworkCards Edit 25: Added _ComputerGetExtensions, and _ComputerGetSystem Edit 26: Added _ComputerGetDesktops, _ComputerGetDependentServices, _ComputerGetPrintJobs, _ComputerGetBattery, _ComputerGetMotherboard, and _ComputerGetMonitor Edit 27: Added _ComputerGetMemory, and _ComputerGetLoggedOnUsers Edit 28: Updated CompInfo Version Information Error Edit 29: Linked ?do=embed' frameborder='0' data-embedContent> Thanks, JS
    1 point
  2. hmm, the original poster was last seen on 26 Sep 2014, last update of this UDF was in 2010, so, that's that. As far as not returning what you need, use ScriptOMatic and try to see is WMI returns what you need. Once you figured out how to make it, post your code to have in the forum. Good luck Jim
    1 point
  3. iamtheky

    ArrayWorkshop

    I at one point in time thought i was good with arrays, i was wrong. You are to arrays what @UEZ is to gdi+
    1 point
  4. Mobius

    Compile question help

    Aut2Exe does (1) in your list automatically.
    1 point
  5. AutoBert

    Compile question help

    I don't protect, i am using #AutoIt3Wrapper_Res_SaveSource=y so i can't loose my source as long i have the exe.
    1 point
  6. czardas

    ArrayWorkshop

    After some consideration, I'm wondering if more functions are actually needed in this library. Inserting or swapping regions can be done with the existing functions already. Does an array ever need to be transposed? I'm still contemplating that last question. Rather than add more functions, perhaps I ought to think more about improvements to functionality with the existing library. The example below demonstrates one method for swapping two regions within a 2D array. The same method could be used to reorder tables in a 3D stack etc... #include 'ArrayWorkshop.au3' #include <Array.au3> ; swapping two regions Local $aArray = [[0,1,2,3,4,5,6,7,8,9], _ ['a','b','c','d','e','f','g','h','i','j']] _ArrayDisplay($aArray, "before swapping columns") ; swap columns 1, 2, 3 with 6, 7 Local $iDimension = 2, $aNew = _ExtractRegion($aArray, $iDimension) ; start with col 0 _ArrayAttach($aNew, _ExtractRegion($aArray, $iDimension, 6, 2), $iDimension) ; add cols 6, 7 _ArrayAttach($aNew, _ExtractRegion($aArray, $iDimension, 4, 2), $iDimension) ; add cols 4, 5 _ArrayAttach($aNew, _ExtractRegion($aArray, $iDimension, 1, 3), $iDimension) ; add cols 1, 2, 3 _ArrayAttach($aNew, _ExtractRegion($aArray, $iDimension, 8, 2), $iDimension) ; add cols 8, 9 $aArray = $aNew _ArrayDisplay($aArray, "after swapping columns 1, 2, 3 with 6, 7") Have I thought of everything? I considered inserting dimensions, because _Predim() only prefixes or appends them, but it's not something I'm ever likely to use.
    1 point
  7. AutoBert

    get picture

    So i am a lucky user the url i used is a file: https://www.autoitscript.com/forum/uploads/profile/photo-thumb-29844.png. Run the script and see a GDI+ Guru. And for the result i only changed $hImage = _GDIPlus_BitmapCreateFromMemory(_Torus()) to $hImage = _GDIPlus_BitmapCreateFromMemory(InetRead('https://www.autoitscript.com/forum/uploads/profile/photo-thumb-29844.png')) and deleted 2 unused funcs after changing.
    1 point
  8. Thank You it works perfect
    1 point
  9. water

    GUI Input sending via Email

    What you see is not the length of the input but the ID of the control. Edit: Too late
    1 point
  10. Welcome to the forum. Read this: How to use IE.au3 UDF with AutoIt v3.3.14.x
    1 point
  11. May be it should look like this: $Body = "Username:Password | " & GUICtrlRead($Username) & ":" & GUICtrlRead($Password) 5:4 aren't in fact the lengths but rather the controls' Id(s)
    1 point
  12. mLipok

    IE pop-up

    What happend when this DialogWindow PopUp ?
    1 point
  13. Juvigy

    IE pop-up

    It depends on the popup and the code of the IE page you load.
    1 point
  14. As argument, not as parameter. Your example would look much better like this: Global $g_bToggle = False For $i = 1 To 2 Toggle($g_bToggle) Next Func Toggle(ByRef $bToggle) If $bToggle Then ; something Else ; something else EndIf $bToggle = Not $bToggle EndFunc
    1 point
  15. Actually, every variable that functions use as parameter should be passed as argument, no matter if it's global or not. Only global constants are free of that.
    1 point
  16. UritOR

    Check for Right Click?

    Well 7 Years passed, i tried to find a solution in google for this problem but still nothing simple... If only it would be _IsPressed(02, $controlName) =(. Anyone knows the easy way without use coordinates ?
    1 point
×
×
  • Create New...