Search found 8 matches

by Traumverderber
26 Jan 2018, 06:11
Forum: Ask For Help
Topic: Sleep for current Send Action / Hold Key down until
Replies: 10
Views: 1491

Re: Sleep for current Send Action / Hold Key down until

I found this post which deals with a smiliar Problem https://autohotkey.com/board/topic/467-record-key-press-duration/ . Maybe I can work with A_TimeSinceThisHotkey? And I could ask: If A_TimeSinceThisHotkey = 2500, Send {Numpad 9 down} If A_TimeSinceThisHotkey = 3250, Send {Numpad 9 up} And extend ...
by Traumverderber
26 Jan 2018, 06:01
Forum: Ask For Help
Topic: Sleep for current Send Action / Hold Key down until
Replies: 10
Views: 1491

Re: Sleep for current Send Action / Hold Key down until

that was the second code I sent #SingleInstance, Force #NoEnv ^a:: ;----------------------- Control + a to activate Send, {Numpad9, D} ;----- pressing 9 down Sleep, 250 Send, {Numpad3} ;-------- while 9 is down pressing 3 Sleep, 250 Send, {Numpad4} ;-------- pressing 4 Sleep, 250 Send, {Numpad9, U}...
by Traumverderber
26 Jan 2018, 04:52
Forum: Ask For Help
Topic: Sleep for current Send Action / Hold Key down until
Replies: 10
Views: 1491

Re: Sleep for current Send Action / Hold Key down until

GreatGazoo wrote:

Code: Select all

^a:: ;----------------------- Control + a to activate
	Send, {Numpad9} ;--------- pressing 9
	Sleep, 375
	Send, {Numpad3} ;--------  pressing 3
	Sleep, 375
	Send, {Numpad4} ;-------- pressing 4
return	
Please read my first post. Between num9 down and num9 up are Actions.
by Traumverderber
26 Jan 2018, 04:48
Forum: Ask For Help
Topic: Sleep for current Send Action / Hold Key down until
Replies: 10
Views: 1491

Re: Sleep for current Send Action / Hold Key down until

yeah, you have to specify when you want it to automatically release the 9, you do that with sleep and sending 9 up As I mentioned, I'm searching for a method to avoid a line with Key up. The reason for this is because i have 300+ Timings. The only Information I have is a start time and how long to ...
by Traumverderber
26 Jan 2018, 04:41
Forum: Ask For Help
Topic: Sleep for current Send Action / Hold Key down until
Replies: 10
Views: 1491

Re: Sleep for current Send Action / Hold Key down until

where is your hotkey or hotstring ? if you do send numpad9 down and not send it up it will stay down #SingleInstance, Force #NoEnv ^a:: ;----------------------- Control + a to activate Send, {Numpad9, D} ;----- pressing 9 down Sleep, 375 Send, {Numpad3} ;-------- while 9 is down pressing 3 Sleep, 3...
by Traumverderber
26 Jan 2018, 03:54
Forum: Ask For Help
Topic: Sleep for current Send Action / Hold Key down until
Replies: 10
Views: 1491

Sleep for current Send Action / Hold Key down until

Hello, I want to transform the first code, into something like the second one. The reason for this is, because between the {Numpad9 down} and {Numpad9 up} command are several other Actions. I appreciate your help! Send {Numpad9 down} Sleep 375 Send {Numpad3 down}{Numpad3 up} Sleep 375 Send {Numpad9 ...
by Traumverderber
25 Jan 2018, 04:40
Forum: Gaming
Topic: Performing Actions according on a Time basis
Replies: 2
Views: 323

Re: Performing Actions according on a Time basis

BoBo wrote:Is this for a game?
Yes
by Traumverderber
25 Jan 2018, 03:27
Forum: Gaming
Topic: Performing Actions according on a Time basis
Replies: 2
Views: 323

Performing Actions according on a Time basis

Hello, I want to realize a simple Send Script, which sends a key press at a specifc time. Basically what I'm trying to figure out, is how do I add Timings to a Send Operation? This is an example of a simple Send Script. Send {a down}{a up} Send {b down} Sleep 750 Send {b up} My Script should perform...

Go to advanced search