Mandolen11 Posted December 7, 2017 Share Posted December 7, 2017 i need convert this code to au3 please Hidden = "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Hidden" Set Command1 = WScript.CreateObject("WScript.Shell") Check = Command1.RegRead(Hidden) If Check = 2 Then Command1.RegWrite Hidden, 1, "REG_DWORD" Else Command1.RegWrite Hidden, 2, "REG_DWORD" End If Command1.SendKeys "{F5}" thanks Link to comment Share on other sites More sharing options...
Earthshine Posted December 7, 2017 Share Posted December 7, 2017 (edited) what have you tried? this is all in the help file I believe. the reading and writing of registry and such. get cracking. post your code if you want help Edited December 7, 2017 by Earthshine My resources are limited. You must ask the right questions Link to comment Share on other sites More sharing options...
jdelaney Posted December 7, 2017 Share Posted December 7, 2017 RegRead RegWrite Earthshine 1 IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window. Link to comment Share on other sites More sharing options...
Mandolen11 Posted December 7, 2017 Author Share Posted December 7, 2017 this vbs code but i just start learn autoit but can't convert vbs to au3 code Link to comment Share on other sites More sharing options...
Earthshine Posted December 7, 2017 Share Posted December 7, 2017 (edited) do you understand the vbs code? https://www.autoitscript.com/autoit3/docs/ specifically https://www.autoitscript.com/autoit3/docs/functions/RegRead.htm https://www.autoitscript.com/autoit3/docs/functions/RegWrite.htm Edited December 7, 2017 by Earthshine Mandolen11 1 My resources are limited. You must ask the right questions Link to comment Share on other sites More sharing options...
Mandolen11 Posted December 7, 2017 Author Share Posted December 7, 2017 yes, this code hidden files and show files again without folder options settings Link to comment Share on other sites More sharing options...
Mandolen11 Posted December 7, 2017 Author Share Posted December 7, 2017 6 minutes ago, Earthshine said: do you understand the vbs code? https://www.autoitscript.com/autoit3/docs/ specifically https://www.autoitscript.com/autoit3/docs/functions/RegRead.htm https://www.autoitscript.com/autoit3/docs/functions/RegWrite.htm i read that but i don't know how i convert this code to au3 this my 3th day learn autoit can you help me Link to comment Share on other sites More sharing options...
Mandolen11 Posted December 7, 2017 Author Share Posted December 7, 2017 20 minutes ago, Earthshine said: what have you tried? this is all in the help file I believe. the reading and writing of registry and such. get cracking. post your code if you want help this all of code , try make vbs file and try use this file Link to comment Share on other sites More sharing options...
jdelaney Posted December 7, 2017 Share Posted December 7, 2017 read about the functions, try to use the functions, if you do them wrong, someone will help you. IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window. Link to comment Share on other sites More sharing options...
Earthshine Posted December 7, 2017 Share Posted December 7, 2017 (edited) I posted the links you need to read. Look at the examples in the links. try this. then use your registry path. develop as you go. #include <MsgBoxConstants.au3> Local $sVar = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion", "ProgramFilesDir") MsgBox($MB_SYSTEMMODAL, "Program files are in:", $sVar) Edited December 7, 2017 by Earthshine My resources are limited. You must ask the right questions Link to comment Share on other sites More sharing options...
Mandolen11 Posted December 7, 2017 Author Share Posted December 7, 2017 9 minutes ago, Earthshine said: I posted the links you need to read. Look at the examples in the links. try this. then use your registry path. develop as you go. #include <MsgBoxConstants.au3> Local $sVar = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion", "ProgramFilesDir") MsgBox($MB_SYSTEMMODAL, "Program files are in:", $sVar) can you help me to convert it ? Link to comment Share on other sites More sharing options...
Earthshine Posted December 7, 2017 Share Posted December 7, 2017 (edited) I am trying to help you learn how to do it for yourself. so, you learn. you have the algorithm from the previous code. start writing autoit script and post your code. we can help with that. 1) check if registry key exists 2) if yes then write value Edited December 7, 2017 by Earthshine Mandolen11 1 My resources are limited. You must ask the right questions Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted December 7, 2017 Moderators Share Posted December 7, 2017 @Mandolen11 as people have been kindly trying to point out to you, this forum is for helping people with their scripts. It is not a place where you demand something and someone barfs up the code for you. If you are intelligent enough to understand VBS you should have no problem with AutoIt. So if you want help, show us what you have tried from the help file on your own; treat this like Math class and show your work Earthshine and Mandolen11 2 "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...
mikell Posted December 7, 2017 Share Posted December 7, 2017 ... and at the end, tadaaa ... Send {F5} 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