View Javadoc

1   /**
2    * JIntellitype
3    * -----------------
4    * Copyright 2005-2008 Emil A. Lefkof III, Melloware Inc.
5    *
6    * I always give it my best shot to make a program useful and solid, but
7    * remeber that there is absolutely no warranty for using this program as
8    * stated in the following terms:
9    *
10   * Licensed under the Apache License, Version 2.0 (the "License");
11   * you may not use this file except in compliance with the License.
12   * You may obtain a copy of the License at
13   *
14   *     http://www.apache.org/licenses/LICENSE-2.0
15   *
16   * Unless required by applicable law or agreed to in writing, software
17   * distributed under the License is distributed on an "AS IS" BASIS,
18   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19   * See the License for the specific language governing permissions and
20   * limitations under the License.
21   */
22  package com.melloware.jintellitype;
23  
24  /**
25   * Constants from the Windows API used in JIntellitype.
26   * <p>
27   * Message information can be found on MSDN here:
28   * http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/userinput/keyboardinput/keyboardinputreference/keyboardinputmessages/wm_appcommand.asp
29   * <p>
30   * Copyright (c) 1999-2008
31   * Melloware, Inc. <http://www.melloware.com>
32   * @author Emil A. Lefkof III <info@melloware.com>
33   * @version 1.3.1
34   */
35  public interface JIntellitypeConstants {
36     
37     public static final String ERROR_MESSAGE = "JIntellitype DLL Error";
38  	
39  	// Modifier keys, can be added together
40  	
41  	/**
42  	 * ALT key for registering Hotkeys.
43  	 */
44  	public static final int MOD_ALT = 1;
45  	
46  	/**
47  	 * CONTROL key for registering Hotkeys.
48  	 */
49  	public static final int MOD_CONTROL = 2;
50  	
51  	/**
52  	 * SHIFT key for registering Hotkeys.
53  	 */
54  	public static final int MOD_SHIFT = 4;
55  	
56  	/**
57  	 * WINDOWS key for registering Hotkeys.
58  	 */
59  	public static final int MOD_WIN = 8;
60  	
61  	
62  	// Intellitype Virtual Key Constants from MSDN  
63  	
64  	/**
65  	 * Browser Navigate backward
66  	 */
67  	public static final int  APPCOMMAND_BROWSER_BACKWARD       = 1;  
68  	
69  	/**
70  	 * Browser Navigate forward
71  	 */
72  	public static final int  APPCOMMAND_BROWSER_FORWARD        = 2; 
73  	
74  	/**
75  	 * Browser Refresh page
76  	 */
77  	public static final int  APPCOMMAND_BROWSER_REFRESH        = 3;  
78  	
79  	/**
80  	 * Browser Stop download
81  	 */
82  	public static final int  APPCOMMAND_BROWSER_STOP           = 4;  
83  	
84  	/**
85  	 * Browser Open search
86  	 */
87  	public static final int  APPCOMMAND_BROWSER_SEARCH         = 5;  
88  	
89  	/**
90  	 * Browser Open favorites
91  	 */
92  	public static final int  APPCOMMAND_BROWSER_FAVOURITES     = 6;  
93  	
94  	/**
95  	 * Browser Navigate home
96  	 */
97  	public static final int  APPCOMMAND_BROWSER_HOME           = 7;  
98  	
99  	/**
100 	 * Mute the volume
101 	 */
102 	public static final int  APPCOMMAND_VOLUME_MUTE            = 8;  
103 	
104 	/**
105 	 * Lower the volume
106 	 */
107 	public static final int  APPCOMMAND_VOLUME_DOWN            = 9;  
108 	
109 	/**
110 	 * Raise the volume
111 	 */
112 	public static final int  APPCOMMAND_VOLUME_UP              = 10;  
113 	
114 	/**
115 	 * Media application go to next track.
116 	 */
117 	public static final int  APPCOMMAND_MEDIA_NEXTTRACK        = 11;  
118 	
119 	/**
120 	 * Media application Go to previous track.
121 	 */
122 	public static final int  APPCOMMAND_MEDIA_PREVIOUSTRACK    = 12;  
123 	
124 	/**
125 	 * Media application Stop playback.
126 	 */
127 	public static final int  APPCOMMAND_MEDIA_STOP             = 13;  
128 	
129 	/**
130 	 * Media application Play or pause playback.
131 	 */
132 	public static final int  APPCOMMAND_MEDIA_PLAY_PAUSE       = 14;  
133 	
134 	/**
135 	 * Open mail application
136 	 */
137 	public static final int  APPCOMMAND_LAUNCH_MAIL            = 15; 
138 	
139 	/**
140 	 * Go to Media Select mode.
141 	 */
142 	public static final int  APPCOMMAND_LAUNCH_MEDIA_SELECT    = 16;  
143 	
144 	/**
145 	 * Start App1.
146 	 */
147 	public static final int  APPCOMMAND_LAUNCH_APP1            = 17;  
148 	
149 	/**
150 	 * Start App2.
151 	 */
152 	public static final int  APPCOMMAND_LAUNCH_APP2            = 18; 
153 	
154 	public static final int  APPCOMMAND_BASS_DOWN              = 19;
155 	public static final int  APPCOMMAND_BASS_BOOST             = 20;
156 	public static final int  APPCOMMAND_BASS_UP                = 21;
157 	public static final int  APPCOMMAND_TREBLE_DOWN            = 22;
158 	public static final int  APPCOMMAND_TREBLE_UP              = 23;
159 	public static final int  APPCOMMAND_MICROPHONE_VOLUME_MUTE = 24;
160 	public static final int  APPCOMMAND_MICROPHONE_VOLUME_DOWN = 25;
161 	public static final int  APPCOMMAND_MICROPHONE_VOLUME_UP   = 26;
162 	public static final int  APPCOMMAND_HELP                   = 27;
163 	public static final int  APPCOMMAND_FIND                   = 28;
164 	public static final int  APPCOMMAND_NEW                    = 29;
165 	public static final int  APPCOMMAND_OPEN                   = 30;
166 	public static final int  APPCOMMAND_CLOSE                  = 31;
167 	public static final int  APPCOMMAND_SAVE                   = 32;
168 	public static final int  APPCOMMAND_PRINT                  = 33;
169 	public static final int  APPCOMMAND_UNDO                   = 34;
170 	public static final int  APPCOMMAND_REDO                   = 35;
171 	public static final int  APPCOMMAND_COPY                   = 36;
172 	public static final int  APPCOMMAND_CUT                    = 37;
173 	public static final int  APPCOMMAND_PASTE                  = 38;
174 	public static final int  APPCOMMAND_REPLY_TO_MAIL          = 39;
175 	public static final int  APPCOMMAND_FORWARD_MAIL           = 40;
176 	public static final int  APPCOMMAND_SEND_MAIL              = 41;
177 	public static final int  APPCOMMAND_SPELL_CHECK            = 42;
178 	public static final int  APPCOMMAND_DICTATE_OR_COMMAND_CONTROL_TOGGLE = 43;
179 	public static final int  APPCOMMAND_MIC_ON_OFF_TOGGLE      = 44;
180 	public static final int  APPCOMMAND_CORRECTION_LIST        = 45;
181 
182 }