Search found 19 matches

by nismo
03 May 2017, 09:00
Forum: Ask For Help
Topic: Get names / VKs + SCs of all keys
Replies: 9
Views: 5204

Re: Get names / VKs + SCs of all keys

Thank you very much, what about the edit box and button? I tried by myself but script working all time and doesn't stop when key detected, also it's capturing keys since I run the script, doesn't wait for the Gui... I'm new with ahk...

Anyway thanks for taking your time to help me.

Regards.
by nismo
02 May 2017, 23:00
Forum: Ask For Help
Topic: Zero key stopped working
Replies: 20
Views: 4648

Re: Zero key stopped working

I have the same issue, my default language it's spanish.
by nismo
02 May 2017, 18:38
Forum: Ask For Help
Topic: Get names / VKs + SCs of all keys
Replies: 9
Views: 5204

Re: Get names / VKs + SCs of all keys

I know it's an bit old thread but it's a very nice code, it detects all my keys except for Ralt and NumpadEnter, it can be fixed? I would like an edit box with a button, then click the button a spam message ask for key, and update the edit box with the key, it's possible?, I don't know how to do it,...
by nismo
01 May 2017, 18:52
Forum: Ask For Help
Topic: AHK different on 2 identical PC's
Replies: 19
Views: 2674

Re: AHK different on 2 identical PC's

Maybe, just maybe, in one of the pc's you have some program or script running that interfere/block ahk...
by nismo
01 May 2017, 05:21
Forum: Ask For Help
Topic: 360 controller strange behaviour? Topic is solved
Replies: 5
Views: 1011

Re: 360 controller strange behaviour? Topic is solved

Nice! I'm glad to help, then maybe you can check my post as topic solved.

Regards.
by nismo
30 Apr 2017, 19:22
Forum: Ask For Help
Topic: 360 controller strange behaviour? Topic is solved
Replies: 5
Views: 1011

Re: 360 controller strange behaviour? Topic is solved

Check this section on Hotkeys https://autohotkey.com/docs/Hotkeys.htm#combo It states you can't combo with them. Yes you can combo but it's a bit tricky, I do it this way: #persistent ; Example of doing select+start button combo on X360 gamepad. JoystickNumber = 1 ; What gamepad to use ButtonSelect...
by nismo
29 Apr 2017, 15:58
Forum: Ask For Help
Topic: (probably simple) Custom combination problem
Replies: 1
Views: 350

Re: (probably simple) Custom combination problem

Why don't use SHIFT+F10? (as is, without autohotkey program)

Anyway the menu key hotkey for autohotkey is "Appskey".
by nismo
27 Apr 2017, 16:34
Forum: Ask For Help
Topic: Help to send a variable with hotkeys combinations and up down events
Replies: 12
Views: 2094

Re: Help to send a variable with hotkeys combinations and up down events

Thank you, that works, I did that way before with the same code in my first try, but I writed test := replaceModifier(%outhk%) instead of test := replaceModifier(outhk) without the percent sign so I changed all the code again. My error. I did know how to use functions but I really doesn't know anyth...
by nismo
27 Apr 2017, 16:17
Forum: Ask For Help
Topic: Help to send a variable with hotkeys combinations and up down events
Replies: 12
Views: 2094

Re: Help to send a variable with hotkeys combinations and up down events

This is how I was saving my first ini: IniWrite, %outhk%, settings.ini, Controls, Button1 So to test your function I did this: outhk=!F4 replaceModifier("%outhk%") IniWrite, %modifier%, test.ini, Button1, modifier IniWrite, %key%, test.ini, Button1, key return The structure of the created ini file i...
by nismo
27 Apr 2017, 15:53
Forum: Ask For Help
Topic: Help to send a variable with hotkeys combinations and up down events
Replies: 12
Views: 2094

Re: Help to send a variable with hotkeys combinations and up down events

and here's a basic template for StringReplace since you asked and even it is not needed anymore in the code above: input := "Ceci est un message." StringReplace, output, % input, message, test MsgBox, %output% I know how to replace, but first I need to find the character to replace, split !F4 and t...
by nismo
27 Apr 2017, 15:47
Forum: Ask For Help
Topic: Help to send a variable with hotkeys combinations and up down events
Replies: 12
Views: 2094

