Search found 3516 matches

by Rohwedder
Yesterday, 02:35
Forum: Gaming
Topic: Is there a better way?
Replies: 1
Views: 59

Re: Is there a better way?

Hallo, try: x Up::x:=False $x:: x := True ;keeps the respective thread active MouseClick, Left Sleep(275,x) MouseClick, Left Sleep(355,x) MouseClick, Left Sleep(405,x) send, {r} Sleep(50,x) send, {r} Sleep(240,x) return Sleep(Time,ByRef On:=True) { ;like "Sleep, Time", but if On becomes Zero, the Th...
by Rohwedder
Yesterday, 02:21
Forum: Gaming
Topic: Clicking for select period of time
Replies: 1
Views: 44

Re: Clicking for select period of time

hallo,
try:

Code: Select all

F2::
Endtime := A_TickCount + 75000 ;Now + 1 minute and 15 seconds
While, A_TickCount < Endtime
{
	Click
	Sleep, 10
}
Return
F3::Restart
by Rohwedder
Yesterday, 02:09
Forum: Ask For Help
Topic: Remaping a key, and making it a modifier for another key
Replies: 7
Views: 110

Re: Remaping a key, and making it a modifier for another key

Hallo,
Maybe the ToolTip is outside the screen.
try:

Code: Select all

CoordMode, ToolTip, Screen
by Rohwedder
Yesterday, 01:40
Forum: Ask For Help
Topic: ahk for game(ask)
Replies: 1
Views: 43

Re: ahk for game(ask)

Hallo,
try:

Code: Select all

#Persistent
SetTimer, Mouse, 100
Mouse:
MouseGetPos, X1
IF Abs(DX:=X1-X2) > 4
	Send,% DX>0? "{a Up}{d Down}":"{d Up}{a Down}"
X2 := X1
Return
by Rohwedder
24 Oct 2020, 01:26
Forum: Spiele
Topic: Kann mir jemand ein script erstellen ?
Replies: 1
Views: 30

Re: Kann mir jemand ein script erstellen ?

Hallo,
versuch mal:

Code: Select all

*q:: ;ein/aus mit Taste Q
If TQ := !TQ
{
	SetTimer, TQ, 3000 ;alle 3 Sekunden
	Send, {w Down}e
}
Else
{
	SetTimer, TQ, Off
	Send, {w Up}
}
Return
TQ:
Send, e
Return
Aber bitte keine PNn, nur übers Forum.
by Rohwedder
23 Oct 2020, 07:51
Forum: Ich brauche Hilfe
Topic: Fehler ! kurzer einzeiler
Replies: 8
Views: 89

Re: Fehler ! kurzer einzeiler

Hallo,
oder als Zweizeiler:

Code: Select all

IfInString, verzeichnisse1, %suchepunkt%, goto, ende
FileCreateDir, %A_ScriptDir%\%verzeichnisse1%
by Rohwedder
23 Oct 2020, 02:35
Forum: Gaming
Topic: Where to start?
Replies: 1
Views: 47

Re: Where to start?

by Rohwedder
23 Oct 2020, 02:31
Forum: Gaming
Topic: Press keys for 1 sec
Replies: 1
Views: 45

Re: Press keys for 1 sec

Hallo,
try:

Code: Select all

F12::
Send e
Sleep, 2000
Click, 1206, 728
Sleep 500000
Send, {vk53 Down}
Sleep, 1000
Send, {vk53 Up}
Send, {vk57 Down}
Sleep, 1000
Send, {vk57 Up}
Send e
Return
by Rohwedder
23 Oct 2020, 02:20
Forum: Ask For Help
Topic: Help to cancel another hotkey command
Replies: 1
Views: 43

Re: Help to cancel another hotkey command

Hallo, perhaps: F12::Suspend *q:: Send("{a down}{down down}{up down}") While GetKeyState("q","P") { send {left down} sleep 50 send {left up} sleep 50 } Send() return *e:: Send("{d down}{down down}{up down}") While GetKeyState("e","P") { send {right down} sleep 50 send {right up} sleep 50 } Send() re...
by Rohwedder
22 Oct 2020, 12:21
Forum: Gaming
Topic: Going crazy with AHK lol
Replies: 2
Views: 68

Re: Going crazy with AHK lol

Hallo, try: MButton::y While GetKeyState("y","p"){ SoundBeep Sleep 50 } return the While loop will never be executed! Keeps Enter down as long as you make Wheeldowns at least one per second: WheelDown:: SetTimer, TEnter, -1000 IF !GetKeyState("Enter") Send {Enter down} Return TEnter: Send {Enter up}...
by Rohwedder
22 Oct 2020, 11:36
Forum: Gaming
Topic: Loop Problems
Replies: 30
Views: 310

Re: Loop Problems

I have added ToolTips for monitoring: #IfWinActive Roblox ^+o:: Loop { Send, {z down} ;on the 7th loop this command is ignored ToolTip,% A_Index "th start`nLine: " A_LineNumber "`nZ is " (GetKeyState("z")?"down":"up") Sleep 2000 Send, {z up} ;on the 7th loop this command is ignored ToolTip,% A_Index...
by Rohwedder
22 Oct 2020, 11:09
Forum: Bug Reports
Topic: a negative frequency never end
Replies: 1
Views: 65

a negative frequency never end

Hallo,
try:

Code: Select all

q::SoundBeep,, -100
Here, 1.1.33.02 64bit, it soundbeeps forever!
by Rohwedder
22 Oct 2020, 03:16
Forum: Ask For Help
Topic: help with specific sleep action Topic is solved
Replies: 9
Views: 88

Re: help with specific sleep action Topic is solved

Then perhaps:

Code: Select all

*q::SetTimer TXB1,% (TXB1:=!TXB1)?-10:"Off"
TXB1: ;On/Off with Key Q
SetTimer TXB1, -2000
Send, {Blind}{XButton1}
Return
Or shorter:

Code: Select all

*q::SetTimer q Up,% (TXB1:=!TXB1)?2000:"Off"
q Up::Send,% TXB1?"{Blind}{XButton1}":
by Rohwedder
22 Oct 2020, 02:40
Forum: Ask For Help
Topic: help with specific sleep action Topic is solved
Replies: 9
Views: 88

Re: help with specific sleep action Topic is solved

Perhaps:

Code: Select all

*q::SetTimer TXB1,% (TXB1:=!TXB1)?2000:"Off"
TXB1: ;On/Off with Key Q
Send, {Blind}{XButton1}
Return
by Rohwedder
22 Oct 2020, 01:59
Forum: Ask For Help
Topic: help with specific sleep action Topic is solved
Replies: 9
Views: 88

Re: help with specific sleep action Topic is solved

What exactly you want is not clear to me.
But I know that to get what you want you must understand the function of the tilde ~ in ~*LButton::
https://www.autohotkey.com/docs/Hotkeys.htm
~ When the hotkey fires, its key's native function will not be blocked (hidden from the system)...
by Rohwedder
22 Oct 2020, 01:43
Forum: Ask For Help
Topic: "Task View" shortcut with Mouse Click
Replies: 2
Views: 53

Re: "Task View" shortcut with Mouse Click

Hallo,
try:

Code: Select all

#Up::Send, #{Tab}
by Rohwedder
22 Oct 2020, 01:37
Forum: Ask For Help
Topic: help with specific sleep action Topic is solved
Replies: 9
Views: 88

Re: help with specific sleep action Topic is solved

Hallo,
the While loop becomes active after the sleep.
But as long as you press LButton your active window receives XButton1 and LButton because LButton is not masked (tilde ~).
by Rohwedder
21 Oct 2020, 09:42
Forum: Gaming
Topic: Loop Problems
Replies: 30
Views: 310

Re: Loop Problems

1. Since the evaluation of if KeyIsDown := 1 is from right to left. It is equal as: KeyIsDown := 1 if KeyIsDown ;(always True) The break in the following Else branch will therefore never be executed! if KeyIsDown = 1 would make more sense here. But 2.: unless you use the #MaxThreadsPerHotkey command...
by Rohwedder
21 Oct 2020, 09:07
Forum: Gaming
Topic: ¿Como presiono ctrl+x al mismo tiempo con f1?
Replies: 2
Views: 68

Re: ¿Como presiono ctrl+x al mismo tiempo con f1?

Hallo,
try:

Code: Select all

F1:: ;On/Off with F1 key
If TF1 := !TF1
	SetTimer TF1, 100 ;every 100ms
Else
    SetTimer TF1, Off
Return
TF1:
Send, ^x
Return
or a little shorter:

Code: Select all

F1::SetTimer, F1 Up,% (TF1:=!TF1)?100:"Off"
F1 Up::Send,% TF1?"^x": ;every 100ms

Go to advanced search