Jump to content
Mandolen11

i need convert vbs to au3 please

Recommended Posts

Mandolen11

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

Share this post


Link to post
Share on other sites
Earthshine

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 by Earthshine

My resources are limited. You must ask the right questions

 

Share this post


Link to post
Share on other sites
Mandolen11

this vbs code but i just start learn autoit but can't convert vbs to au3 code

Share this post


Link to post
Share on other sites
Mandolen11

yes, this code hidden files and show files again without folder options settings 

Share this post


Link to post
Share on other sites
Mandolen11
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

Share this post


Link to post
Share on other sites
jdelaney

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.

Share this post


Link to post
Share on other sites
Earthshine

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 by Earthshine

My resources are limited. You must ask the right questions

 

Share this post


Link to post
Share on other sites
Mandolen11
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 ?

Share this post


Link to post
Share on other sites
Earthshine

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 by Earthshine
  • Like 1

My resources are limited. You must ask the right questions

 

Share this post


Link to post
Share on other sites
JLogan3o13

@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 ;)

 

  • Like 2

√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites
mikell

... and at the end, tadaaa ... Send  {F5}   :D

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×