Jump to content

Country73

Active Members
  • Posts

    145
  • Joined

  • Last visited

  • Days Won

    1

Country73 last won the day on January 11 2012

Country73 had the most liked content!

About Country73

  • Birthday December 27

Profile Information

  • Location
    Missouri

Country73's Achievements

  1. Was curious if anyone has seen/created a function that is similar to "FileOpenDialog" and/or "FileSelectFolder" but is used for the registry. Basically it would open up the registry to allow you to select a specific registry key. As an Example: Request comes in to scan 200+ machines to read - HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersion When script is launched, dialog appears to allow you to select that registry key. For future use, set option to read a specific entry, or to extract all details. Lately I've been limited in the time I can spend on scripting, so I usually wind up reusing old scripts and hard-coding the registry key in it. I would like to use/create a function to select directly from the registry; just figured I would first check to see if anyone else has already created before I attempt to recreate the wheel. Thanks - in advance,
  2. Found the problem..... No idea how, or when, but there was a change made in - au3.keywords.properties The very last entry in the "au3.keywords.udfs" In my file, the very last entry was - _word_quit By removing the trailing "" has corrected the Syntax Folding Only way to figure this out was to do a fresh install of AutoIt and SciTE on a different machine and compare all the files/folders. I don't remember making this change/update in this file. Only noticed the problem on the very last update I ran on AutoIt. Regardless, this was the problem and fix. (Auto Indent is also resolved with this fix)
  3. Maybe I'm overlooking something, but I don't see the SciTE5AutoIt3 download. I downloaded the SciTE4AutoIt3 from - http://www.autoitscript.com/site/autoit-script-editor/downloads/
  4. Ok, I recently updated my AutoIT and SciTE to the latest versions: SciTE - 3.3.7 AutoIT - .3.3.10.2 Ever since this update not all of the "Syntax Folding" works like it should. Not all of them are a problem, really noticing it on my IF statements - see attachment It places a fold on the "ElseIf" and "Else" but not at "If" Along with that, the auto-indent is not working. Shows up as: For $i = 1 to 3 Consolewrite($i & @CRLF) Next Instead of: For $i = 1 to 3 Consolewrite($i & @CRLF) Next All of the color coding is out of whack, but I'm sure I'll figure out the layout that I was using before. Just the Syntax Folding and Auto-Indent is driving me crazy. Anyone else run into this or know a simple fix? Thanks, SciTE.bmp
  5. May need to check the values that are being sent to the function. Notice first entry in the Function to display what is being passed. Just duplicated your post, creating a bogus entry, and was able to delete the "p" while keeping the "servername" key. $myValue = _DeleteRegistry($sKeyname,$sValuename) ConsoleWrite($myValue & @CRLF) Func _DeleteRegistry($sKeyname, $sValuename) ConsoleWrite('RegDelete("' & $sKeyname & '","' & $sValuename & '")' & @CRLF) Local $iOutput Local $sRemark If $sValuename == "" Then $iOutput = RegDelete($sKeyname) Else $iOutput = RegDelete($sKeyname, $sValuename) EndIf If $iOutput == 1 Then ConsoleWrite("Registry"&" "&$sValuename&" " &"has been deleted successfully." & @CRLF) Else ConsoleWrite("Registry"&" "&$sValuename&" " &"has not deleted " & @CRLF) EndIf Return $sRemark EndFunc
  6. Maybe I'm just having a complete brain fart here, but couldn't you just read that from the "set" command? Threw together fairly quickly, but you could record what the current values are. #include <Array.au3> #include <Constants.au3> Local $foo = Run(@ComSpec & " /c Set",@SystemDir,@SW_HIDE,$STDERR_CHILD + $STDOUT_CHILD) Local $line, $vRead = "" While 1 $line = StdoutRead($foo) If @error Then ExitLoop If Not $line = "" Then $vRead &= $line & @CRLF WEnd If Not $vRead = "" Then Local $vSplit = StringSplit($vRead,@CRLF,1) Local $Data[1][2] $Data[0][0] = 0 $x = 1 For $i = 1 To $vSplit[0] If StringInStr($vSplit[$i],'=',0) Then Local $valSplit = StringSplit($vSplit[$i],'=',1) ReDim $Data[UBound($Data) + 1][2] $Data[0][0] = $Data[0][0] + 1 $Data[$x][0] = $valSplit[1] $Data[$x][1] = $valSplit[2] $x += 1 EndIf Next _ArrayDisplay($Data,'ALL VALUES') EndIf I may be missing what you're looking for, very long day...
  7. The Helpfile is your friend, so is the search on the forum. You may also want to look at http://www.appdeploy.com This is generally where I'll start off whenever I'm looking at automating any MSI or InstallShield installation.
  8. You are waiting for the cmd window to be active instead of setting it to the Active state. Take a look at the WinActive, WinActivate Check to see if it is active: If Active then do this.... If not Active, then Activate the window and do this....
  9. How are you adding the icons to your script? Are you using the #AutoIt3Wrapper, FileInstall, etc... How are you trying to use/access the icons from your compiled script? Please provide some more details; posting you script probably wouldn't hurt either.
  10. Your script has sparked an interest, since I've got a script to extract the computer info as well. Curious to compare the two... I'm still stepping through the code, but as for the whole "includes" and determining which ones you really need: Take a look at Xenobiologist's OrganizeIncludes - Can't say how much time this has saved me in my scripting!
  11. For some reason that never worked on my "Local" install of AutoIt, so I went the route I had to use last time to get it to work. I just tried that out on this Portable version and it actually worked this time! Thanks again,
  12. Looking forward to it! Been messing around with this some more and didn't notice, anywhere in this thread, a mention on how to get "OrganizeIncludes" to work in this Portable version. "Thank you" to Xenobiologist for the "OrganizeIncludes"!! (If it was already mentioned and I simply missed it, excuse my entry here...) I had to do a little tinkering around with the settings, but was able to get it to work properly for me. Since my USB has been the F:\ on all workstations I've tested this on, I had to make some "hard coded" changes: Here's what I had to do, so I figured I would share in case it could possibly help someone else out. SciTEUser.properties: command.36.*.au3="f:\AutoItPortable\App\AutoIt3.exe" "f:\AutoItPortable\App\SciTE\OrganizeIncludes\OI_1.0.0.50.au3" "$(FilePath)" OI_1.0.0.50.au3: only 5 slight modifications (I don't use Beta, at the moment, so those entries will be modified later) ; Global Variables Global $InstallPath = "F:\AutoItPortable\App";RegRead($RegKey & 'AutoIt v3\AutoIt', 'InstallDir') Global $InstallVersion = FileGetVersion($InstallPath & "\AutoIt3.exe");RegRead($RegKey & 'AutoIt v3\AutoIt', 'Version') Global $betaInstallPath = "";RegRead($RegKey & 'AutoIt v3\AutoIt', 'betaInstallDir') Global $betaInstallVersion = "";RegRead($RegKey & 'AutoIt v3\AutoIt', 'betaVersion') ; Inside the function: "_prepareINI" Local $regValue = "F:\AutoItPortable\App\Include" ;RegRead('HKCU\Software\AutoIt v3\Autoit', 'Include') Everything else is still working smoothly! Thanks,
  13. Very nice application!! My department is being "transitioned" in the next couple of months and I recently found out that I would not be allowed to install any "unauthorized/external" applications on my new laptop. We are, however, able to run/use applications if they are run from an encrypted USB drive. (small loophole ) I just downloaded/installed your AutoIt3 Portable and everything is working out just fine! Still running through some of my testing, just to make sure I don't run into any problems, but everything is just fine so far! Thank you for this life saver!
×
×
  • Create New...