Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 06/21/2015 in all areas

  1. JLogan3o13

    Trivia autoit

    I think you're looking for my patented Every Answer to Every Question Ever script $input = InputBox( "Every answer to every question - Ever", "Please enter type in your question." ) ShellExecute ("http://www.lmgtfy.com/?q=" &$input)
    2 points
  2. TheDcoder, Do you start driving before you know where you want to go to? First comes planning, then comes doing. Wikipedia describes it much better: PDCA. Happy reading
    2 points
  3. water

    Trivia autoit

    The Answer to the Ultimate Question of Life, the Universe, and Everything is 42. But what is the question? Sorry, couldn't resist
    1 point
  4. Jos

    Remote TCP connections

    Have you checked if the server is really listening on port 45962 with "netstat -a" ? What happens when you run them both on the Server? Jos
    1 point
  5. Another aspect: As the return value of MsgBox is the ID of the button pressed function Test returns this ID to the calling function. Most of the time this information is ignored by the script.
    1 point
  6. Return MsgBox(64, "", $x)simply saves some lines of code. Return leaves the function after having displayed the MsgBox. Example: Func Test($sValue) If $sValue <> "A" Then Return MsgBox(64, "Error", "Invalid value for $sValue!") ; More ; Statements EndFunc
    1 point
  7. You could use something like this:  #include <File.au3> While 1 $hWnd = WinGetHandle("AutoIt Error") If WinExists($hWnd) Then Local $sText = WinGetText($hWnd) _FileWriteLog(@ScriptDir & "\Example.log", $sText) EndIf Sleep(50) WEnd This is just the basic idea and still needs some work.
    1 point
  8. Please watch Morthwart's great AutoIt tutorials! TD P.S I learned AutoIt using these videos
    1 point
  9. You really need to start learning how AutoIt works. The help file and the wiki with many tutorials are good starting points. func test1() ;;;;if statement with many condition Return "xxxx" EndFunc BTW: No need to use call here $aaa = call(Test1)simply use $aaa = Test1()
    1 point
  10. GaryFrost

    Admin Tool

    This started as a way to learn more about wmi and ldap Removed any info pertaining to my work-place, so info in ini will need to be changed The ldap method worked, but was to slow amongst other things, so used net view to get the browser info for systems online on the domain, haven't had time to figure out a better way (maybe active directory) link to external free tools used Sysinternals PSTools Currently it (requires beta) gets the list of pc's online on domain and populates a listview populates 6 listviews Tab 1: Software that can be removed via msiexec command silently and remotely (right click, select uninstall) (list populated using wmi) Tab 2: List of PID, process names, and paths, and (right click, select kill "uses wmi") remote process (list populated using wmi) Tab 3: Services (list populated using wmi) (right click, select stop/start/pause/restart/delete service using wmi) Tab 4: Some system info in editbox List of Logged on users (using psloggedon from sysinternals) Drive information (Drive Letter, type, size, free space, format type i.e ntfs using wmi), right clicking on drive can explore remote drive (configured in ini to use iexplorer)) Tab 5: List of all applications installed on the remote machine (using psinfo from sysinternals) Plan on adding more, for example export of data. Comments/suggestions/improvements are most welcome. CODE Edit: v1.9.1.4 Fixed up the IP Range Filtering Function (back-spacing, tabs, length) Also fixed so that Filter is updated imediatly so that refresh can be done right away. Edit: v1.9.1.3 Added IP Range Filtering Edit: v1.9.1.2 Added a couple of context menu items, look for them in the machine list Some code optimization, also took some of the code out of the main loop and put into functions Edit: v1.9.1.1 Ping time out configurable Checks to see what $Domain is, if it is equal to "your-domain" then the domain configscreen will pop up (doesn't populate machine list if it is equal to "your-domain"). Must change to your domains name. Context menu for populate software instead of $GUI_EVENT_PRIMARYDOWN Selecting machine through search does not automatically populate pc info anymore (might have populate for one not wanted) If machine filter changes, no longer automatically re-populates list, will have to selectRefresh Machine List from context menu Edit: v1.9.1.0 User now has choice of retrieving list of pcs by either ldap or net view, select config menu some internal changes. Edit: v1.9: I replaced the net view with the retrievial of the pcs with ldap Added the ip address to the machine list All pcs will have the offline icon at this time, select one if it is pingable it changes the icon to online Edit: corrected error with context menu on services Edit: v1.8 added Change Start Mode to Services (Boot,System,Automatic,Manual,Disabled) Edit: v1.7 now using all wmi for process and service tabs, no longer need pskill and psservice from sysinternals, Changed from label to editbox read-only for system info on Tab 4 Edit: v1.6 since there seems to be some interest (47 downloads of 1st version) I decided to put the latest up, added all the files need from sysinternals into the zip file. Enjoy, Gary
    1 point
×
×
  • Create New...