Home | History | Annotate | only in /prebuilts/jdk/jdk8/linux-x86/sample/scripting/scriptpad/src/scripts
Up to higher level directory
NameDateSize
browse.js21-Aug-20182.8K
insertfile.js21-Aug-20182.9K
linewrap.js21-Aug-20182.2K
mail.js21-Aug-20182.7K
memmonitor.js21-Aug-20183K
memory.bat21-Aug-20181.8K
memory.js21-Aug-20182.3K
memory.sh21-Aug-20181.7K
README.txt21-Aug-20181.8K
textcolor.js21-Aug-20182.3K

README.txt

      1 Sample scripts:
      2 
      3 (1) browse.js 
      4 
      5  -- Open and run this script in scriptpad. You will see 
      6     Tools->Browse menu. Using this you can start your
      7     desktop default browser with the given URL.
      8 
      9 (2) insertfile.js
     10 
     11  -- Open and run this script in scriptpad. You will see 
     12     "Tools->Insert File..." menu. Using this you can start 
     13     insert content of a selected file into currently
     14     edited document
     15 
     16 (3) linewrap.js
     17 
     18  -- Open and run this script in scriptpad. You will see 
     19     "Tools->Line Wrap" menu. Using this you can toggle
     20     the line wrapping mode of the editor
     21 
     22 (4) mail.js
     23 
     24  -- Open and run this script in scriptpad. You will see 
     25     Tools->Mail menu. Using this you can start your
     26     desktop default mail client with the given "To" mail id.
     27 
     28 (5) memmonitor.js
     29 
     30  -- This is a simple Monitoring & Management script. To use this,
     31     you need an application to monitor. You can use memory.bat
     32     or memory.sh in the current directory to start an application
     33     that will be monitored. After that please follow these steps:
     34 
     35    1. Start the target application using memory.sh or memory.bat
     36    2. Start scriptpad 
     37    3. Use "Tools->JMX Connect" menu and specify "localhost:1090"
     38       to connect
     39    4. Open "memmonitor.js" and run it (using "Tools->Run")       
     40       in scriptpad
     41    5. A new "Tools-Memory Monitor" menu appears. Use this menu
     42       and specify 4 and 500 as threshold and interval values.
     43    6. In the target application shell (where memory.bat/.sh was
     44       started), enter an integer value and press "enter".
     45    7. You'll see an alert box from scriptpad -- alerting you for
     46       memory threshold exceeded!
     47 
     48 (6) textcolor.js
     49 
     50  -- Open and run this script in scriptpad. You will see 
     51     "Tools->Selected Text Color..." menu. Using this you
     52     change the color of "selected text" in the editor.
     53