Search found 27 matches

by shanshans
22 Jul 2022, 01:06
Forum: Gaming Help (v1)
Topic: I don't have the knowledge to do this Topic is solved
Replies: 2
Views: 441

Re: I don't have the knowledge to do this Topic is solved

a:: send {a down} return a up:: send {a up} if (!getkeystate("s","P")) and (!getkeystate("d","P")) send {s up}{d up} return w:: send {w down} return w up:: send {w up} if (!getkeystate("s","P")) and (!getkeystate("d","P")) send {s up}{d up} return c:: send {c down} return c up:: send {c up} if (!ge...
by shanshans
20 Jul 2022, 12:13
Forum: Gaming Help (v1)
Topic: Trouble with Chivalry 2 script
Replies: 1
Views: 475

Re: Trouble with Chivalry 2 script

I replaced lmb and o to a and b and it is not working for me... Sec, if you want to double press for something(funciton/key) new while blocking it's original key function , that will causing output delay (for the lmb, about 70-80ms at least...) I never understand a_timesincepriorhotkey or their brot...
by shanshans
19 Jul 2022, 04:48
Forum: Gaming Help (v1)
Topic: About key press/sleep timing... Topic is solved
Replies: 1
Views: 332

About key press/sleep timing... Topic is solved

4:: starttime:=A_TickCount DllCall("QueryPerformanceFrequency", "Int64*", freq) DllCall("QueryPerformanceCounter", "Int64*", CounterBefore) sleep 1 sleep 1 sleep 1 sleep 1 sleep 1 sleep 1 DllCall("QueryPerformanceCounter", "Int64*", CounterAfter) MsgBox % "Elapsed QPC time is " . (CounterAfter - Co...
by shanshans
15 Jul 2022, 10:33
Forum: Gaming Help (v1)
Topic: Pressing two keys simultaneously on the first frame
Replies: 4
Views: 775

Re: Pressing two keys simultaneously on the first frame

I read this a few times but have no clue what a frame is. AHK knows even less. Imagine you are explaining this to a new user, especially a remote new user who cannot see what you see. How would you explain it in terms of what mouse or keyboard should do? I'm sorry for not clarifying. The game I men...
by shanshans
14 Jul 2022, 11:50
Forum: Gaming Help (v1)
Topic: simple loop gets stuck
Replies: 11
Views: 1618

Re: simple loop gets stuck

This is actually an old problem when you using "&" Let's me show you the jamming issue with this key checking site so you can understand what happen (I use it to debug, very cool tool) https://www.iobit.com/en/keyboard-test.php ~1 & 2::3 press 1 > then press 2 , output 3 - no problem But press 1 > p...
by shanshans
25 Jun 2022, 00:33
Forum: Ask for Help (v1)
Topic: Select whole words when mouse hovers over
Replies: 2
Views: 544

Re: Select whole words when mouse hovers over

Not so sure what you want. If i need to select a word only, point the mouse to that word and double click on it . If it is a sentence triple click.
by shanshans
23 Jun 2022, 11:10
Forum: Ask for Help (v1)
Topic: WindowsKey + number Topic is solved
Replies: 14
Views: 1649

Re: WindowsKey + number Topic is solved

Code: Select all

f7::

Send, {LWin down}
sleep 20              ; needed ?
send {7 down}
keywait f7
send {7 up}
send, {LWin up}
return
I am using a highly modified taskbar , so i don't it will work or not, haha, but it is a start maybe.
by shanshans
22 Jun 2022, 13:58
Forum: Gaming Help (v1)
Topic: Sprintkey script
Replies: 13
Views: 1462

Re: Sprintkey script

w:: toggle:=!toggle if toggle=1 { send {w down} sleep 55 ; tweakable send {w up} sleep 55 ; tweakable send {w down} return } send {w up} return Don't know "~" is needed or not... You need to test it yourself... Press w one time to run , press it again to stop. (It may work ¯\_( ͡° ͜ʖ ͡°)_/¯ Good LU...
by shanshans
21 Jun 2022, 12:38
Forum: Gaming Help (v1)
Topic: Sprintkey script
Replies: 13
Views: 1462

Re: Sprintkey script

Code: Select all


~w::			; 
send {w down}
sleep 5		;or more than 5
send {w up}
sleep 5
send {w down}
return

w up::
sleep 20
send {w up}   ; getkeystate for WASD before the release maybe needed...
return

Something like that ?
by shanshans
20 Jun 2022, 00:08
Forum: Ask for Help (v1)
Topic: Is && better than AND Topic is solved
Replies: 1
Views: 331

Is && better than AND Topic is solved

I read a page(not ahk) about && and || They mention && is faster because when the condition of the left side is not meet , it will stop/break instantly. But AND will read/load? the complete condition no matter what. I guess || are kind of the same to OR Are they correct ? Should we replace AND to &&...
by shanshans
15 Jun 2022, 06:31
Forum: Gaming Help (v1)
Topic: Trouble making command with A_Priorhotkey Topic is solved
Replies: 4
Views: 468

Re: Trouble making command with A_Priorhotkey Topic is solved

My bad , I thought the {} can be skipped when it is one line only... Guess i am wrong... THKS :D
by shanshans
15 Jun 2022, 06:14
Forum: Gaming Help (v1)
Topic: Trouble making command with A_Priorhotkey Topic is solved
Replies: 4
Views: 468

Trouble making command with A_Priorhotkey Topic is solved

#NoEnv ListLines Off Process, Priority, , A SendMode Input #Persistent #MaxHotkeysPerInterval 99000000 #HotkeyInterval 99000000 ;SetKeyDelay, -1 #InstallKeybdHook #SingleInstance Force down:: if (A_Priorhotkey = "right") and (A_TimeSincePriorHotkey < 120) and (threeofthree = 1) threeofthree:= 2 els...
by shanshans
31 May 2022, 11:10
Forum: Gaming Help (v1)
Topic: Double press but using A_TickCount only. Topic is solved
Replies: 3
Views: 316

Re: Double press but using A_TickCount only. Topic is solved

I should correct myself , close to native(state) is enough XD (eg use send n or send {%n_is%} are ok)
by shanshans
31 May 2022, 09:11
Forum: Gaming Help (v1)
Topic: Double press but using A_TickCount only. Topic is solved
Replies: 3
Views: 316

Double press but using A_TickCount only. Topic is solved

Press n two times within 250ms will send m.
And n will sent n natively unless m is triggered .

How to do it only with A_TickCount ?

thk :)
by shanshans
13 May 2022, 15:09
Forum: Ask for Help (v1)
Topic: Hotkey can not be recognized when you are holding the other one.
Replies: 1
Views: 156

Hotkey can not be recognized when you are holding the other one.

a:: Send {k down} Sleep 40 KeyWait, numpad0 Send {k up} return b:: Send {j down} Sleep 65 KeyWait, numpaddot Send {j up} return ~a Up::Send, {Blind}{j Up} ~b Up::Send, {Blind}{k Up} hold b > hold a > release b > press/hold b (b is blocked until a is released) It will be the same if you are holding ...
by shanshans
12 May 2022, 06:00
Forum: Gaming Help (v1)
Topic: Problem with "&" stuck Topic is solved
Replies: 2
Views: 406

Re: Problem with "&" stuck Topic is solved

It works , thks a lot. ( ͡• ͜ʖ ͡• )
by shanshans
11 May 2022, 04:42
Forum: Gaming Help (v1)
Topic: Problem with "&" stuck Topic is solved
Replies: 2
Views: 406

Problem with "&" stuck Topic is solved

Holding numpad2 and then press one of the arrow keys will switching items/weapons (1-4) Holding one of the arrow key first will also start the switching, so i do it like this numpad2::x (In case the game don't support numpad keys.) numpad2 & ~up::1 numpad2 & ~down::3 numpad2 & ~left::4 numpad2 & ~ri...
by shanshans
08 May 2022, 12:47
Forum: Gaming Help (v1)
Topic: Question about send...
Replies: 2
Views: 289

Re: Question about send...

Thks for the reply, it is helpful :)
by shanshans
08 May 2022, 11:52
Forum: Gaming Help (v1)
Topic: Question about send...
Replies: 2
Views: 289

Question about send...

0::w 1::Send, {w down}d{w up} 2::Send, {w down}{w up} 3::Send, {w down}{d down}{w up}{d up} 4::Send w The game(this game is a special case) i testing will accept 0 as w just like native. (All key state) For 1, it kind of recognize it as a tap, maybe... It got a hard time to output W or D when you ar...
by shanshans
06 May 2022, 13:54
Forum: Gaming Help (v1)
Topic: Press two keys for one hotkey
Replies: 2
Views: 1005

Re: Press two keys for one hotkey

Sorry for the later reply, the site doesn't give me any notification... Another ahk people send me a script that almost solved my question https://www.autohotkey.com/board/topic/40874-chording-script/ This one gave me the best result so far ,the game will understand all the output like normal, every...

Go to advanced search