Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

converting hex to sting question

Featured Replies

  • Author
  • Localization

happydance, posted Thu Dec 06, 2018 8:26 am (41039)


just a quick and noob question.

when I write the code like this which just gets the hex number of files and put it on a memory file to be made as text I always get a 0x0 at the end of the converted decimal number.

Image

Code:
log MEMORY_FILE 0 0
get FILENUM long
put FILENUM string MEMORY_FILE
get SIZE ASIZE MEMORY_FILE2
log test.txt 0 SIZE MEMORY_FILE2



I plan on getting the value of the number of files, the value of dialog id convert it to decimal and also rip some text strings to the output file.


I'm trying to do something like this as the output file

10 01 Hello there. 02 I'm a noob\natdoing this thing. 03 thanks for the help.
  • Author
  • Localization

aluigi, posted Thu Dec 06, 2018 11:19 am (41040)


I think you want to use "line" instead of "string".

put FILENUM line MEMORY_FILE

While for the strings try:

string TMP p "d %s" ID STRING
put TMP line MEMORY_FILE
  • Author
  • Localization

happydance, posted Fri Dec 07, 2018 4:16 am (41059)


thanks!

put FILENUM line MEMORY_FILE

works great!
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.