Jump to content

StungStang

Active Members
  • Posts

    235
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

StungStang's Achievements

Polymath

Polymath (5/7)

1

Reputation

  1. Hi to all, i was thinking if there is a way in autoit to add a checkbox on the the "listview top" like this image: Hi!
  2. There is a way to speed up that? I just saw a software that scan HKCR in abount 5/6 seconds! Thanks for the help anyway
  3. Hi to all, i want to Enumerate all the key of two certain registry key, the number of keys is almost equal, but the scan times are very different, this is an example script with it's result: Global $count $int = TimerInit() _Reg_Enum("HKCR\CLSID") $end = TimerDiff($int) ConsoleWrite ("Time for scan " & $count &" keys in HKCR\CLSID ===>: " & $end & " ms." & @CRLF) $int = TimerInit() _Reg_Enum("HKLM\Software\Classes\CLSID") $end = TimerDiff($int) ConsoleWrite ("Time for scan " & $count &" keys in HKLM\Software\Classes\CLSID ===>: " & $end & " ms." & @CRLF) MsgBox(0, "", "Done!") Func _Reg_Enum($r_key) $count = 0 $Ch1 = "" While 1 $Ch1 += 1 $readR1 = RegEnumKey($r_key, $Ch1) If @error <> 0 Then ExitLoop $count += 1 WEnd EndFuncThis is the result : Time for scan 3776 keys in HKCR\CLSID ===>: 77513.6734796813 ms. Time for scan 3762 keys in HKLM\Software\Classes\CLSID ===>: 157.024587458746 ms.As you can see scanning the "HKCR\CLSID" that have only 14 more key than "HKLM\Software\Classes\CLSID" require ~ 1,30 minutes when the "HKLM\Software\Classes\CLSID" require only 157 ms. How is possible? There is a way to speed up that? :/ Hi!
  4. Ok thanks to all, problem solved Hi!
  5. Yes this surely work fine but the dubt is about that: As i said before I'm currently reading the values from startup key: (HKEY_CURRENT_USERSOFTWAREMicrosoftWindowsCurrentVersionRun"), then i read the file path and check if the .exe exists.If this function should not should not be used on the registry, there is a good alternative? Hi!
  6. Thanks Yashied thanks a lot, but i've seen this: "This function should not be used on generic command path templates (from users or the registry)". I'm currently reading from the values from startup key: (HKEY_CURRENT_USERSOFTWAREMicrosoftWindowsCurrentVersionRun"), then i read the file path and check if the .exe exists. Do you suggest me to use this function or what? Hi and thank you so much.
  7. Hi to all i'm trying to made this function: PathRemoveArgs in autoit, but this not work (it surely my fault). Here is my code: #include <Array.au3> $Path = '"C:\program files\TEST.exe" -nogui' $d_call = DllCall("shlwapi.dll", "int", "PathRemoveArgs", "wstr", $Path) If Not @error Then _ArrayDisplay($d_call) EndIfThat will always return the same path, but i want to know only the real path whitout it's arguments. How i can fix that? Hi!
  8. @ripdad This seems to work, i will test later on another machine, hoping that's work for all pc that run the script. Hi! and Thanks!
  9. Maybe i have understand the issue I've write this function: Func _My_Reg_Jump($rVal) If @OSArch = 'X86' Then $_RegeditKey = 'HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionAppletsRegedit' Else $_RegeditKey = 'HKEY_CURRENT_USER64SoftwareMicrosoftWindowsCurrentVersionAppletsRegedit' EndIf If ProcessExists("regedit.exe") Then ProcessClose("regedit.exe") EndIf RegDelete($_RegeditKey, "Lastkey") RegWrite($_RegeditKey, "Lastkey", "REG_SZ", $rVal) If Not @error Then ShellExecute("regedit.exe") Return True Else Return False EndIf EndFunc ;==>_My_Reg_Jump Now for example if i run this command: _My_Reg_Jump("HKEY_CURRENT_USERSoftwareAutoIt v3") The function just open the regedit and the LastKey contain this: HKEY_CURRENT_USERSoftwareAutoIt v3 But if i run the function in this way: _My_Reg_Jump("My ComputerHKEY_CURRENT_USERSoftwareAutoIt v3") All work good. N.B. I've add "My Computer" before the key that i want display, and its work!. Now there is a problem. If i change pc i cannot know what string i've to put before the key that i want display. There is a way to know that? Hi!
  10. This is what the LastKey value located in "HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionAppletsRegedit" contain: My ComputerHKEY_CLASSES_ROOT Hi! and thanks for the help
  11. yes exists. I also have tried a lot and lot existing key but same story. It only open regedit Hi!
  12. Yes fixed, but nothing changes, it's only open regedit but don't go the the specific hive Do you have some suggestion? Hi!
  13. @wakillon I cant run you script with autoit 3.3.8.1. I've this error: AutoIt3IncludeWinAPIEx.au3(6661,104) : ERROR: _WinAPI_DuplicateHandle() already defined. Hi!
  14. _RegJump won't work, it only open regedit ! Anyway thanks for your help Hi!
  15. Same issue, it jusp open regedit P.S. Your code seems to be buggy, there is an unused Wend at line 97. So after you press "Open" button, the script stuck, like a continue loop Hi!
×
×
  • Create New...