|
|
|
имитировать нажатие клавиш юзером
|
|||
|---|---|---|---|
|
#18+
Всем Привет! У меня вопрос: Как можно имитировать нажатие клавиш юзером (под windows) в коде, так чтобы другая программа поймала и отреагировала, на пример на сочетание клавиш ctrl+enter или alt+s. Я знаю что это возможно, но как не знаю. Помогите пожалуйста кто может - очень важно для проекта. Спасибо ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 17.08.2004, 13:15 |
|
||
|
имитировать нажатие клавиш юзером
|
|||
|---|---|---|---|
|
#18+
Поднимаю тоже вопрос. А все же как? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 15.09.2005, 10:19 |
|
||
|
имитировать нажатие клавиш юзером
|
|||
|---|---|---|---|
|
#18+
Или, другое, как обработать пункт меню программой ... ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 15.09.2005, 10:23 |
|
||
|
имитировать нажатие клавиш юзером
|
|||
|---|---|---|---|
|
#18+
java.awt.Robot /** * This class is used to generate native system input events * for the purposes of test automation, self-running demos, and * other applications where control of the mouse and keyboard * is needed. The primary purpose of Robot is to facilitate * automated testing of Java platform implementations. * <p> * Using the class to generate input events differs from posting * events to the AWT event queue or AWT components in that the * events are generated in the platform's native input * queue. For example, <code>Robot.mouseMove</code> will actually move * the mouse cursor instead of just generating mouse move events. * <p> * Note that some platforms require special privileges or extensions * to access low-level input control. If the current platform configuration * does not allow input control, an <code>AWTException</code> will be thrown * when trying to construct Robot objects. For example, X-Window systems * will throw the exception if the XTEST 2.2 standard extension is not supported * (or not enabled) by the X server. * <p> * Applications that use Robot for purposes other than self-testing should * handle these error conditions gracefully. * * @version 1.27, 12/19/03 * @author Robi Khan * @since 1.3 */ ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 15.09.2005, 10:26 |
|
||
|
имитировать нажатие клавиш юзером
|
|||
|---|---|---|---|
|
#18+
GlukOzaИли, другое, как обработать пункт меню программой ... программой... ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 15.09.2005, 10:27 |
|
||
|
имитировать нажатие клавиш юзером
|
|||
|---|---|---|---|
|
#18+
гость из прошлого GlukOzaИли, другое, как обработать пункт меню программой ... программой... Вы не проснулись? Извините... ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 15.09.2005, 10:42 |
|
||
|
имитировать нажатие клавиш юзером
|
|||
|---|---|---|---|
|
#18+
GlukOzaВы не проснулись? Извините... Проснулся! Извинения принимаются! ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 15.09.2005, 11:00 |
|
||
|
имитировать нажатие клавиш юзером
|
|||
|---|---|---|---|
|
#18+
выбирающий солнечное утроjava.awt.Robot /** * This class is used to generate native system input events * for the purposes of test automation, self-running demos, and * other applications where control of the mouse and keyboard * is needed. The primary purpose of Robot is to facilitate * automated testing of Java platform implementations. * <p> * Using the class to generate input events differs from posting * events to the AWT event queue or AWT components in that the * events are generated in the platform's native input * queue. For example, <code>Robot.mouseMove</code> will actually move * the mouse cursor instead of just generating mouse move events. * <p> * Note that some platforms require special privileges or extensions * to access low-level input control. If the current platform configuration * does not allow input control, an <code>AWTException</code> will be thrown * when trying to construct Robot objects. For example, X-Window systems * will throw the exception if the XTEST 2.2 standard extension is not supported * (or not enabled) by the X server. * <p> * Applications that use Robot for purposes other than self-testing should * handle these error conditions gracefully. * * @version 1.27, 12/19/03 * @author Robi Khan * @since 1.3 */ Спасибо за подсказку. Интересный пакет ~)) ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 15.09.2005, 11:20 |
|
||
|
|

start [/forum/topic.php?fid=59&msg=32652698&tid=2151493]: |
0ms |
get settings: |
11ms |
get forum list: |
21ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
189ms |
get topic data: |
9ms |
get forum data: |
2ms |
get page messages: |
47ms |
get tp. blocked users: |
2ms |
| others: | 253ms |
| total: | 542ms |

| 0 / 0 |
