newbie need some help on autohotkey

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
lockherin
Posts: 2
Joined: 10 Dec 2018, 02:50

newbie need some help on autohotkey

10 Dec 2018, 03:11

Hi, i am new to autohotkey.

I have some questions to ask.

I would like to click my right mouse button and have it perform the following functions:
1) press the "shift" key and the letter "q" at the same time
2) wait for 0.05 seconds
3) press the letter "w"

I would like to seek help from experienced coders to check whether my code is correct.

Here is my code:

Code: Select all

RButton::
Send, +q
Sleep, 50
Send, w
return
Thank you.
hymal7
Posts: 66
Joined: 14 Sep 2016, 05:37

Re: newbie need some help on autohotkey

10 Dec 2018, 04:46

Your code works fine.
How are you unable to test it?
You can use SciTE4AutoHotkey to write and test your code.

http://fincs.ahk4.net/scite4ahk/
lockherin
Posts: 2
Joined: 10 Dec 2018, 02:50

Re: newbie need some help on autohotkey

10 Dec 2018, 05:06

Hi hymal7

Thank you for your reply.

This is my first time writing autohotkey, so I am quite inexperienced about the programming.

I managed to test it just now by opening a new empty notepad and test it.

I am writing another second autohotkey which is a little bit more complex than the above first autohotkey.

For the second autohotkey, I would like to click my right mouse button and have it perform the following functions:
1) press the "shift" key and the middle mouse button at the same time
2) wait for 0.025 seconds
3) press the letter "q"

This code is slightly more complex because it involves middle mouse button which I am unable to test using notepad. Hence I would like to seek help from experienced coders to check whether my code is correct.

Here is my code:

Code: Select all

RButton::
Send, +{MButton}
Sleep, 25
Send, q
return

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: just me, PepeViyuela, Rohwedder and 168 guests