scila1996 Posted March 27, 2014 Posted March 27, 2014 I am a novice programmer. We wish you detailed instructions I want to create 1 notification list VGA devices installed For $ida = 1 to 5 $getvga = RegRead("HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{4D36E968-E325-11CE-BFC1-08002BE10318}\000" & $ida,"DriverDesc") MsgBox(0,"Get VGA",$getvga) Next there is one small problem. I want it to show only one message devices list
FireFox Posted March 27, 2014 Posted March 27, 2014 Something like this ? Local $getvga = "" For $ida = 1 to 5 $getvga &= RegRead("HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{4D36E968-E325-11CE-BFC1-08002BE10318}\000" & $ida,"DriverDesc") & @CrLf Next MsgBox(0,"Get VGA",$getvga)
scila1996 Posted March 28, 2014 Author Posted March 28, 2014 Thank I have one small problem anymore if the value from 2 to 5 = empty it will not appear in the large white space below the message Like
FireFox Posted March 28, 2014 Posted March 28, 2014 (edited) What about reading the helpfile? Or think a little bit at least. Edited March 28, 2014 by FireFox
lolipop Posted March 28, 2014 Posted March 28, 2014 check the variable to see if it's a empty string. if empty string ignore else add to the getvga variable.
GordonFreeman Posted March 29, 2014 Posted March 29, 2014 (edited) Try. Please, use and read the help file {F1} Local $sVGA = "" For $i = 1 to 5 $sGetVGA = RegRead("HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{4D36E968-E325-11CE-BFC1-08002BE10318}\000" & $i,"DriverDesc") If $sGetVGA <> "" Then $sVGA = $sGetVGA & @CRLF EndIf Next MsgBox(0,"Get VGA",$sVGA) Edited March 29, 2014 by GordonFreeman Frabjous Installation
Werty Posted March 30, 2014 Posted March 30, 2014 If you have trouble reading the helpfile in english you can go to http://translate.google.com/ and type in http://www.autoitscript.com/autoit3/docs/ and choose your own language. Not perfect, but might be easier to understand. Some guy's script + some other guy's script = my script!
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