Search found 31 matches

by BurrowBird
03 Jan 2021, 10:18
Forum: Ask for Help (v1)
Topic: Loop and if problem
Replies: 1
Views: 115

Loop and if problem

The following code makes my computer heat up and freeze, so I assume something is very wrong with it... It doesn't do any clicking or sending {Down}, so I guess it it must stop at if "ErrorLevel break", but it doesn't seem to stop, instead eating all my resources. Why is that? Esc:: BreakLoop = 1 re...
by BurrowBird
16 Sep 2020, 09:01
Forum: Ask for Help (v1)
Topic: Restore native function of mouse buttons?
Replies: 5
Views: 472

Re: Restore native function of mouse buttons?

Well, thank you. But if I disable the hotkey, it will be disabled. Thus no longer functioning as a hotkey... :think: Having to manually press another hotkey to toggle this hotkey and then toggle it off again every time defeats the purpose of having it in the first place. In fact, it's more time cons...
by BurrowBird
16 Sep 2020, 03:14
Forum: Ask for Help (v1)
Topic: Restore native function of mouse buttons?
Replies: 5
Views: 472

Re: Restore native function of mouse buttons?

Thank you, but I'm not sure how that helps... If I could just do "RButton::RButton" with this Hotkey command, then that might be good maybe, but that triggers a "Nonexistent hotkey" error on the "Hotkey" line. I guess these direct remappings work differently from hotkeys with Sends and stuff. Altern...
by BurrowBird
16 Sep 2020, 02:37
Forum: Ask for Help (v1)
Topic: Splitting AHK scripts or having one to rule them all Topic is solved
Replies: 4
Views: 294

Re: Splitting AHK scripts or having one to rule them all Topic is solved

I see. Thank you!

On modern systems, the impact of running 1 simple script or 10 of them is probably negligible to the point that it doesn't matter at all I would guess, right? :D
by BurrowBird
15 Sep 2020, 19:37
Forum: Ask for Help (v1)
Topic: Restore native function of mouse buttons?
Replies: 5
Views: 472

Restore native function of mouse buttons?

Hello. I would like to use LMB or RMB as prefix keys in combination hotkeys, without the tilde (sending mouse clicks to the window breaks the functionality of my hotkey). Unfortunately, the example in the Docs that allows for this to happen does not work for mouse buttons. Numpad0::WinMaximize A Num...
by BurrowBird
15 Sep 2020, 17:55
Forum: Ask for Help (v1)
Topic: Splitting AHK scripts or having one to rule them all Topic is solved
Replies: 4
Views: 294

Splitting AHK scripts or having one to rule them all Topic is solved

