Search found 30 matches

by Florian
04 Jan 2020, 12:35
Forum: Ask For Help
Topic: Youtube showing captcha since I use AHK to open it? - "Unusual traffic from your computer network"
Replies: 22
Views: 1842

Re: Youtube showing captcha since I use AHK to open it? - "Unusual traffic from your computer network"

Turns out, the captcha was caused by a Chrome extension that I used to load comments on Youtube. It seems like this should be the first suspect, but I used this extension and feature for 2 years without a problem and it suddenly started triggering this captcha at the same time I started using AutoHo...
by Florian
26 Dec 2019, 10:30
Forum: Ask For Help
Topic: Problems with SetCapsLockState, AlwaysOff when using capslock as a modifier key
Replies: 5
Views: 1153

Re: Problems with SetCapsLockState, AlwaysOff when using capslock as a modifier key

I'm just gonna put everything into 1 script. But this will be multiple thousand lines. Is there any problem with having huge scripts like that?
by Florian
26 Dec 2019, 10:11
Forum: Ask For Help
Topic: Problems with SetCapsLockState, AlwaysOff when using capslock as a modifier key
Replies: 5
Views: 1153

Re: Problems with SetCapsLockState, AlwaysOff when using capslock as a modifier key

Thank you for the thorough explanation! This clarifies so much! One thing is not clear to me from that thread. If I use that original script at the top (as I understand this is written by you), do I have to put it into EACH script that uses capslock? Because if I only have it in 1, it doesn't work e...
by Florian
26 Dec 2019, 07:27
Forum: Ask For Help
Topic: Problems with SetCapsLockState, AlwaysOff when using capslock as a modifier key
Replies: 5
Views: 1153

Problems with SetCapsLockState, AlwaysOff when using capslock as a modifier key

In my scripts, I often use capslock as a modifier key like this: #if getkeystate("capslock", "p") ^a:: ;capslock + Ctrl + A But when I add SetCapsLockState, AlwaysOff in my scripts, only the last script that I started (and that contains this code) actually works. If I don't put that in there, all sc...
by Florian
22 Dec 2019, 13:53
Forum: Ask For Help
Topic: How to combine capslock with modifier keys
Replies: 7
Views: 599

Re: How to combine capslock with modifier keys

Seems to work without a problem 👍 Awesome! Thank you again!
by Florian
22 Dec 2019, 13:18
Forum: Ask For Help
Topic: How to combine capslock with modifier keys
Replies: 7
Views: 599

Re: How to combine capslock with modifier keys

What about

Code: Select all

#if getkeystate("capslock", "p") && WinActive("ahk_exe Notepad.exe")
Will this cause problems?
by Florian
22 Dec 2019, 05:30
Forum: Ask For Help
Topic: How to combine capslock with modifier keys
Replies: 7
Views: 599

Re: How to combine capslock with modifier keys

I wanted to spread them over different scripts because this seems easier to maintain to me. But I can't get it to work since some of them should work with the same ahk_class. So my only choice is to put them into 1 large script? Are there any problems (performance i.e.) that could come up if I have ...
by Florian
22 Dec 2019, 04:43
Forum: Ask For Help
Topic: How to combine capslock with modifier keys
Replies: 7
Views: 599

Re: How to combine capslock with modifier keys

Well I found a workaround

Code: Select all

*CapsLock::    cmd := 1 
*CapsLock up:: cmd := 0
#if cmd ;Capslock Combinations below
But this stops working if I use this code in more than 1 script (only the last saved one works). Any idea why?
by Florian
22 Dec 2019, 03:51
Forum: Ask For Help
Topic: How to combine capslock with modifier keys
Replies: 7
Views: 599

How to combine capslock with modifier keys

I want to use capslock as my main modifier key because this way it doesn't interfere with existing hotkeys of other programs. This works: SetCapsLockState, AlwaysOff Capslock & i:: But this doesn't: SetCapsLockState, AlwaysOff Capslock & #i:: How do I combine capslock with Ctrl, Shift and Win keys?
by Florian
20 Dec 2019, 15:27
Forum: Ask For Help
Topic: Youtube showing captcha since I use AHK to open it? - "Unusual traffic from your computer network"
Replies: 22
Views: 1842

Re: Youtube showing captcha since I use AHK to open it? - "Unusual traffic from your computer network"

Thanks, I will start making these changes. I just realized that my hotkey was executed in any window! That's why it still worked. I changed it like this: ^RButton:: MouseGetPos,,, WinUMID WinActivate, ahk_id %WinUMID% if !WinActive("ahk_class Chrome_WidgetWin_1") return mousegetpos, x, y [...] I don...
by Florian
20 Dec 2019, 10:03
Forum: Ask For Help
Topic: Youtube showing captcha since I use AHK to open it? - "Unusual traffic from your computer network"
Replies: 22
Views: 1842

