Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - northern_witch

#1
my solution is to patch response.lsp at line 71 replacing (nil? value) (cookie key "" (date-value)) with (nil? value) (cookie key "" 0) and continue using nil as documented



i think problem is about GMT and local time, so cookies expiration date is set to future by using date-value
#2
newLISP and the O.S. / Re: Text from clipboard
March 11, 2010, 11:50:22 AM
Fine func, but sometimes works, sometimes crashes any app (Windows 7 says module w/ error is StackHash...) where i'm trying to paste after putting to clipboard using this code. Any ideas?

P.S. Locale switching, may be useful for somebody:

...
(constant 'CF_LOCALE 16)
(constant 'LocaleID (pack "u" 0x419))
...
(EmptyClipboard)
(set 'global_new_handle (GlobalAlloc 0 (+ (length new_text) 1)))
(set 'global_new_handle_locale (GlobalAlloc 0 4))
(set 'wptr (GlobalLock global_new_handle))
(set 'wptr_locale (GlobalLock global_new_handle_locale))
(cpymem new_text wptr (length new_text))
(cpymem LocaleID wptr_locale 4)
(GlobalUnlock global_new_handle)
(GlobalUnlock global_new_handle_locale)
(set 'result (SetClipboardData CF_TEXT global_new_handle))
(SetClipboardData CF_LOCALE global_new_handle_locale)
(CloseClipboard)
(GlobalFree global_new_handle)
(GlobalFree global_new_handle_locale)
...