| View previous topic :: View next topic |
| Author |
Message |
Dr.Disrespect Grandmaster Cheater
Reputation: 3
Joined: 17 Feb 2016 Posts: 526
|
Posted: Sat May 07, 2016 5:00 pm Post subject: How to convert unicode to string in CE? |
|
|
How to convert unicode to string in CE? I have googled a lot and still couldn't get it. I couldn't even find the "unicode" checkbox mentioned by Penguin in another post. So frustrated... (
|
|
| Back to top |
|
 |
ParkourPenguin I post too much
Reputation: 152
Joined: 06 Jul 2014 Posts: 4706
|
Posted: Sat May 07, 2016 5:15 pm Post subject: |
|
|
Unicode is a type of string. The "Unicode" checkbox is literally right next to the "Scan Type" and "Value Type" combo boxes when searching for a string and again right next to the "Length" field when changing an address's value type in the address list to "Text". It should be nearly impossible to miss it. Would a picture help?
What do you want to do with that string?
_________________
I don't know where I'm going, but I'll figure it out when I get there. |
|
| Back to top |
|
 |
Dr.Disrespect Grandmaster Cheater
Reputation: 3
Joined: 17 Feb 2016 Posts: 526
|
Posted: Sat May 07, 2016 5:33 pm Post subject: |
|
|
| ParkourPenguin wrote: | Unicode is a type of string. The "Unicode" checkbox is literally right next to the "Scan Type" and "Value Type" combo boxes when searching for a string and again right next to the "Length" field when changing an address's value type in the address list to "Text". It should be nearly impossible to miss it. Would a picture help?
What do you want to do with that string? |
I found it, thanks Penguin.
For example, I know the unicode of a character, "9673" in hex, which represents a character in a language other than English, and I want to show that character on my trainer, such as the name of an item. What should I do? Can Lua do the conversion?
|
|
| Back to top |
|
 |
ParkourPenguin I post too much
Reputation: 152
Joined: 06 Jul 2014 Posts: 4706
|
Posted: Sat May 07, 2016 6:39 pm Post subject: |
|
|
I don't know of any way to make a trainer in CE using UTF-16.
If it's something simple like showing a message box, then you could call MessageBoxW using asm. If you're planning on converting all the strings in your trainer, then you'd be better off programming it in another language entirely separate from CE.
_________________
I don't know where I'm going, but I'll figure it out when I get there. |
|
| Back to top |
|
 |
Dr.Disrespect Grandmaster Cheater
Reputation: 3
Joined: 17 Feb 2016 Posts: 526
|
Posted: Sat May 07, 2016 7:03 pm Post subject: |
|
|
| ParkourPenguin wrote: | I don't know of any way to make a trainer in CE using UTF-16.
If it's something simple like showing a message box, then you could call MessageBoxW using asm. If you're planning on converting all the strings in your trainer, then you'd be better off programming it in another language entirely separate from CE. |
Yea, I think you are right. I should use C\C++, unfortunately.
Is it possible to make a trainer interact with C or C++ program?
|
|
| Back to top |
|
 |
ParkourPenguin I post too much
Reputation: 152
Joined: 06 Jul 2014 Posts: 4706
|
Posted: Sat May 07, 2016 7:09 pm Post subject: |
|
|
"Interact" is a very broad term, but yes, there are several ways two processes can interact with each other (e.g. WriteProcessMemory).
_________________
I don't know where I'm going, but I'll figure it out when I get there. |
|
| Back to top |
|
 |
Dr.Disrespect Grandmaster Cheater
Reputation: 3
Joined: 17 Feb 2016 Posts: 526
|
Posted: Sat May 07, 2016 7:11 pm Post subject: |
|
|
| ParkourPenguin wrote: | | "Interact" is a very broad term, but yes, there are several ways two processes can interact with each other (e.g. WriteProcessMemory). |
Sorry for the inaccurate word. Actually I meant "using C functions in Lua", within the realm of CE of course. Is it doable? I couldn't find information about this issue.
|
|
| Back to top |
|
 |
ParkourPenguin I post too much
Reputation: 152
Joined: 06 Jul 2014 Posts: 4706
|
|
| Back to top |
|
 |
Dr.Disrespect Grandmaster Cheater
Reputation: 3
Joined: 17 Feb 2016 Posts: 526
|
Posted: Sat May 07, 2016 10:16 pm Post subject: |
|
|
Sorry for the late reply. I think I will just use other programming languages, call C in Lua looks too complicated to me.
|
|
| Back to top |
|
 |
|