Editing Clipboard Commands

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 17: Line 17:
 
</pre>
 
</pre>
  
then the press the  '''<*>cmd>''' button and the application will open all 4 url's in your systems default browser.  This lets you keep a list of links in any file that can store text.
+
then the *>cmd button will open all 4 url's.  This lets you keep a list of links in any file that can store text.
 
 
== Manual/Auto ==
 
 
 
* Press the '''*>cmd''' button to interpret the clipped text as a command.
 
* Depress the radio button '''<always on>''' and each new clipboard change will be interpreted as a command, but a general rule is that a command must be found in the first line, so unless this is true the command button acts as if it were not on, the same is true when you press the command button.
 
  
 
= Command Details =  
 
= Command Details =  
Line 48: Line 43:
  
 
== *>bat ==
 
== *>bat ==
The *>bat command allows you to execute windows dos batch commands from text stored anywhere you can copy from.  These commands are inherently multilined.  For example:
 
 
  
*>bat
 
        dir c:
 
*>end
 
 
   
 
   
The above command will fill the clipboard with the result from the directory of c:
 
  
Because the command is multilined it needs some sort of end marker.  This is '''*>end'''
 
  
== *>py ==
+
 
 
Not implemented, planed to be like *>bat but for Python code.
 
 
 
= Customization =
 
  
Writing your own Commands is more complicated than I want to document now.  Code is in cmd_processor.py
 
  
  
 
[[Category:ClipBoard]]  [[category:Python]]  [[category:Python Projects]]
 
[[Category:ClipBoard]]  [[category:Python]]  [[category:Python Projects]]

Please note that all contributions to OpenCircuits may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see OpenCircuits:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)