flip209 0 Posted September 2, 2007 Can any one show me a better way to write this?CODE$s = 1 for $s = 1 to 1500 $var = RegEnumKey("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\", $s) $var1 = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\"& $var, "DisplayName") if $var1 <> "" then GUICtrlCreateTreeViewItem($var1, $Soft) $s += 1 next " I haven't failed. I've just found 10,000 ways that won't work." Thomas Edison "You cannot help men permanently by doing for them what they could and should do for themselves." Abraham Lincoln Share this post Link to post Share on other sites
SmOke_N 211 Posted September 2, 2007 You posted your support question wrong forum. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Share this post Link to post Share on other sites