Search found 65 matches

by fona
09 Jun 2022, 09:33
Forum: Ask for Help (v1)
Topic: How to send vk and sc with modifiers?
Replies: 5
Views: 1341

How to send vk and sc with modifiers?

Hi everyone, I tried different options but nothing works. I want to send virual keys or scan codes with modifiers. sc01E:: ;sc(scan code) of A. SendInput {LCtrl down}{Alt down}{vk53}{Alt up}{LCtrl up} ;Ctrl + Alt + S This one below dosn't work either sc01E:: ;sc(scan code) of A. SendInput {LCtrl}{Al...
by fona
03 Jun 2022, 23:51
Forum: Ask for Help (v1)
Topic: Hotkey active when some control has focus
Replies: 5
Views: 766

Re: Hotkey active when some control has focus

That example is meant to just report what control has focus. The ErrorLevel check is only in case no control has focus. You, on the other hand, need to be comparing the control name in the output variable to what it would be when you want to act on it. You are not supposed to put the name of the co...
by fona
03 Jun 2022, 19:14
Forum: Ask for Help (v1)
Topic: Hotkey active when some control has focus
Replies: 5
Views: 766

Re: Hotkey active when some control has focus

Yes, you can set F10 as a hotkey and use ControlGetFocus to determine which control has focus and act accordingly. You can either use it inside your hotkey’s subroutine, or you can create a function that you’d call in an #If directive before the hotkey that will determine when it’s active. Thanks f...
by fona
03 Jun 2022, 18:01
Forum: Ask for Help (v1)
Topic: Hotkey active when some control has focus
Replies: 5
Views: 766

Hotkey active when some control has focus

Hi everyone,
My F10 does some stuff but I would like it to behave differently when s specific control has focus. Is it possible?
by fona
26 May 2022, 17:20
Forum: Ask for Help (v1)
Topic: Make the Ctrl to a multi button Topic is solved
Replies: 2
Views: 283

Re: Make the Ctrl to a multi button Topic is solved

mikeyww wrote:
26 May 2022, 14:54

Code: Select all

~LCtrl Up::
If (A_PriorKey != "LControl")
 Return
Send xyz
Return
As always, thank you my friend.
by fona
26 May 2022, 14:11
Forum: Ask for Help (v1)
Topic: Make the Ctrl to a multi button Topic is solved
Replies: 2
Views: 283

Make the Ctrl to a multi button Topic is solved

Hi everyone, Ctrl is a modifier and, therefore, always held down by pressing another button. So, I thought Ctrl could have been an useful multi button (single click and hold key). Let's say if I press it down and hold, it sends a normal Ctrl. If I press Ctrl and releases immidately it does something...
by fona
25 May 2022, 10:28
Forum: Ask for Help (v1)
Topic: Issue with key hold down Topic is solved
Replies: 5
Views: 490

Re: Issue with key hold down Topic is solved

mikeyww wrote:
25 May 2022, 10:16
It looks OK.
Yes, It works fine. Thank you!
by fona
25 May 2022, 09:42
Forum: Ask for Help (v1)
Topic: Issue with key hold down Topic is solved
Replies: 5
Views: 490

Re: Issue with key hold down Topic is solved

You can add another KeyWait as the last line of your hotkey routine. KeyWait can use a key name such as Alt where needed. See https://www.autohotkey.com/docs/KeyList.htm#modifier It is a single key from the key list or keyboard itself (not a modifier used as a modifer). Is that correct? Or you mean...
by fona
25 May 2022, 09:26
Forum: Ask for Help (v1)
Topic: Issue with key hold down Topic is solved
Replies: 5
Views: 490

Issue with key hold down Topic is solved

Hi everyone, When the hotkey Alt + Left is held down it closes the active tab in Firefox. However, if the hotkey Alt + Left is held down more than 0.20 seconds it closes also other tabs, which I really don't like. I just want it to execute only once and stop. Is it possible to prevent the routine? ~...
by fona
22 May 2022, 07:32
Forum: Ask for Help (v1)
Topic: Is click faster than controlclick? Topic is solved
Replies: 9
Views: 951

Re: Is click faster than controlclick? Topic is solved

boiler wrote:
22 May 2022, 07:12
Did you just compare a bare Click without specifying a location, which clicks at the current mouse position?
No, I specify the location for Click and just use the code suggested by Rohwedder. Could you also try it and see how they both perform.
by fona
22 May 2022, 07:26
Forum: Ask for Help (v1)
Topic: Is click faster than controlclick? Topic is solved
Replies: 9
Views: 951

