summaryrefslogtreecommitdiff
path: root/staging/linux-x86/sample/scripting/scriptpad/src/scripts/README.txt
blob: 72e162d6fff76b8db2e3289d79ece6d36e2a1d58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
Sample scripts:

(1) browse.js 

 -- Open and run this script in scriptpad. You will see 
    Tools->Browse menu. Using this you can start your
    desktop default browser with the given URL.

(2) insertfile.js

 -- Open and run this script in scriptpad. You will see 
    "Tools->Insert File..." menu. Using this you can start 
    insert content of a selected file into currently
    edited document

(3) linewrap.js

 -- Open and run this script in scriptpad. You will see 
    "Tools->Line Wrap" menu. Using this you can toggle
    the line wrapping mode of the editor

(4) mail.js

 -- Open and run this script in scriptpad. You will see 
    Tools->Mail menu. Using this you can start your
    desktop default mail client with the given "To" mail id.

(5) memmonitor.js

 -- This is a simple Monitoring & Management script. To use this,
    you need an application to monitor. You can use memory.bat
    or memory.sh in the current directory to start an application
    that will be monitored. After that please follow these steps:

   1. Start the target application using memory.sh or memory.bat
   2. Start scriptpad 
   3. Use "Tools->JMX Connect" menu and specify "localhost:1090"
      to connect
   4. Open "memmonitor.js" and run it (using "Tools->Run")       
      in scriptpad
   5. A new "Tools-Memory Monitor" menu appears. Use this menu
      and specify 4 and 500 as threshold and interval values.
   6. In the target application shell (where memory.bat/.sh was
      started), enter an integer value and press "enter".
   7. You'll see an alert box from scriptpad -- alerting you for
      memory threshold exceeded!

(6) textcolor.js

 -- Open and run this script in scriptpad. You will see 
    "Tools->Selected Text Color..." menu. Using this you
    change the color of "selected text" in the editor.