Platforms to show: All Mac Windows Linux Cross-Platform
Back to StdinMBS class.
StdinMBS.AttachConsole(ProcessID as Integer = -1) as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Files | MBS Util Plugin | 12.5 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop, Console & Web |
ProcessId: The identifier of the process whose console is to be used. This parameter can be one of the following values.
Value | Meaning |
pid | Use the console of the specified process. |
-1 | Use the console of the parent of the current process. |
Returns Windows error code or zero for success.
A process can be attached to at most one console. If the calling process is already attached to a console, the error code returned is ERROR_ACCESS_DENIED (5). If the specified process does not have a console, the error code returned is ERROR_INVALID_HANDLE (6). If the specified process does not exist, the error code returned is ERROR_GEN_FAILURE (31).
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Files | MBS Util Plugin | 12.3 | ✅ Yes | ❌ No | ✅ Yes | ❌ No | Desktop, Console & Web |
StdinMBS.FreeConsole as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Files | MBS Util Plugin | 12.5 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop, Console & Web |
Returns Windows error code or zero for success.
A process can be attached to at most one console. If the calling process is not already attached to a console, the error code returned is ERROR_INVALID_PARAMETER (87).
A process can use the FreeConsole function to detach itself from its console. If other processes share the console, the console is not destroyed, but the process that called FreeConsole cannot refer to it. A console is closed when the last process attached to it terminates or calls FreeConsole. After a process calls FreeConsole, it can call the AllocConsole function to create a new console or AttachConsole to attach to another console.
StdinMBS.GetCharacter as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Files | MBS Util Plugin | 8.7 | ✅ Yes | ❌ No | ✅ Yes | ❌ No | Desktop, Console & Web |
Returns one if a value was read and 0 if not.
StdinMBS.Read(count as Integer) as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Files | MBS Util Plugin | 6.0 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
Data is returned in binary encoding.
StdinMBS.ReadDouble(byref value as Double) as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Files | MBS Util Plugin | 8.7 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
Returns one if a value was read and 0 if not.
StdinMBS.ReadInteger(byref value as Integer) as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Files | MBS Util Plugin | 8.7 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
Returns one if a value was read and 0 if not.
StdinMBS.ReadString(byref value as string) as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Files | MBS Util Plugin | 8.7 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
This string is limited to 4095 characters.
Returns one if a value was read and 0 if not.
The items on this page are in the following plugins: MBS Util Plugin.