-
Notifications
You must be signed in to change notification settings - Fork 1
Components
Components are a powerful tool enabling you to write custom commands, scripts, and more. Anyone with any kind of Python experience can write their own components to add new features!
Components are only supported on Windows systems
You can get a list of currently-installed components and their status by using the components command. In addition, you can use this command to directly manage your components, using the various options. To learn more about the command and its options, use the man components command.
- Create a new python file in the :/ProgramData/winLine/components/ directory. Make sure the file name is structured like this: command_name.py, as you'll type the file's name as its run command. .pyw, .pyc, .pye, and .pyj files are not currently supported
- In the new python file, write your code. SAVE the file
- To enable the new component, restart WinLine with the term -r command
- In WinLine, run the components command. You'll get a list similar to the one in this image:
For this example, we'll walk through the steps to uninstall the shoutout component - We need to disable the component first. To do this, run the components --disable shoutout command
- Now, we can uninstall the component. To do this, run the components --purge shoutout command
If everything went well, the components command shouldn't list the uninstalled component anymore. However, it might be listed as "UNLOADED". If this is the case, you should restart WinLine and re-run the components command.
Components are and extremely powerful tool. If a component is malicious, it could cause serious damage to your system. For this reason, components are not allowed to run until their command is called, and they can be temporarily disabled to prevent accidental running.
If you find a component you don't recognize, you should uninstall it immediately. You should never install components from an unknown or untrusted source!
This is a list of all components that might ship with WinLine by default:
- camx
- install-sc
- share-screen
- shoutout
- stress
- stress_ram
These are additional components that ship with WinLine Developer by default:
- build_winline
- reset_winline