View Single Post
  (#1 (permalink)) Old
Mark Rejhon Offline
Retired BBF Moderator
 
Mark Rejhon's Avatar
 
Posts: 4,840
Join Date: Aug 2004
Location: Ottawa, Ontario, Canada
Model: Bold
Carrier: Rogers
Default FREE/SOURCE Included: Quick Note Utility, one key access, clipboard editing utility - 02-02-2006, 02:17 AM

BlackBerryForums exclusive -- Free utility with source code.

PURPOSE: BlackBerry Application to permit one keypress access to typing notes. This application is useful for people who want to be able to start creating notes immediately upon one click, without any steps, faster than MemoPad. When this application is closed, the contents of the note is Copied & Pasted to the clipboard for future a Paste operation.
PHP Code:
/*
* QuickNote.java
* This is the Version 1.0 Source Code -- For Version 1.1 Source, download the .zip instead.
* _________________________________________________________________________________________________

* PURPOSE: BlackBerry Application to permit one keypress access to typing notes. This application 
* is useful for people who want to be able to start creating notes immediately upon one click, 
* without any steps, faster than MemoPad. When this application is closed, the contents of 
* the note is Copied & Pasted to the clipboard for future a Paste operation..
* _________________________________________________________________________________________________

* Written February 2006 by Mark Rejhon, on behalf of BlackBerryForums.com users.

* LICENSING:
* This is free software. 
* BINARY and SOURCE released under the GNU GENERAL PUBLIC LICENSE, VERSON 2, www.gnu.org
* If you need an original, proprietary licensed copy, please contact Mark Rejhon.
* If you need Mark Rejhon's resume, please contact Mark Rejhon at www.marky.com for the 
* latest copy of his resume.

*/
import net.rim.device.api.ui.*;
import net.rim.device.api.ui.component.*;
import net.rim.device.api.ui.container.*;
import net.rim.device.api.ui.UiApplication;
import net.rim.device.api.system.Clipboard;
import net.rim.device.api.system.Characters;
// _________________________________________________________________________________________________
// Main startup class
public class QuickNote extends UiApplication
{
    
// Program entry point.
    
public static void main(String[] argv)
    {
        
QuickNote c = new QuickNote();
        try
        {
            
c.enterEventDispatcher();
        }
        catch(
Exception e)
        {
            final 
String msg e.getMessage();
            
net.rim.device.api.ui.component.Dialog.alert("Error Starting Application:\n" msg);
        }
    }
    
// Displays the screen
    
public QuickNote()
    {
        
pushScreen(new QuickNoteScreen());
    }
}
 
// _________________________________________________________________________________________________
// Note textbox class
final class QuickNoteScreen extends MainScreen
{
    
AutoTextEditField     QuickNoteText null;
 
    
// Create Screen
    
public QuickNoteScreen()
    {
        
super(DEFAULT_MENU DEFAULT_CLOSE);
 
        
// Add a title
        
setTitle(new LabelField("Quick Note"LabelField.ELLIPSIS LabelField.USE_ALL_WIDTH));
        
// Add a blank textbox
        
QuickNoteText = new AutoTextEditField();
        
add(QuickNoteText);
    }
    
// Close Handler
    
public boolean onClose()
    {
        
// Upon close, copy text contents into clipboard for Copy and Paste operations
        
Clipboard.getClipboard().put(QuickNoteText.getText());
        
System.exit(0);
        return 
true;
    }

Source code and BlackBerry desktop installable version is below. The hotkey is "Q". Hitting Esc closes QuickNote with the text automatically copied to the Clipboard, for pasting. I've created a custom icon that roughly resembles a post-it note with an exclamation mark on it.

It is also very useful for editing your clipboard too: You can reopen QuickNote, paste, edit the pasted text, and close QuickNote.

This code was created upon a request by a BlackBerryForums user, and also because I have a personal need for this utility. Also, including the QuickCompose email app too as well:



MarkyBerryUtils Wireless Download:

Download Quick Note Via BlackBerry:
www.marky.com/files/bb/QuickNote.jad

PURPOSE: One hotkey access to immediately jotting down notes that is automatically copied to the clipboard. Requires BlackBerryOS 3.6 or later.

Download Quick Compose Via BlackBerry:
www.marky.com/files/bb/QuickCompose.jad
PURPOSE: One hotkey access to immediately composing a blank new email message. Requires BlackBerryOS 4.1 or later. This readds the missing Compose icon from earlier BlackBerryOS software, while using the new convenient New Email interface of OS 4.1.



MarkyBerryUtils Desktop Download + Source:
Attached Files
File Type: zip QuickCompose_v102.zip (2.7 KB, 110 views)
File Type: zip QuickNote_v12.zip (5.0 KB, 91 views)
File Type: zip MarkyBerryUtils-Source_2007-02-03.zip (89.9 KB, 69 views)


Thanks,
Mark Rejhon

Last edited by Mark Rejhon : 02-03-2007 at 10:46 PM.
   
Sponsored Links
Please Login or Register to Remove these Advertisements!