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.

findloc question

Featured Replies

  • Author
  • Localization

chrrox, posted Tue Jan 16, 2018 6:02 am (31590)


I have a script like this
get TXT_SIZE asize
for i = 0
savepos TMP
if TMP >= TXT_SIZE
break
endif
get INPUT line
string ELEMENTS S INPUT NAME CRC ZSIZE HASH1 SIZE HASH2
#print "%NAME%"
string HEX p= "x" NAME
print "%HEX%"
set TMP string "$"
string TMP = HEX
set VAR long TMP
print "%VAR%"
next i

How would I use findloc on the VAR variable
is there a way to convert a string to c notation or a int to c notation?
a different example might be
get TEST long
findloc OFFSET binary TEST
  • Author
  • Localization

Acewell, posted Tue Jan 16, 2018 6:22 am (31592)


chrrox wrote:
How would I use findloc on the VAR variable...
a different example might be
get TEST long
findloc OFFSET binary TEST

i asked this same question here once and i believe you would use this :)
Code:
get TEST long
findloc OFFSET long TEST


some examples
viewtopic.php?p=21917#p21917
  • Author
  • Localization

chrrox, posted Tue Jan 16, 2018 12:56 pm (31610)


This worked for my file here thanks :)
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.