Jump to content
View in the app

A better way to browse. Learn more.

Tuts 4 You

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.

Create A Log

Featured Replies

Posted

I'd like to create a log (in an edit box or?)

Like in dup2's patch window, and ImpREC's log window.

How do I go about doing this, I've searched and searched and can find no src on how to do this.

I'd also like to be able to save the log to a file, and be able to scroll the log up and down.

thnx in advance =)

You have to use SendMessage commands. There is a bunch of different ways to use the command. For instance using

invoke SendMessage, eax, LB_ADDSTRING, -1h, offset bufferwhere eax = handle of window, buffer = text to be added

will keep adding lines of text. But there is a lot of different ways to go about doing that. I hope this at least points you in the right direction.

Edited by What

I never used it, but I think I would prefer a simple multiline editbox instead of a listbox.

(ES_AUTOVSCROLL + ES_MULTILINE + WS_VSCROLL)

Then simply using lstrcat for adding text with 13,10 at the end.

Saving the whole stuff will be easier, too, coz you only got 1 string in the end.

Something like:

szInfoText db 'hello',0
sz_13_10 db 13,10,0invoke lstrcat,addr szLog,addr szInfoText
invoke lstrcat,addr szLog,addr sz_13_10
invoke SetDlgItemText,hWnd,IDC_EDITBOX,addr szLog
invoke SendDlgItemMessage,hWnd,IDC_EDITBOX,EM_LINESCROLL,0,7FFFFFFFh; for always seeing the last added line

Tho it might be kinda slow way, if the log's getting really huge...

Here's a crude example of using a list-box to perform the task.

LOG.zip

  • Author

Thanks much for the examples, I think I can make use of one or the other.

You guys rock as always =)

Create an account or sign in to comment

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.