Scripts
From QTermWiki
Main Page | Downloads | Scripts | Documentation | Development | Screenshots | FAQ | Forum (http://www.qtopia.org.cn/phpBB2/viewforum.php?f=22) | Help us | About
| Table of contents |
Introduction
QTerm has a (maybe not yet;) powerful script engine using Python. You can write your own script to download articles, or make a freaky bot to reply the messages. Thanks to the great flexibility of python, it's up to you to create something great.
You can run script from either the script menu or the shortcut key. There is also a special script called system.py, QTerm will call the function in it automatically when necessary. Put your own system.py to $HOME/.qterm/script.
How to write
There is a document in the source of QTerm about the fuctions in the qterm module you can use in your python script. You can also download it from here (http://qterm.sourceforge.net/scripts/script). But actually, the best reference should always be the source code.
Download scripts
- continuous.py (http://qterm.sourceforge.net/scripts/continuous.py)
- It's a simple example, it will download 4 articles.
- download.py (http://qterm.sourceforge.net/scripts/download.py)
- Download the articles from the elite area. (err, you know what I mean ;)
- sendmsg.py (http://qterm.sourceforge.net/scripts/sendmsg.py)
- Send current article to one assigned email addres.
- qterm-post23.py (http://qterm.sourceforge.net/scripts/qterm-post23.py) from acura at smth.org
- Post pictures to SMTH, Version 2.3, need curl and pygtk
- input-gtk.py (http://qterm.sourceforge.net/scripts/input-gtk.py) from acura at smth.org
- Color your code and post it to the BBS, need source-highlight and pygtk, the author also provide a color shema (http://qterm.sourceforge.net/scripts/tags.j2h) for BBS post.
- system.py (http://qterm.sourceforge.net/scripts/system.py)
- System script, provide functions like mouse support, anti-idle, auto-reply.
- tools.py (http://qterm.sourceforge.net/scripts/tools.py)
- Cannot run on its own, but provide various tools you can used in your scripts.
Just Write a new script...
Contact us and share it with other QTerm users