AutoIt Forums: Problem while read value from Registry - AutoIt Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Problem while read value from Registry

#1 User is offline   Onylove 

  • Newbie
  • Group: Full Members
  • Posts: 8
  • Joined: 26-June 09
  • Gender:Male
  • Location:Vietnam

Posted 07 November 2009 - 04:08 PM

I'm having this problem.
For example, check that you read the key value hasn't created in Registry:
RegRead("HKEY_CURRENT_USER\Software\Le Quoc Nam","me")
If key "Le Quoc Nam" and "me" haven't been created ̣̣̣̣̣̣̣̣̣̣̣̣(or they has been created and the value "me" is 1, then tick to checkbox, and elseif untick.
Could someone help me how to do, thank you. :)

This post has been edited by Onylove: 07 November 2009 - 04:09 PM

0

#2 User is offline   Danny35d 

  • Mass Spammer!
  • PipPipPipPipPip
  • Group: Full Members
  • Posts: 735
  • Joined: 05-July 05
  • Location:UNITED STATES

Posted 07 November 2009 - 07:26 PM

[ autoIt ]    ( Popup )
$Me = RegRead("HKEY_CURRENT_USER\Software\Le Quoc Nam","me") If $Me = "" Or $Me = 1 Then ;checkbox Else ;untick EndIf

0

#3 User is offline   Onylove 

  • Newbie
  • Group: Full Members
  • Posts: 8
  • Joined: 26-June 09
  • Gender:Male
  • Location:Vietnam

Posted 08 November 2009 - 12:59 PM

What a simple code! Thank you. :)
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users