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
handleTHandle-
The MaaStringBufferHandle.
strstring-
The string.
useExbool-
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
strstring-
The string.
useExbool-
Uses MaaSetStringEx() if true; otherwise, Uses MaaSetString().
readBufferFunc<THandle, bool>-
The function used to read the string from the buffer.
Returns
- bool
-
The System.String.