Jump to content

[ ? ] RegRead Question


Recommended Posts

Hi PPL this time when I use the RegRead the result is in this form

[Number]&[letters]

For example:

$m = RegRead (my key)

If the result is like this $m = 02a9800rf

And I want to use the result in a condition like this

If RegRead (my key) = $m then
    My command
Else
    Other Command
Endif

Here there will be a problem in $m

I tried to do it like this

$m = 02a9800rf ---> 02&a&9800&r&f

It didnt work

Need help ppl

[quote]Baby you're all that I want, When you're lyin' here in my armsI'm findin' it hard to believe, We're in heavenAnd love is all that I need , And I found it there in your heartIt isn't too hard to see, We're in heaven .Bryan Adams[/quote].............................................................................[u]AUTOIT[/u]

Link to comment
Share on other sites

Treat all values as a string may sort your issue.

If RegRead(my key) = '02a9800rf' then
oÝ÷ Ù.q©Üç$Eèy§[ÊØ^zºè®f®~ì¢g«y«(+azZl¶'£ajÛazG²v¬^Æ+-þ«¨µëkçm«Z·w&§vØ^좱©pk+"Þ±éíÛ!¢é]{¬µ»­wb}÷«z{oj[±Ê.Ù÷öÛ¬zØ^½©ny«¢w¬¶¸§+`j÷¦y©Þ®º+¶¬Ëazö¥¹â0j{m¢ç·M4ÓM4ÛM4ÓM4÷M4ÓM4ÓM4ÓM4÷M4ÓM:¡zß­z¯:½ûãM4ÓM4ÓM4ÓM4ÓM4ÓM4ÓM4ÓM4ÓM4ÓM4ÓM4ÓM4ÓM4ÓM4ÓM4ÓM4ÒÚâyÛhv­)ºÆ¢u«­¢+Ø(ÅÕ½ÐìÍÀÀÀÀÀÀÀÈÀÀÀÀÀÀÀäÀÀÀÀÀÀÀÀÀÀÀÀÀÀÀäÀÀÀÀÀÀÙÙØÌØÄÙØàÙÜÌÜÐÀÀÀÀÀÀÀÀÀÀÀÀÀÀÀÀÀÀÀÀÀÀÀÀÀÀÀÀÀÀÀÀÀÀÀÀÀÀÀÀÀÀÀÀÀÀÀÀÀÀÀÀÀÀÀÀÀÀÀÀÀÀÀÀÅÕ½Ð

didn't work

Edited by star2

[quote]Baby you're all that I want, When you're lyin' here in my armsI'm findin' it hard to believe, We're in heavenAnd love is all that I need , And I found it there in your heartIt isn't too hard to see, We're in heaven .Bryan Adams[/quote].............................................................................[u]AUTOIT[/u]

Link to comment
Share on other sites

The string does no look too long to error, but perhaps continue it multiline may help.

$m = "3C00000002000000090000000000000009000000" & _
        "6C6F63616C686F73740000000000000000000" & _
        "000000000000000000000000000000000000000000000"
If RegRead(my key) = $m then
    My command
Else
    Other Command
Endif
Link to comment
Share on other sites

Hi, what are you sending in for my key? are you sure you are using the right number of parameters?

Also how do you know its returning an error? maybe use a message box to debug whats actually being returned by the call eg

msgbox(0,"returned",regread($myKeyLocation,$myKeyValue)

Hope we can work it out soon

Dave.

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------"I don't need to know everything, I just need to know where to find it when I need it"....EinsteinAnd in our case... That's the AutoIT helpfile ;) Please read before posting!!!

Link to comment
Share on other sites

The string does no look too long to error, but perhaps continue it multiline may help.

nob didn't work

[quote]Baby you're all that I want, When you're lyin' here in my armsI'm findin' it hard to believe, We're in heavenAnd love is all that I need , And I found it there in your heartIt isn't too hard to see, We're in heaven .Bryan Adams[/quote].............................................................................[u]AUTOIT[/u]

Link to comment
Share on other sites

Hi, what are you sending in for my key? are you sure you are using the right number of parameters?

Also how do you know its returning an error? maybe use a message box to debug whats actually being returned by the call eg

msgbox(0,"returned",regread($myKeyLocation,$myKeyValue)

Hope we can work it out soon

Dave.

my key - My command - Other Command

are written just for the example

as for the parameters believe me I know what I'm doing but the problem clear as I stated in the begining

as MHZ said that maby I could read the resault as a string but that didn't work either

[quote]Baby you're all that I want, When you're lyin' here in my armsI'm findin' it hard to believe, We're in heavenAnd love is all that I need , And I found it there in your heartIt isn't too hard to see, We're in heaven .Bryan Adams[/quote].............................................................................[u]AUTOIT[/u]

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...