Re: Is click faster than controlclick? Topic is solved

Hallo, not here: Click 68ms ControlClick 27ms DllCall("QueryPerformanceFrequency",Int:="Int64*",Freq),Time:=Count:=0 q:: DllCall("QueryPerformanceCounter",Int,Count1) ;Time duration measurement of this: ControlClick, x720 y486, ahk_class MozillaWindowClass,,Left,1,NA ; Click 720, 486 ;Multiple exec...
by fona
22 May 2022, 06:56
Forum: Ask for Help (v1)
Topic: Is click faster than controlclick? Topic is solved
Replies: 9
Views: 951

Re: Is click faster than controlclick? Topic is solved

I can't generalize. I don't know how the times are on other computers. Just measure it yourself with this script. Just tried your script. Wonderful. From my side, it seems like click is faster than controlclick in most cases, and idk why. Click's performance is sometimes 2ms. Controlclick should ha...
by fona
22 May 2022, 06:22
Forum: Ask for Help (v1)
Topic: Is click faster than controlclick? Topic is solved
Replies: 9
Views: 951

Re: Is click faster than controlclick? Topic is solved

Hallo, not here: Click 68ms ControlClick 27ms DllCall("QueryPerformanceFrequency",Int:="Int64*",Freq),Time:=Count:=0 q:: DllCall("QueryPerformanceCounter",Int,Count1) ;Time duration measurement of this: ControlClick, x720 y486, ahk_class MozillaWindowClass,,Left,1,NA ; Click 720, 486 ;Multiple exec...
by fona
21 May 2022, 20:26
Forum: Ask for Help (v1)
Topic: Is click faster than controlclick? Topic is solved
Replies: 9
Views: 951

Is click faster than controlclick? Topic is solved

Hi everyone, I prefer sometimes controlclick just because I can't see how the mouse moves and it looks somehow better. ControlClick, x720 y486, ahk_class MozillaWindowClass,,Left,1,NA Click 720, 486 But is there any difference in speed. Let's look at the simple code above. Which method is faster? Is...
by fona
21 May 2022, 13:09
Forum: Ask for Help (v1)
Topic: Speed of mouse reduced
Replies: 3
Views: 300

Re: Speed of mouse reduced

It seems like I get this issue when I use Pulover's Macro Creator and its feature that defines the coordinates. I closed the program and the mouse moves fast as before. So if someone get this issue try to close the program
by fona
21 May 2022, 08:44
Forum: Ask for Help (v1)
Topic: Speed of mouse reduced
Replies: 3
Views: 300

Speed of mouse reduced

Hi everyone, A month ago, speed of my mouse got suddenly reduced. I fixed it somehow by putting back the first default lines of the script document, which I deleted before. I beleive it was the cause. But now it happened again and nothing helps. Is there anybody who could explain me what are the rea...
by fona
12 May 2022, 09:20
Forum: Ask for Help (v1)
Topic: Issue: Activates window only by ahk_class, when hover mouse over it
Replies: 2
Views: 274

Re: Issue: Activates window only by ahk_class, when hover mouse over it

Well, I could find the solution. The response from Rohwedder in the thread mentioned above was helpful :bravo:
by fona
12 May 2022, 09:11
Forum: Ask for Help (v1)
Topic: Issue: Activates window only by ahk_class, when hover mouse over it
Replies: 2
Views: 274

Re: Issue: Activates window only by ahk_class, when hover mouse over it

I just saw the last response (from Rohwedder) in the mentioned thread above. His code actually does what I want. It activates any window (by wintitle I guess) viewtopic.php?p=458490#p458490
But I would like the chrome addon to be always on top
by fona
12 May 2022, 09:03
Forum: Ask for Help (v1)
Topic: Issue: Activates window only by ahk_class, when hover mouse over it
Replies: 2
Views: 274

Issue: Activates window only by ahk_class, when hover mouse over it

Hi everyone, 2 weeks ago mikeyww suggested a code that activates a window by hovering over it with mouse. https://www.autohotkey.com/boards/viewtopic.php?p=458490#p458490 The problem is that I have 3 windows of Directory Opus opened, which don't activate with hovering over it, since it has the same ...

Go to advanced search