Press key Topic is solved

Get help with using AutoHotkey and its commands and hotkeys
Aoky Carmona
Posts: 3
Joined: 19 Jul 2018, 21:45

Press key

19 Jul 2018, 21:52

Hi, I would like to know if theres a way to make a script that does the following things:
-While I keep pressed the "MButton" it executes "spacebar(down)and left click (down)"
-When I release the MButton it makes the opposite "spacebar(Up) and Left click (Up)"
This is a sample code that I made (i'm still new in this)

Code: [Select all] [Expand] [Download] (Untitled.ahk)GeSHi © Codebox Plus

wolf_II
Posts: 1975
Joined: 08 Feb 2015, 20:55

Re: Press key

20 Jul 2018, 02:02

Try this: (not tested)

Code: [Select all] [Download] GeSHi © Codebox Plus

#IfWinActive, ahk_class indesign
MButton:: Send, {Space Down}{LButton Down}
MButton Up:: Send, {Space Up}{LButton Up}
I hope that helps.
Rohwedder
Posts: 1171
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Press key  Topic is solved

20 Jul 2018, 02:06

Hallo,
try this Remapping variation:

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus

Aoky Carmona
Posts: 3
Joined: 19 Jul 2018, 21:45

Re: Press key

20 Jul 2018, 11:13

Thanks it works :D

Return to “Ask For Help”

Who is online

Users browsing this forum: marvix, TAC109, Xtra and 53 guests