Hello. Perhaps a dumb question, but is it better from a memory/optimization point to have multiple context-sensitive (#IfWinActive) hotkeys in one AHK script, or in several separate scripts? Also the same question I guess applies to scripts that do different things in general. Would it be better to ...
by BurrowBird
15 Sep 2020, 17:47
Forum: Ask for Help (v1)
Topic: Not sure how "if WinActive" works Topic is solved
Replies: 10
Views: 2520

Re: Not sure how "if WinActive" works Topic is solved

Ha! Thank you.

That makes sense. Honestly, I would probably spend days trying to figure out what went wrong.
by BurrowBird
15 Sep 2020, 17:36
Forum: Ask for Help (v1)
Topic: Not sure how "if WinActive" works Topic is solved
Replies: 10
Views: 2520

Re: Not sure how "if WinActive" works Topic is solved

Aha, thank you! Related a little bit, although not my original thread question, I now have: #if WinActive, ahk_class CabinetWClass and several hotkeys below it. But they seem to still work when the active window is something different like Chrome, Notepad etc. They do have different ahk_class though...
by BurrowBird
15 Sep 2020, 17:19
Forum: Ask for Help (v1)
Topic: Not sure how "if WinActive" works Topic is solved
Replies: 10
Views: 2520

Re: Not sure how "if WinActive" works Topic is solved

Thank you!

I actually know how to use brackets, I just had a brainfart and instead of looking for a problem with my code, I was looking for a problem with "if WinActive" instead, because I never used it before, so I wasn't sure how/if it would work. :cry:
by BurrowBird
15 Sep 2020, 17:11
Forum: Ask for Help (v1)
Topic: Not sure how "if WinActive" works Topic is solved
Replies: 10
Views: 2520

Re: Not sure how "if WinActive" works Topic is solved

Ah yes, brackets, I'm a dumb-dumb. Thank you!

What would be the advantage of using #If vs the brackets?
by BurrowBird
15 Sep 2020, 16:54
Forum: Ask for Help (v1)
Topic: Not sure how "if WinActive" works Topic is solved
Replies: 10
Views: 2520

Not sure how "if WinActive" works Topic is solved

Hello. I have: ~LButton & k:: if WinActive("ahk_id 0x10542") KeyWait, k Send {Backspace} Sleep 200 Send {Alt}fhu return which does what I want it to do, but for some reason it works in other windows as well, while I only want it to trigger inside the window with id 0x10542. What I hoped to do was to...
by BurrowBird
14 Sep 2020, 13:16
Forum: Ask for Help (v1)
Topic: Send {RButton} interferes with my mouse gestures Topic is solved
Replies: 15
Views: 819

Re: Send {RButton} interferes with my mouse gestures Topic is solved

Perhaps. Thank you for your help, you guided me in the right direction! Also now that I think of it, I feel like intuitively all of my scripts should have worked, since "s" is always sent first before RMB is released. But for some reason the context menu seems to pop up first, before the "s" and mes...
by BurrowBird
14 Sep 2020, 12:40
Forum: Ask for Help (v1)
Topic: Send {RButton} interferes with my mouse gestures Topic is solved
Replies: 15
Views: 819

Re: Send {RButton} interferes with my mouse gestures Topic is solved

Well my hotkey for "s" is RMB+LMB. That is what causes the problem, because AHK obviously has severe quirks with handling these.
by BurrowBird
14 Sep 2020, 12:30
Forum: Ask for Help (v1)
Topic: Send {RButton} interferes with my mouse gestures Topic is solved
Replies: 15
Views: 819

Re: Send {RButton} interferes with my mouse gestures Topic is solved

"Trap" it? Not familiar with that. As in stall it a bit? I need it to fire before RMB though is the thing. I would rather like to time out or get rid of "RButton up" if possible... RButton & LButton:: Send s SendInput {RButton down} KeyWait LButton SendInput {LButton up} Sleep, 50 SendInput {RButton...
by BurrowBird
14 Sep 2020, 11:44
Forum: Ask for Help (v1)
Topic: Send {RButton} interferes with my mouse gestures Topic is solved
Replies: 15
Views: 819

Re: Send {RButton} interferes with my mouse gestures Topic is solved

Chrome doesn't recognize mouse dragging with RMB anymore. I think the problem lies in the way hotkeys with & work. It makes the mouse button not pressed down while dragging. For example, I found that: RButton:: SendInput {RButton down} KeyWait RButton SendInput {RButton up} return works, in that it ...
by BurrowBird
14 Sep 2020, 11:14
Forum: Ask for Help (v1)
Topic: Send {RButton} interferes with my mouse gestures Topic is solved
Replies: 15
Views: 819

Re: Send {RButton} interferes with my mouse gestures Topic is solved

Well... since sending RButton in AHK disables mouse dragging, and I also can't use "~" because it breaks my hotkey, I'm in a pinch. What I ended up doing is setting a "button-chording" (as they call it) in a software called X-Mouse Button Control, which acts as a RMB+LMB -> s hotkey. Basically it do...
by BurrowBird
14 Sep 2020, 10:37
Forum: Ask for Help (v1)
Topic: Send {RButton} interferes with my mouse gestures Topic is solved
Replies: 15
Views: 819

Re: Send {RButton} interferes with my mouse gestures Topic is solved

That works, but I tend to use both mouse dragging and the "s" hotkey in close proximity. Turning the hotkey on and off is too annoying in this case. I would really love to have the script always running in the background and not interfere with mouse dragging. :think: I feel like there should be a wa...
by BurrowBird
14 Sep 2020, 09:43
Forum: Ask for Help (v1)
Topic: Send {RButton} interferes with my mouse gestures Topic is solved
Replies: 15
Views: 819

Re: Send {RButton} interferes with my mouse gestures Topic is solved

You could try preceding the hotkey with a tilde (~), to see if that works. Tilde lets the hotkey go through before executing the AHK code. Like so? ~RButton & LButton::Send s Thank you. Hovewer, If I do that, then my "s" script stops working because a RMB context menu interrupts it. There, I need t...
by BurrowBird
14 Sep 2020, 09:24
Forum: Ask for Help (v1)
Topic: Send {RButton} interferes with my mouse gestures Topic is solved
Replies: 15
Views: 819

Send {RButton} interferes with my mouse gestures Topic is solved

In Chrome I use an extension called smartUp Gestures, where if I hold down RMB and drag left down for example the current tab closes and so on. Then I want to have this script active for something unrelated: RButton::Send {RButton} RButton & LButton::Send s But now I can't drag with RMB. Similar iss...
by BurrowBird
21 Jul 2020, 14:37
Forum: Ask for Help (v1)
Topic: First key blocked in a combination shortcut Topic is solved
Replies: 9
Views: 3431

Re: First key blocked in a combination shortcut Topic is solved

After reading the pages you linked, I think I kinda understand now. XD Thanks!

Go to advanced search