careca Posted December 31, 2016 Share Posted December 31, 2016 (edited) Hi, Maybe it's late, maybe i don't know what im doing, all i know is that $Str is different than 0, first result for me is '*' but still does 'Else'. Im puzzled. Local $sVar, $i = 1 Do $sVar = RegEnumKey("HKCR", $i) If @error <> 0 Then ExitLoop $Str = StringInStr($sVar, '.') If $Str <> 0 Then ConsoleWrite("Value Name #" & $i & " under in AutoIt3 key " & $sVar &' - '&@MSEC&@CRLF) $i = $i + 1 Else $i = 'Done' EndIf Until $i = 'Done' any idea what is going on? From what i get, if stringinstr fails to find the '.' it should output 0. Edited December 31, 2016 by careca Spoiler Renamer - Rename files and folders, remove portions of text from the filename etc. GPO Tool - Export/Import Group policy settings. MirrorDir - Synchronize/Backup/Mirror Folders BeatsPlayer - Music player. Params Tool - Right click an exe to see it's parameters or execute them. String Trigger - Triggers pasting text or applications or internet links on specific strings. Inconspicuous - Hide files in plain sight, not fully encrypted. Regedit Control - Registry browsing history, quickly jump into any saved key. Time4Shutdown - Write the time for shutdown in minutes. Power Profiles Tool - Set a profile as active, delete, duplicate, export and import. Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes. NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s. IUIAutomation - Topic with framework and examples Au3Record.exe Link to comment Share on other sites More sharing options...
careca Posted December 31, 2016 Author Share Posted December 31, 2016 Oh crap, i figured it out, first key in registry is *, so of course there it isn't a dot. i need to go to sleep. genius257 1 Spoiler Renamer - Rename files and folders, remove portions of text from the filename etc. GPO Tool - Export/Import Group policy settings. MirrorDir - Synchronize/Backup/Mirror Folders BeatsPlayer - Music player. Params Tool - Right click an exe to see it's parameters or execute them. String Trigger - Triggers pasting text or applications or internet links on specific strings. Inconspicuous - Hide files in plain sight, not fully encrypted. Regedit Control - Registry browsing history, quickly jump into any saved key. Time4Shutdown - Write the time for shutdown in minutes. Power Profiles Tool - Set a profile as active, delete, duplicate, export and import. Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes. NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s. IUIAutomation - Topic with framework and examples Au3Record.exe Link to comment Share on other sites More sharing options...
careca Posted December 31, 2016 Author Share Posted December 31, 2016 Just so that this topic isn't totally useless, here's what i just done: Local $sVar, $sVar2,$sVar3,$sVar4, $Str, $Str2, $i = 2 Do $sVar = RegEnumKey("HKCR", $i) If @error <> 0 Then ExitLoop $Str = StringInStr($sVar, '.') If $Str <> 0 Then For $u = 1 To 5 $sVar2 = RegEnumKey("HKCR\" & $sVar, $u) If @error <> 0 Then ExitLoop $Str2 = StringInStr($sVar2, 'OpenWithList', 2) If $Str2 <> 0 Then For $v = 1 To 5 $sVar3 = RegEnumKey("HKCR\" & $sVar & '\' & $sVar2, $v) If @error <> 0 Then ExitLoop $sVar4 = RegRead("HKCR\" & $sVar & '\' & $sVar2 & '\' & $sVar3, '') If $sVar4 <> '' Then ConsoleWrite("HKCR\" & $sVar & '\' & $sVar2&'\' & $sVar3 &'\' &$sVar4 &' - ' & @MSEC & @CRLF) EndIf Next EndIf Next $i = $i + 1 Else $i = 'Done' EndIf Until $i = 'Done' Provides a list of the 'OpenWithList' executables with corresponding path, for the extension. Spoiler Renamer - Rename files and folders, remove portions of text from the filename etc. GPO Tool - Export/Import Group policy settings. MirrorDir - Synchronize/Backup/Mirror Folders BeatsPlayer - Music player. Params Tool - Right click an exe to see it's parameters or execute them. String Trigger - Triggers pasting text or applications or internet links on specific strings. Inconspicuous - Hide files in plain sight, not fully encrypted. Regedit Control - Registry browsing history, quickly jump into any saved key. Time4Shutdown - Write the time for shutdown in minutes. Power Profiles Tool - Set a profile as active, delete, duplicate, export and import. Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes. NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s. IUIAutomation - Topic with framework and examples Au3Record.exe Link to comment Share on other sites More sharing options...
iamtheky Posted December 31, 2016 Share Posted December 31, 2016 2 hours ago, careca said: need to go to sleep I almost asked why you were comparing a $Str with a number, tired assumptions are fun. ,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-. |(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/ (_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_) | | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) ( | | | | |)| | \ / | | | | | |)| | `--. | |) \ | | `-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_| '-' '-' (__) (__) (_) (__) Link to comment Share on other sites More sharing options...
genius257 Posted December 31, 2016 Share Posted December 31, 2016 4 minutes ago, iamtheky said: I almost asked why you were comparing a $Str with a number, tired assumptions are fun. $Str IS a number. Representing the position of "." found in $sVar My highlighted topics: AutoIt Package Manager, AutoItObject Pure AutoIt, AutoIt extension for Visual Studio Code Github: AutoIt HTTP Server, AutoIt HTML Parser Link to comment Share on other sites More sharing options...
iamtheky Posted December 31, 2016 Share Posted December 31, 2016 (edited) was the joke not painfully obvious? who names their number $String? Edited December 31, 2016 by iamtheky kylomas 1 ,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-. |(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/ (_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_) | | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) ( | | | | |)| | \ / | | | | | |)| | `--. | |) \ | | `-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_| '-' '-' (__) (__) (_) (__) Link to comment Share on other sites More sharing options...
genius257 Posted December 31, 2016 Share Posted December 31, 2016 39 minutes ago, iamtheky said: was the joke not painfully obvious? who names their number $String? My apologies. I'm afraid i do not interpret humor well through text. And from experience i can tell you, when depraved of sleep there is no guarantee that anything makes sense. My highlighted topics: AutoIt Package Manager, AutoItObject Pure AutoIt, AutoIt extension for Visual Studio Code Github: AutoIt HTTP Server, AutoIt HTML Parser Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted January 1, 2017 Moderators Share Posted January 1, 2017 (edited) Certainly nothing is going to make sense if you're depraved... Spoiler Edited January 1, 2017 by JLogan3o13 genius257 1 "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
Somerset Posted January 1, 2017 Share Posted January 1, 2017 10 minutes ago, JLogan3o13 said: Certainly nothing is going to make sense if you're depraved... Reveal hidden contents You called? JLogan3o13 1 Link to comment Share on other sites More sharing options...
Danyfirex Posted January 1, 2017 Share Posted January 1, 2017 Hello. nothing important. but why comparing this way "If @error<>0 then" . Just do it like "if If @error then"... Saludos Danysys.com AutoIt... UDFs: VirusTotal API 2.0 UDF - libZPlay UDF - Apps: Guitar Tab Tester - VirusTotal Hash Checker Examples: Text-to-Speech ISpVoice Interface - Get installed applications - Enable/Disable Network connection PrintHookProc - WINTRUST - Mute Microphone Level - Get Connected NetWorks - Create NetWork Connection ShortCut Link to comment Share on other sites More sharing options...
careca Posted January 2, 2017 Author Share Posted January 2, 2017 Yeah. Either way is fine to me, sometimes i do one, other times i do the other. Spoiler Renamer - Rename files and folders, remove portions of text from the filename etc. GPO Tool - Export/Import Group policy settings. MirrorDir - Synchronize/Backup/Mirror Folders BeatsPlayer - Music player. Params Tool - Right click an exe to see it's parameters or execute them. String Trigger - Triggers pasting text or applications or internet links on specific strings. Inconspicuous - Hide files in plain sight, not fully encrypted. Regedit Control - Registry browsing history, quickly jump into any saved key. Time4Shutdown - Write the time for shutdown in minutes. Power Profiles Tool - Set a profile as active, delete, duplicate, export and import. Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes. NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s. IUIAutomation - Topic with framework and examples Au3Record.exe Link to comment Share on other sites More sharing options...
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