Search found 116 matches

by dsewq1LYJ
04 Oct 2016, 10:59
Forum: Ask for Help (v1)
Topic: Input command selective visible Topic is solved
Replies: 5
Views: 1759

Re: Input command selective visible Topic is solved

I thought the best solution is KeyWait :headwall: , but I hope I can do this in future. Input,k,V Sasd L1 T0.213 If (k = "a") Send n If (k = "s") Send n If (k = "d") Send n S is "Selector" for "Input Command", It would ignore by AHK...Such thing :trollface: Current bad sol. ~c:: Input,k,V L1 T0.213 ...
by dsewq1LYJ
04 Oct 2016, 10:49
Forum: Ask for Help (v1)
Topic: Input command selective visible Topic is solved
Replies: 5
Views: 1759

Re: Input command selective visible Topic is solved

I would do it like this... Input,k,L1 T0.213 If (ErrorLevel = "Max") And (k != "s") Send %k% I already did it, Send % k wouldn't work. When the Input is "Invisible" I need to Send %k%k% to do what I need It would be looks like.. ~c:: Send c ;~ Here must be press c twice, otherwise script won't work...
by dsewq1LYJ
04 Oct 2016, 05:42
Forum: Ask for Help (v1)
Topic: #IfWinActive v.s. if WinActive() Topic is solved
Replies: 2
Views: 924

Re: #IfWinActive v.s. if WinActive() Topic is solved

The second example is quicker, because it will not install a keyboard hook (negligibly) interrupting input and will not execute on the up event of the key. However it will not do what you want, so you have to use the first snippet of code, as only that will make the hotkey conditionally do nothing ...
by dsewq1LYJ
04 Oct 2016, 03:20
Forum: Ask for Help (v1)
Topic: #IfWinActive v.s. if WinActive() Topic is solved
Replies: 2
Views: 924

#IfWinActive v.s. if WinActive() Topic is solved

Hello everyone. I got one really weird question... My script is not "clear" and maybe not efficient, because I am using #IfWinActive foo and If WinActive() at one single script... and now I want to improve my script better and more clearer, but which one is faster ? ;~ 1 #IfWinActive foo ^c::return ...
by dsewq1LYJ
04 Oct 2016, 02:44
Forum: Ask for Help (v1)
Topic: Input command selective visible Topic is solved
Replies: 5
Views: 1759

Input command selective visible Topic is solved