Re: Youtube showing captcha since I use AHK to open it? - "Unusual traffic from your computer network"

The directive #IfWinActive, ahk_class Chrome_WidgetWin_1 needs to be above the hotkey(s) it should affect, in this case above ^RButton:: (currently it has no effect - well, it might have, if other hotkeys are following in this script, but not on the ^RButton hotkey) Thank you for the input! My idea...
by Florian
20 Dec 2019, 06:29
Forum: Ask For Help
Topic: Hotkeys ignored in Android Studio
Replies: 3
Views: 380

Re: Hotkeys ignored in Android Studio

Is it safe to always run all my scripts with UI access?
by Florian
19 Dec 2019, 11:21
Forum: Ask For Help
Topic: Activating the window under the mouse cursor causes noticable delay
Replies: 2
Views: 420

Re: Activating the window under the mouse cursor causes noticable delay

It works! Awesome, I didn't expect such a simple and beautiful solution :bravo:
But it makes total sense!
by Florian
19 Dec 2019, 10:46
Forum: Ask For Help
Topic: Activating the window under the mouse cursor causes noticable delay
Replies: 2
Views: 420

Activating the window under the mouse cursor causes noticable delay

Hey, I want to use Alt + MouseWheel to cycle through the tabs of different programs. This works really quick and snappy by default. But if I add these 2 lines to first activate the window under the mouse cursor, the whole script slows down quite significantly: MouseGetPos,,, WinUMID WinActivate, ahk...
by Florian
19 Dec 2019, 10:01
Forum: Ask For Help
Topic: Youtube showing captcha since I use AHK to open it? - "Unusual traffic from your computer network"
Replies: 22
Views: 1842

Re: Youtube showing captcha since I use AHK to open it? - "Unusual traffic from your computer network"

Yes, I'm from the EU :thumbup: Btw, the captcha hasn't shown up today yet in the 8h since I'm on my PC. Florian, you mentioned that you have a channel and video page. Do you have it going to any affiliate links or are linked to any questionable websites? Do you have any code that might be automating...
by Florian
18 Dec 2019, 16:30
Forum: Ask For Help
Topic: Youtube showing captcha since I use AHK to open it? - "Unusual traffic from your computer network"
Replies: 22
Views: 1842

Re: Youtube showing captcha since I use AHK to open it? - "Unusual traffic from your computer network"

Thanks for your help. I really appreciate you taking your time to clarify some doubts. My next course is to just wait and see if it stops by itself. :thumbup:
by Florian
18 Dec 2019, 16:15
Forum: Ask For Help
Topic: Youtube showing captcha since I use AHK to open it? - "Unusual traffic from your computer network"
Replies: 22
Views: 1842

Re: Youtube showing captcha since I use AHK to open it? - "Unusual traffic from your computer network"

I'm doing none of this really I think. Here are some examples I use commonly: Ctrl + RButton -> Right-click on Chromes back button to see the back history and then immediately move the mouse cursor back to its original position. This causes the mouse cursor to move quickly in a straight line (I use ...
by Florian
18 Dec 2019, 15:53
Forum: Ask For Help
Topic: Youtube showing captcha since I use AHK to open it? - "Unusual traffic from your computer network"
Replies: 22
Views: 1842

Re: Youtube showing captcha since I use AHK to open it? - "Unusual traffic from your computer network"

Do you think unusual mouse movements could cause this too? I have some shortcuts that make my mouse jump to specific points on the screen and one of them is related to the Youtube player.
When I google for this traffic warning I only find results about sending too many requests.
by Florian
18 Dec 2019, 15:25
Forum: Ask For Help
Topic: Youtube showing captcha since I use AHK to open it? - "Unusual traffic from your computer network"
Replies: 22
Views: 1842

Re: Youtube showing captcha since I use AHK to open it? - "Unusual traffic from your computer network"

Thanks for your quick help! I don't know about the IP, to be honest. But it has never happened in the 3 years since I'm living here. I also recently installed a Windows tool called "Wox" which has a Youtube search plugin that I was using to search Youtube directly from my desktop. I thought this mig...
by Florian
18 Dec 2019, 15:13
Forum: Ask For Help
Topic: Youtube showing captcha since I use AHK to open it? - "Unusual traffic from your computer network"
Replies: 22
Views: 1842

Re: Youtube showing captcha since I use AHK to open it? - "Unusual traffic from your computer network"

I really think I don't do anything weird. I usually just open 1 or 2 links at a time. The most I open at a time is 3 windows, and I do this once a day. Another thing I do is opening my videos library and then let AHK press TAB a few times to get focus on the search bar. Nothing shady. Maybe it's jus...

Go to advanced search