Re: Help to send a variable with hotkeys combinations and up down events

I really appreciate your effort, could you give an example of how to use that function?

I'll try to do it, thank you very much.
by nismo
27 Apr 2017, 14:38
Forum: Ask For Help
Topic: Help to send a variable with hotkeys combinations and up down events
Replies: 12
Views: 2094

Re: Help to send a variable with hotkeys combinations and up down events

It works! thank you very much!! It works nicely. Can you help me with the string replace? I tried something like that before but it's out of my knoweledge. Now I need the code to do the changes from my ini on first post and your ini version, I'll try to do it, or maybe i'll try to make my code save ...
by nismo
27 Apr 2017, 14:12
Forum: Ask For Help
Topic: Help to send a variable with hotkeys combinations and up down events
Replies: 12
Views: 2094

Re: Help to send a variable with hotkeys combinations and up down events

I tried to avoid the error using GetKeyState instead of hotkey, now script run without errors but doesn't send any key. This is my second attemp: #NoEnv #persistent SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDir% ; Ensures a consist...
by nismo
27 Apr 2017, 13:26
Forum: Ask For Help
Topic: Help to send a variable with hotkeys combinations and up down events
Replies: 12
Views: 2094

Re: Help to send a variable with hotkeys combinations and up down events

Thank you very much for your answer, but unfortunately, it doesn't work. Error: Nonexistent hotkey. Specifically: 1joy1 ---> Hotkey, 1joy%a_index%, % DoButton%a_index%, on Your way to do it seems a good point, but my gui have only one edit box for each button and save the keys with modifiers this wa...
by nismo
27 Apr 2017, 11:14
Forum: Ask For Help
Topic: Help to send a variable with hotkeys combinations and up down events
Replies: 12
Views: 2094

Help to send a variable with hotkeys combinations and up down events

Hi, I'm new with autohotkey and I don't know so much about programming languages, but I think it's a great tool to start with it, I hope you can help me. I have a ini file with some hotkeys combinations stored on it, it looks this way: [Controls] Button1=!F4 Button2=z Button3=+g Button4=^F3 etc... I...
by nismo
23 Dec 2016, 06:54
Forum: Pedir Ayuda
Topic: Ayuda con BlockInput
Replies: 4
Views: 4256

Re: Ayuda con BlockInput

Con ese código, el gamepad sigue mandando la pulsación del botón y cualquier programa que esté abierto reconoce la pulsación del botón, tenga el foco el programa o no lo tenga. Estoy empezando a pensar que es imposible anular el botón o hacer que el programa no lo reconozca. Te agradezco muchísimo t...
by nismo
23 Dec 2016, 02:16
Forum: Pedir Ayuda
Topic: Ayuda con BlockInput
Replies: 4
Views: 4256

Re: Ayuda con BlockInput

Sí lo comprobé, tengo otros scripts donde uso ese botón para que envíe teclas, así que estoy seguro que es joy1. Es más si, cambio joy1::return por joy1::1 y ejecuto el script y abro un documento de texto, puedo ver como escribe un 1 cada vez que pulso el botón, así que sí, seguro que ese es el botó...
by nismo
22 Dec 2016, 18:00
Forum: Pedir Ayuda
Topic: Ayuda con BlockInput
Replies: 4
Views: 4256

Re: Ayuda con BlockInput

Muchas gracias pero no funciona, el gamepad sigue mandando el botón y el programa lo sigue recibiendo.

Sí es el joy1, o sea el primer botón de mi gamepad.
by nismo
22 Dec 2016, 14:13
Forum: Pedir Ayuda
Topic: Ayuda con BlockInput
Replies: 4
Views: 4256

Ayuda con BlockInput

Hola, tengo un problema con un script que estoy haciendo y es que necesito desactivar un botón de un joystick mientras arranca un programa. No lo tengo mapeado a ninguna tecla, así que no necesito que el mapeo deje de funcionar, si no el botón en sí. Ya he leído que BlockInput solo permite teclado y...

Go to advanced search