Input,k,V L1 T0.213 If (ErrorLevel = "Max") { If (k = "s") Send n } I want to make the key "invisible" only if k = "s" but the others keys is "visible" How to implement this kind of idea ? My current worst solution is add delay before "Send n" ~c:: Input,k,V L1 T0.213 If (ErrorLevel = "Max") { If (...
by dsewq1LYJ
01 Oct 2016, 04:28
Forum: Ask for Help (v1)
Topic: How to Send and ignore CapsLock ? Topic is solved
Replies: 4
Views: 3248

Re: How to Send and ignore CapsLock ? Topic is solved

Send should take case of this by itself. The key history of Send test while CapsLock is on is: 14 03A i d 0.50 CapsLock 14 03A i u 0.00 CapsLock 54 014 i d 0.00 t 54 014 i u 0.02 t 45 012 i d 0.03 e 45 012 i u 0.01 e 53 01F i d 0.03 s 53 01F i u 0.01 s 54 014 i d 0.03 t 54 014 i u 0.02 t 14 03A i d...
by dsewq1LYJ
30 Sep 2016, 07:50
Forum: Ask for Help (v1)
Topic: How to Send and ignore CapsLock ? Topic is solved
Replies: 4
Views: 3248

Re: How to Send and ignore CapsLock ? Topic is solved

SendInput is generally faster than Send . If you want any further suggestions, please provide more details on what you are looking for. In Command prompt I can not using Ctrl+V (In default CMD) So the point is possible make "Send" always output as what I needed. Send foobar ;~ Lowercase Send FOOBAR...
by dsewq1LYJ
24 Sep 2016, 11:51
Forum: Ask for Help (v1)
Topic: How to Send and ignore CapsLock ? Topic is solved
Replies: 4
Views: 3248

How to Send and ignore CapsLock ? Topic is solved

My code is like this

Code: Select all

If GetKeyState("CapsLock","T") {
	SetCapsLockState Off
	CLRevert:=1
}
Send % Clipboard
If (CLRevert)
	SetCapsLockState On
I cant use CTRL + V here for some ... reason ...
So ... is possible make it easier in AHK_L !?
by dsewq1LYJ
07 Jul 2016, 03:06
Forum: Ask for Help (v1)
Topic: The size of a dictionary Topic is solved
Replies: 9
Views: 3528

Re: The size of a dictionary Topic is solved

Guest wrote:
dsewq1LYJ wrote:
Guest wrote:I'm expecting the second would retrieve "A"

First element of first key.
:terms: https://autohotkey.com/docs/Objects.htm ... ive_Arrays ;)
Thanks bro ! but why not I just iterate through this array by For Loop loool
by dsewq1LYJ
07 Jul 2016, 01:07
Forum: Ask for Help (v1)
Topic: The size of a dictionary Topic is solved
Replies: 9
Views: 3528

Re: The size of a dictionary Topic is solved

Guest wrote:

Code: Select all

AR := {l: ["A", "B", "C"], 1: ["D", "E", "F"]}
 
MsgBox % AR["l", 1]
MsgBox % AR[1, 1]
I'm expecting the second would retrieve "A"

First element of first key.
by dsewq1LYJ
06 Jul 2016, 20:16
Forum: Ask for Help (v1)
Topic: The size of a dictionary Topic is solved
Replies: 9
Views: 3528

Re: The size of a dictionary Topic is solved

I have been asking for such a thing for a while now: https://autohotkey.com/boards/viewtopic.php?f=13&t=7101 " .count() ; this is what I'd expect .length() to do, but since it doesn't, .count() could exist aswell counts the number of items in an array or object, regardless of type ..." feel free to...
by dsewq1LYJ
06 Jul 2016, 20:14
Forum: Ask for Help (v1)
Topic: The size of a dictionary Topic is solved
Replies: 9
Views: 3528

Re: The size of a dictionary Topic is solved

Paneb wrote:Dunno if there is easier than this, but it is working:

Code: Select all

AR := {"l" : ["A", "B", "C"], "m" : ["D", "E", "F"]}
size := 0
For key, value in AR
    size++
MsgBox % size
Thank you bro ! :D
by dsewq1LYJ
06 Jul 2016, 08:37
Forum: Ask for Help (v1)
Topic: The size of a dictionary Topic is solved
Replies: 9
Views: 3528

The size of a dictionary Topic is solved

CODE :

Code: Select all

AR := {"l" : ["A", "B", "C"], "m" : ["D", "E", "F"]}

MsgBox % AR.Length()
Why the .Length() functoin didn't return '2' ?

what I'm doing wrong !?
by dsewq1LYJ
09 Jun 2016, 12:11
Forum: Ask for Help (v1)
Topic: About "SetCapsLockState AlwaysOff" and combination of CapsLock.
Replies: 8
Views: 2107

Re: About "SetCapsLockState AlwaysOff" and combination of CapsLock.

True, multiple threads may improve speed. Like I said, it greatly depend on your use-case. Having multiple scripts for simple text replacement hotkeys may decrease performance: SendInput reverts to SendEvent, multiple hooks are processed (sequentially). On the other hand, CPU heavy (compression) or...
by dsewq1LYJ
09 Jun 2016, 10:39
Forum: Ask for Help (v1)
Topic: About "SetCapsLockState AlwaysOff" and combination of CapsLock.
Replies: 8
Views: 2107

Re: About "SetCapsLockState AlwaysOff" and combination of CapsLock.

I prefer to combine scripts as much as possible. Whether performance is impacted greatly depends on your use-case. I think that unless your doing really time sensitive things or interacting with the AHK process itself, you're pretty safe. Don't multiple files means mutliple threads ? Which means it...
by dsewq1LYJ
09 Jun 2016, 10:00
Forum: Ask for Help (v1)
Topic: About "SetCapsLockState AlwaysOff" and combination of CapsLock.
Replies: 8
Views: 2107

Re: About "SetCapsLockState AlwaysOff" and combination of CapsLock.

For me it is only blocked if SetCapsLockState AlwaysOff is called after the hotkey script. This could mean that SetCapsLockState AlwaysOff works by setting the state and then using the keyboard hook to drop all key presses. Any other non-admin hooks loaded before it wouldn't see the events either, ...
by dsewq1LYJ
08 Jun 2016, 03:40
Forum: Ask for Help (v1)
Topic: About "SetCapsLockState AlwaysOff" and combination of CapsLock.
Replies: 8
Views: 2107

Re: About "SetCapsLockState AlwaysOff" and combination of CapsLock.

Nextron wrote:Your example works for me..?
Sorry my bad.

Call [ A.ahk ]

Code: Select all

SetCapsLockState AlwaysOff
in A.Ahk

[ B.ahk ]
and press follow hotkey in different script file.

Code: Select all

CapsLock & Space::foo()
then you can not trigger the foo().
by dsewq1LYJ
07 Jun 2016, 10:52
Forum: Ask for Help (v1)
Topic: About "SetCapsLockState AlwaysOff" and combination of CapsLock.
Replies: 8
Views: 2107

About "SetCapsLockState AlwaysOff" and combination of CapsLock.

It is pretty useful in Vim when you call the SetCapsLockState, AlwaysOff but here comes the problem, after the call any Combinations from CapsLock stop working. e.g. SetCapsLockState, AlwaysOff CapsLock & Space::foo() You can not trigger the foo() by press down CapsLock AND Space. Uh...how to fix th...
by dsewq1LYJ
17 Feb 2016, 20:33
Forum: Scripts and Functions (v1)
Topic: WatchFolder() - updated on 2021-10-14
Replies: 152
Views: 90498

Re: WatchFolder()

Damn it...It is freaking useful !
by dsewq1LYJ
17 Feb 2016, 20:11
Forum: Scripts and Functions (v1)
Topic: Hot Corners For Windows 10
Replies: 18
Views: 14571

Re: Hot Corners For Windows 10

Sir...It's really a dark corner...
Holy jesus. It is incredibly useful...

Go to advanced search