PCCar.ru - Ваш автомобильный компьютер

PCCar.ru - Ваш автомобильный компьютер (http://pccar.ru/index.php)
-   Вопросы и ответы (http://pccar.ru/forumdisplay.php?f=26)
-   -   Джойстик-мышка (http://pccar.ru/showthread.php?t=1411)

mebitek 13.12.2006 06:03

Джойстик-мышка
 
Как сделать мышку-джойстик, тоесть повернул влево курсор влево поехал,повернул вправо курсор в право поехал и т.д.

Hamster 13.12.2006 12:34

Вложений: 1
Элементарно.Берешь прогу Autohotkey.
Пихаешь в нее вот этот Вложение 1276 скрипт (расширение txt надо убрать, просто без него на форум не выложить). И все работает.

Using a Joystick as a Mouse
This script converts a joystick into a three-button mouse. It allows each button to drag just like a mouse button and it uses virtually no CPU time. Also, it will move the cursor faster depending on how far you push the joystick from center. You can personalize various settings at the top of the script.

mebitek 13.12.2006 15:11

По поваду автокея у меня при запуске программы выдает Error at line 21
autohotkey.ini
invalid hotkey
Что делать?

Hamster 13.12.2006 15:28

Цитата:

Сообщение от mebitek (Сообщение 13785)
По поваду автокея у меня при запуске программы выдает Error at line 21
autohotkey.ini
invalid hotkey
Что делать?

Выбирай на вкус:
1. Залезть в инишник и посмотреть что там на строчке 21 :)
2. Удалить инишник нах. При первом запуске автохоткей его сам создаст.

Версия какая? У меня Version 1.0.44.14

mebitek 14.12.2006 02:38

Версия вот такая 1.0.46.00 ,а с *.ini ща попробую!

mebitek 14.12.2006 02:39

Слушай ,а почему road runner такой медленный?

mebitek 14.12.2006 03:02

Вот мой ини.
; IMPORTANT INFO ABOUT GETTING STARTED: Lines that start with a
; semicolon, such as this one, are comments. They are not executed.

; This script is a .INI file because it is a special script that is
; automatically launched when you run the program directly. By contrast,
; text files that end in .ahk are associated with the program, which
; means that they can be launched simply by double-clicking them.
; You can have as many .ahk files as you want, located in any folder.
; You can also run more than one .ahk file simultaneously and each will
; get its own tray icon.

; Please read the QUICK-START TUTORIAL near the top of the help file.
; It explains how to perform common automation tasks such as sending
; keystrokes and mouse clicks. It also explains how to use hotkeys.

; SAMPLE HOTKEYS: Below are two sample hotkeys. The first is Win+Z and it
; launches a web site in the default browser. The second is Control+Alt+N
; and it launches a new Notepad window (or activates an existing one). To
; try out these hotkeys, run AutoHotkey again, which will load this file.

Run www.autohotkey.com

^!n::
IfWinExist Untitled - Notepad
WinActivate
else
Run Notepad
return


; Note: From now on whenever you run AutoHotkey directly, this script
; will be loaded. So feel free to customize it to suit your needs.

Если удаляю такой-же создаеться и все по новой.

mebitek 14.12.2006 03:27

Обьясните по человечески как запустить этот ё****й автокей?

Hamster 14.12.2006 11:33

Ок. Если п.2 из моих советов не прошел, делаем как в п.1.
В 21 строчке стоит Run www.autohotkey.com.
Вариантов опять два:
1. Комментарим строчку нафиг :)
2. Рассуждаем, почему же он мог тут отвалиться? Может у тебя нет инета, может глюки с эксплорером, мож файрвол стоит и посылает.

Димон 14.12.2006 13:26

а не проще-ли все в exe компильнуть и не заниматься интернетом?


Часовой пояс GMT +4, время: 03:15.

Работает на vBulletin® версия 3.8.4.
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Перевод: zCarot