Search found 4 matches

by samarin
04 Apr 2021, 17:30
Forum: Ask for Help (v1)
Topic: Any ideas why this script doesn't work if a modifier key is being held?
Replies: 1
Views: 93

Any ideas why this script doesn't work if a modifier key is being held?

This is the script in question:

Code: Select all

~RButton::
Sleep, 1
Send {p down}
KeyWait, RButton
Send {p up}
If I am holding CTRL, SHIFT or ALT, RButton is pressed, but {p down} isn't.

Any ideas?

Thanks!
by samarin
04 Apr 2021, 16:22
Forum: Ask for Help (v1)
Topic: Script to re-assign RButton to hold down RControl, wait 100ms, and press "p" once Topic is solved
Replies: 1
Views: 103

Script to re-assign RButton to hold down RControl, wait 100ms, and press "p" once Topic is solved

Hi guys, So I'm trying to make a script to re-assign RButton so that when I hold it down.... RControl is held down wait 100ms "p" is pressed once. RControl is held down throughout this so long as RButton is. Then, when I let go of RButton, it releases RControl. Any advice on this because I've been s...
by samarin
08 Feb 2020, 21:58
Forum: Ask for Help (v1)
Topic: Creating a dot in the centre of the screen, toggleable on button hold
Replies: 3
Views: 1485

Re: Creating a dot in the centre of the screen, toggleable on button hold

scriptor2016 wrote:
08 Feb 2020, 19:38

Code: Select all

~rbutton::
winhide, DOT
keywait, rbutton
winshow, DOT
Return
Is there a way to do this without the winhide and winshow functions? As this is causing my game to go in and out of focus
by samarin
08 Feb 2020, 15:04
Forum: Ask for Help (v1)
Topic: Creating a dot in the centre of the screen, toggleable on button hold
Replies: 3
Views: 1485

Creating a dot in the centre of the screen, toggleable on button hold

I am looking to create a script that will display an overlay of a small red dot in the centre of the screen. This could either be done by using a .png of a dot, or drawing one. When RButton is pressed and held down, the dot will dissappear. When RButton is not pressed down anymore, the dot will reap...

Go to advanced search