Что нового

[Мышь, клавиатура] Эмуляция некоторых клавиш не рабоает в Windows 7 64bit

avrill

Новичок
Сообщения
7
Репутация
0
Здраствуйте, вобщем эмуляция некоторых клавиш не рабоает в Windows 7 64bit, например

отсылаю Send("{=}")

прекрасно работает в Windows XP 32/64bit Vista 32/64 Windows 7 32bit,

но на Windows 7 64bit непашет, остальные клавиши хорошо отсылаються , всё норм, но именно клавиши = и - непашут((


Помогите нубу плиз!

Ухожу на установку Windows 7 64bit
 
Автор
A

avrill

Новичок
Сообщения
7
Репутация
0
Извиняюсь, я по стечению обстоятельств ввёл себя в заблуждение, всё работает на windows7 64bit

Тему можно закрывать.

В следующий раз 10раз перепроверю всё перед тем как создавать тему :-\
 

Suppir

Продвинутый
Сообщения
967
Репутация
62
Если возникает проблема с Send, то в Vista или Windows 7 скрипт нужно запускать от имени администратора. Иначе Windows блокирует Send и controlSend.


В справке:

Windows Vista brings new security features to restrict the running of files that require administrative rights. Even administrator users will be prompted every time an executable runs which will perform some administrative operation (such as writing to the registry key HKEY_LOCAL_MACHINE or writing to the C:\Windows directory). This is called User Account Control (UAC).

By default AutoIt scripts run with standard user permissions but AutoIt has been coded to allow the script writer the option to "tag" a script in order to tell AutoIt if it needs to run with full admin rights or not.

To force a script to attempt to run itself with administrative rights add the #requireadmin directive at the top of your script as follows:

; This script requires full Administrative rights
#requireadmin

When the script runs AutoIt will check if it already has full admin rights and if not it will cause the operating system to prompt the user for permission as shown in "UAC Prompts". If permission is not given by the user the script will terminate.


Т.е. чтобы Autoit-скрипт нормально работал в Vista или Windows 7, ему нужно прописать #requireadmin
 
Верх