Search found 49 matches
- Tue Mar 18, 2014 3:30 pm
- Forum: Suggestions And Bug Reports
- Topic: Lua Functions (Scintilla)
- Replies: 0
- Views: 9799
Lua Functions (Scintilla)
Add fold/unfold all. Add ability to highlight all strings that are the same when one string is highlighted. Add count strings. Add check syntax now. Add show white-space. Add zoom in and zoom out and restore default. If the compiler does not remove the following when compiling add: Trim trailing spa...
- Tue Mar 18, 2014 3:14 pm
- Forum: Suggestions And Bug Reports
- Topic: __Memory.BitOr
- Replies: 0
- Views: 4927
__Memory.BitOr
Add more than two values.
- Tue Mar 18, 2014 12:27 pm
- Forum: General Discussion
- Topic: Structure Unions
- Replies: 0
- Views: 4763
Structure Unions
STRUCTUREA = __Memory.CreateStruct( _int, "A", -- Union _int, "B", _int, "C", -- Union end _int, "D", _int, "E"); -- 16 bytes STRUCTUREB = __Memory.CreateStruct( _int, "A", _int, "B", _int, "C", _int, "D", _int, "E"); -- 20 bytes Sometimes the size of the structure is important and more ofter than ...
- Mon Mar 17, 2014 12:03 pm
- Forum: General Discussion
- Topic: memory functions
- Replies: 10
- Views: 10741
Re: memory functions
Hi mate, its nothing private as I'm literally just trying to understand the methods involved with AMP, here is some code: __User32 = __DLL.LoadLibrary("User32.dll", "stdcall") __Kernel32 = __DLL.LoadLibrary("Kernel32.dll", "stdcall") if (__User32) then _OpenClipboard = __DLL.GetFunction(__User32,_in...
- Sat Mar 15, 2014 12:48 pm
- Forum: General Discussion
- Topic: memory functions
- Replies: 10
- Views: 10741
Re: memory functions
GlobalLock returns a pointer to the first byte of a buffer, how do I get the text from that buffer? Tried: local l = _GlobalLock(h) local t = __Memory.ChararrayToString(l) _GlobalUnlock(h) but t returns a garbled string. local h = _GlobalAlloc(0x42,String.Length(t) + 1) local l = _GlobalLock(h) -- p...
- Sat Mar 15, 2014 12:47 pm
- Forum: Suggestions And Bug Reports
- Topic: __DLL.GetFunction
- Replies: 1
- Views: 4580
Re: __DLL.GetFunction
wrong place, delete please
- Fri Mar 14, 2014 4:31 pm
- Forum: Suggestions And Bug Reports
- Topic: __DLL.GetFunction
- Replies: 1
- Views: 4580
__DLL.GetFunction
If the function does not exist, as happens from version to version, then the plugin crashes so perhaps if the function does not exist then return nil as it would do for an error.
- Fri Mar 14, 2014 4:29 pm
- Forum: General Discussion
- Topic: memory functions
- Replies: 10
- Views: 10741
Re: memory functions
^^^^^^thanks
- Wed Mar 12, 2014 8:15 pm
- Forum: General Discussion
- Topic: memory functions
- Replies: 10
- Views: 10741
Re: memory functions
_DragQueryFileA = __DLL.GetFunction(__Shell32,_int,"DragQueryFileA",_int,_int,_int,_int) then local B = __Memory.StringToChararray(string.rep("\0",266)) if _DragQueryFileA(wParam,1,B,266) == 0 then return false else return true, __Memory.ChararrayToString(B) end errors out, a pcall to debug gives "...
- Wed Mar 12, 2014 8:41 am
- Forum: General Discussion
- Topic: memory functions
- Replies: 10
- Views: 10741
Re: memory functions
Thank you, you know I think it would be good if the help file had a Q & A section in it covering these questions.