Jump to content

Need help with variable types


Recommended Posts

I am using CE to get addresses for memory editing in CE. I know perfectly well how to do this, but I am having one little problem.

In CE, the type is "double" and it needs to be set to 5000 (this is the tutorial level 3 by the way)

With NomadMemory, there is no type double (I believe). I looked at the list in dll calls and there is only stuff like byte, int, dword, etc.

I need to write 5000 as a double, instead of a 4-byte like so:

$Write = _MemoryPointerWrite($FinalAddress, $MemoryOpen, $Offset, "5000", "???")

??? is the type, with the default as dword. If I use dword, nothing happens.

For the other half of tutorial level 3, you need to set the value as a float 5000. This one was easy, and I simply set the float value to 5000 in CE, and then changed the type and it converted it to 1167867904.

For double, the value of 5000 just changes to 0 in 4-byte/dword.

What type is double? Or is there something I am missing?

Thanks.

Link to comment
Share on other sites

Look at "Language Reference - Datatypes" in the help file. Datatypes and Ranges section.

"Double - A double-precision floating point number"

Post your code because code says more then your words can. SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y. Use Opt("MustDeclareVars", 1)[topic="84960"]Brett F's Learning To Script with AutoIt V3[/topic][topic="21048"]Valuater's AutoIt 1-2-3, Class... is now in Session[/topic]Contribution: [topic="87994"]Get SVN Rev Number[/topic], [topic="93527"]Control Handle under mouse[/topic], [topic="91966"]A Presentation using AutoIt[/topic], [topic="112756"]Log ConsoleWrite output in Scite[/topic]

Link to comment
Share on other sites

Thank you bo8ster. I was pointed to the types in DllCall where it was not listed.

Thanks again!

Look again, it's the fifth from the bottom in the first table (latest stable). Edited by AdmiralAlkex
Link to comment
Share on other sites

Yes, but under certain circumstances it can be used for legitimate things.

I am sorry, and I see your point, but it is not my intent.

I do realize that some newcomers to the forum join for help with hacks and other things, but how much am I really saying that hasn't been said in another way?

Also, I thought this forum was more against Viruses and such, not hacking, since AutoIt is a scripting language and is used for automating. Take Farmville for example, I see so many posts about automating it and breaching their TOS, but nobody says anything about that.

Also, nobody has ever said anything about Cheat Engine OR Memory Editing (NomadMemory) to my knowledge.

http://www.autoitscript.com/forum/index....owtopic=78834&st=0&p=568869&#entry568869

http://www.autoitscript.com/forum/index....hl=cheatengine&fromsearch=1&#entry732440

http://www.autoitscript.com/forum/index....hl=cheatengine&fromsearch=1&#entry739222

http://www.autoitscript.com/forum/index....hl=cheatengine&fromsearch=1&#entry724612

are some examples.

I see your point, but nobody has cared before, so why care now? It isn't like I am giving AutoIt a bad name or anything.

Edit: And I add, I would never try to. I love AutoIt very much!

Edited by darkjohn20
Link to comment
Share on other sites

Not necessarily. "Latest" missing. B)

I don't know what you're talking about B)

AdmiralAlkex,

Wow.....just wow....I completely missed that after looking over it like 20 times. ;)

Thanks!

No problems! :)
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...