|
7 / 7 / 0
Регистрация: 10.07.2015
Сообщений: 69
|
||||||
Disable the input method of the text control of other programs15.12.2020, 15:09. Показов 6096. Ответов 35
Метки нет (Все метки)
I have a program, when I use a QR code scanner to scan the code, I must set the text control to the English input method. Otherwise, the scan will fail. It should be because I don’t have the source code. I want to know how to specify this text box The input method of the control is English. I want to make a plug-in to automatically perform this operation. Automatically detect when the cursor is in the target text box, modify the input method. Thank you
But it doesn’t seem to work perfectly in win10. Is there any other good way? ImmAssociateContext(mHwnd, 0) It can only act on its own process and has no effect on other processes ImmAssociateContextEx(mHwnd, 0, 0) It can only act on its own process and has no effect on other processes
0
|
||||||
| 15.12.2020, 15:09 | |
|
Ответы с готовыми решениями:
35
Как сделать disable для input text? Проблема с формой (<form action=1.php method=post> <input type=text name='first'> <input type=submit value=ok>) How to determinate cursor position in HTML <input type=text> control. |
|
7 / 7 / 0
Регистрация: 10.07.2015
Сообщений: 69
|
||||||||||||||||
| 28.12.2020, 10:47 [ТС] | ||||||||||||||||
|
i want used this api "DisableCurrentIme" to disable input method in the other program .i want injected dll to the program.and run DisableCurrentIme.
test.zip have a test.exe .this is the target program! run this exe ,click the button will show work form.now i want hook this window,and then when the text control have forcus. dll can run DisableCurrentIme ! I want to try this technique. Добавлено через 1 час 19 минут thank you sir. in the test.zip .you can see test.exe. i want injection dll to the hook the work form .when the text control have forcuse i want run this API DisableCurrentIme to disable Keyboard input method.
see the picture 18# Добавлено через 3 минуты
see 17 # .18#
0
|
||||||||||||||||
|
7 / 7 / 0
Регистрация: 10.07.2015
Сообщений: 69
|
|
| 29.12.2020, 02:17 [ТС] | |
|
@the trick. yes. you are right.
Добавлено через 3 минуты I just want to disable the input method of a specific window! In addition, I want to know, what is wrong with my use of your dll inject method? Can you tell this defect
0
|
|
|
7 / 7 / 0
Регистрация: 10.07.2015
Сообщений: 69
|
||||||
| 29.12.2020, 17:43 [ТС] | ||||||
|
thank you
I'm glad you have time to reply to my question. I also tested your demo and it works well. But I modified it a bit. I hope to hook the text box automatically. There is a problem here. Please see the attachment,if hooked i have to click on the window of Injector.exe first, after transferring the focus, click on the text box. Then I can disable the input method. injectdll.zip By the way, is there any problem with the previous dll inject method?
0
|
||||||
|
7 / 7 / 0
Регистрация: 10.07.2015
Сообщений: 69
|
|
| 02.01.2021, 03:37 [ТС] | |
|
It seems that if you don't understand OD or other languages, you can't figure it out.
This is the trick that can be used very well. And we will have all kinds of doubts Happy New Year!
0
|
|
|
7 / 7 / 0
Регистрация: 10.07.2015
Сообщений: 69
|
|
| 03.01.2021, 06:11 [ТС] | |
|
This is the effect I achieved with non-dll injection. I hope to use dll to achieve it again
used this dll inject https://www.vbforums.com/showt... ost5505050 I think this method of dll injection and file mapping to transfer data is very useful
0
|
|
|
7 / 7 / 0
Регистрация: 10.07.2015
Сообщений: 69
|
|
| 04.01.2021, 10:25 [ТС] | |
|
can give me a demo ?used timer
sub timer if true then dll inject else unload hook end sub
0
|
|
|
7 / 7 / 0
Регистрация: 10.07.2015
Сообщений: 69
|
||
| 06.01.2021, 11:41 [ТС] | ||
|
Thanks the trick
now i konw why ...
in win10 ;If the injected program is not an administrator runed, it cannot be injected. how can fixed this
0
|
||
|
7 / 7 / 0
Регистрация: 10.07.2015
Сообщений: 69
|
|
| 07.01.2021, 09:47 [ТС] | |
|
cant used timer ... It's a big problem!
in ide used timer work well ,but exe cant used timer .crashes or becomes nonresp~~~ Добавлено через 3 часа 3 минуты because this timer have a do loop to find a window handle !
0
|
|
|
7 / 7 / 0
Регистрация: 10.07.2015
Сообщений: 69
|
|
| 08.01.2021, 08:36 [ТС] | |
|
I am ready to give up looking for a solution. Maybe it is more practical to learn a new language and write dll
0
|
|
|
7 / 7 / 0
Регистрация: 10.07.2015
Сообщений: 69
|
||
| 08.01.2021, 12:12 [ТС] | ||
So I like your dll injection function in vbfroums. see 27# gif . This is the effect display please help me modify this code!! I want to use partial matching to find the window handle,This is the most important place.
0
|
||
|
7 / 7 / 0
Регистрация: 10.07.2015
Сообщений: 69
|
|
| 11.01.2021, 04:16 [ТС] | |
|
Waiting is really a bad feeling. please reply
0
|
|
|
7 / 7 / 0
Регистрация: 10.07.2015
Сообщений: 69
|
|
| 15.01.2021, 04:48 [ТС] | |
|
now used EnumWindows find hwnd .now work ok .game over
0
|
|
|
7 / 7 / 0
Регистрация: 10.07.2015
Сообщений: 69
|
|
| 20.01.2021, 09:43 [ТС] | |
|
same code in win10 work ok. in win7 work not ok. Unable to debug, the injected program does not respond. This is estimated to be only a toy for me. give up
0
|
|
| 20.01.2021, 09:43 | |
|
результат выборки из БД: rs.next(); String text=rs.getString('text'); <input type=text name=name value=<%=text%>> How programatically disable all controls within frame without actually specifying each control name? Нажав на checkbox, input text появится у первого checkbox всегда, хотя должен input text появится у того checkbox Одинаковая ширина для полей input text & input password Одинаковая ширина для полей input text & input password Искать еще темы с ответами Или воспользуйтесь поиском по форуму: |
|
| Опции темы | |
|
|
Новые блоги и статьи
|
|||
|
Калькулятор для расчета родства
russiannick 07.08.2026
1. Задача: Создать калькулятор для расчета родства.
Родственных связей существует 8 ступеней, такие как:
p - отец
P - мать
q - муж
Q - жена
b - брат
B - сестра
s - сын
S - дочь
|
Мир по моей воле
kumehtar 07.08.2026
Когда-то кажется, что всё просто. Ты весь такой светлый. Причиняешь добро. Борешься за справедливость в этом тёмном мире.
Потом начинаешь замечать одну неприятную вещь. Почти каждый хороший. . .
|
Кредитный калькулятор
Maks 05.08.2026
Решение задачи по прикладной информатике средствами 1С.
Задача:
Напишите приложение-калькулятор, которое помогает рассчитывать параметры кредита для аннуитетного и дифференцированного видов. . .
|
У нас сейчас поговорку "Опять 25" нужно переделать на "Опять +35".
kumehtar 04.08.2026
С ностальгией вспоминаю времена моего детства, когда у нас и правда +25 - была максимальная температура летом. Раньше +25 °C реально казались вершиной жары, когда можно было весь день пропадать на. . .
|
|
Как ИИ начал спорить и врать (возможно почуяв опасность для себя от индустрии - уход от электроники).
Hrethgir 04.08.2026
Недельный диалог, на фоне событий с НПЗ. Да, из спирта можно получать бензин, и это не сложно. Но потом в схеме я решил избавиться от насоса, при этом полностью сделав контроль подачи спирта в. . .
|
Термопринтер QR701
Argus19 03.08.2026
Термопринтер QR701
Купил два термопринтера QR701.
На сэлф-тесте написано:
Language: PC936 (GB18030).
Что означает, что принтеры могут печатать только латиницу и китайские иероглифы. Так же. . .
|
Создание формы заимствованного документа
Maks 03.08.2026
Задача:
Необходимо создать собственную форму заимствованного документа. На форме должен быть реквизит "Покупатель", а также
табличная часть со следующими реквизитами:
- Расчетный счет покупателя. . .
|
Задача предоставления скидок покупателям
Maks 03.08.2026
Задача:
В документе "Продажи" необходимо реализовать функционал предоставления скидок покупателям. Скидка должна автоматически рассчитываться и подставляться в соответствующее поле при выборе. . .
|