Run Python

From UBot Studio
Revision as of 19:09, 17 February 2015 by LillyT (Talk | contribs)

Jump to: navigation, search

Run Python is a Developer Command for Developer Edition license users only.

This command will run python commands within UBot Studio.

Commands created with run python will run on all editions, but it will only be editable in node view in the Developer edition.


Example 1

run python("import clr
clr.AddReference(\"System.Windows.Forms\")
 
from System.Windows.Forms import MessageBox
MessageBox.Show(\"Hello World\")")

Running the script will produce an alert with the words "Hello World" displayed within it.


Runpython.jpg


Example 2

run python("import winsound
winsound.PlaySound(\"SystemExit\", winsound.SND_ALIAS)")


This example uses the winsound module to play a system sound on the system in use.

Running the script will play the windows system exit sound.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox