Method TrySetValue
- Namespace
- MaaFramework.Binding.Buffers
- Assembly
- MaaFramework.Binding.dll
TrySetValue(THandle, string, bool)
Sets the string to a MaaStringBuffer.
public static abstract bool TrySetValue(THandle handle, string str, bool useEx = true)
Parameters
handle
THandle-
The MaaStringBufferHandle.
str
string-
The string.
useEx
bool-
Uses MaaSetStringEx() if true; otherwise, Uses MaaSetString().
Returns
TrySetValue(string, bool, Func<THandle, bool>)
Sets the string to a function using MaaRectBuffer.
public static abstract bool TrySetValue(string str, bool useEx, Func<THandle, bool> readBuffer)
Parameters
str
string-
The string.
useEx
bool-
Uses MaaSetStringEx() if true; otherwise, Uses MaaSetString().
readBuffer
Func<THandle, bool>-
The function used to read the string from the buffer.
Returns
- bool
-
The System.String.