Search found 18 matches

by noname6500
03 Oct 2023, 03:43
Forum: Ask for Help (v1)
Topic: Prevent Middle Mouse button Double clicks Topic is solved
Replies: 4
Views: 527

Re: Prevent Middle Mouse button Double clicks Topic is solved

Rohwedder wrote:
03 Oct 2023, 01:30
Hallo,
try:

Code: Select all

*RButton::
Click, Down Right
Sleep, 70
KeyWait, RButton
Click, Up Right
Return
This prevents double clicking but then stops the the middle mouse hold functionality which I use a lot.
by noname6500
03 Oct 2023, 03:42
Forum: Ask for Help (v1)
Topic: Prevent Middle Mouse button Double clicks Topic is solved
Replies: 4
Views: 527

Re: Prevent Middle Mouse button Double clicks Topic is solved

https://www.autohotkey.com/board/topic/82509-software-fix-for-double-clicking-mouse/page-2#entry585349 *MButton:: If (A_PriorHotkey=A_ThisHotkey && A_TimeSincePriorHotkey < 100) ; hyperclick Return SendInput {Blind}{MButton down} KeyWait, MButton SendInput {Blind}{MButton up} Return Works perfectly...
by noname6500
02 Oct 2023, 22:35
Forum: Ask for Help (v1)
Topic: Prevent Middle Mouse button Double clicks Topic is solved
Replies: 4
Views: 527

Prevent Middle Mouse button Double clicks Topic is solved

My mouse is old and the middle button is starting to double click.

Trying to find a script that will prevent double clicks (with a delay of 70ms and below) but still enable the middle button hold functionality.
by noname6500
10 Apr 2022, 23:50
Forum: Ask for Help (v1)
Topic: Match and Delete Files Between Folders Topic is solved
Replies: 4
Views: 420

Re: Match and Delete Files Between Folders Topic is solved

Correct. a = %A_ScriptDir%\a b = %A_ScriptDir%\b F3:: list = Loop, Files, %b%\*.* ; No recursion without R option list .= FileExist(a "\" A_LoopFileName) ? "" : (list > "" ? "`n" : "") A_LoopFileName If (list = "") { MsgBox, 64, Done, All files were found. Return } Else MsgBox, 292, Delete?, %list%...
by noname6500
10 Apr 2022, 10:51
Forum: Ask for Help (v1)
Topic: Match and Delete Files Between Folders Topic is solved
Replies: 4
Views: 420

Re: Match and Delete Files Between Folders Topic is solved

a = %A_ScriptDir%\a b = %A_ScriptDir%\b F3:: Loop, Files, %b%\*.* If !FileExist(a "\" A_LoopFileName) FileRecycle, %A_LoopFilePath% MsgBox, 64, Done, Done! Return Thanks. I've been doing some testing and it does work fine most of the time. I've found some inconsistencies (testing on folders from di...
by noname6500
10 Apr 2022, 07:59
Forum: Ask for Help (v1)
Topic: Match and Delete Files Between Folders Topic is solved
Replies: 4
Views: 420

Match and Delete Files Between Folders Topic is solved

I have two folders A and B. I use B as a backup (external drive). Now as I delete files in folder A. After a while, I periodically check on folder B and delete files from it that I already deleted in folder A. The basic function would be: Compare files between the folders and deletes files in folder...
by noname6500
02 Dec 2021, 06:53
Forum: Ask for Help (v1)
Topic: Determine the current Audio Output
Replies: 1
Views: 391

Determine the current Audio Output

Im using a script that changes the audio output using a script based on https://www.autohotkey.com/boards/viewtopic.php?p=221751#p221751 I adapted it to have a single hotkey toggle between two audio outputs (speakers and headphones). +F18:: audiotoggle := !audiotoggle If audiotoggle = 0 { audioswitc...
by noname6500
30 Nov 2021, 09:40
Forum: Ask for Help (v1)
Topic: Change audio output Topic is solved
Replies: 55
Views: 42524

Re: Change audio output Topic is solved

The code(s) shown in earlier posts show the use of two hotkeys. If it were me, since the toggle command doesn't mesh well with my brain for some reason, I would just include a hotkey reassignment in my hotkey command. So pressing the hotkey once switches audio AND changes the hotkey assignment, the...
by noname6500
27 Nov 2021, 05:33
Forum: Ask for Help (v1)
Topic: Change audio output Topic is solved
Replies: 55
Views: 42524

Re: Change audio output Topic is solved

Tested on WIN_10 ;) ; http://www.daveamenta.com/2011-05/programmatically-or-command-line-change-the-default-sound-playback-device-in-windows-7/ Devices := {} IMMDeviceEnumerator := ComObjCreate("{BCDE0395-E52F-467C-8E3D-C4579291692E}", "{A95664D2-9614-4F35-A746-DE8DB63617E6}") ; IMMDeviceEnumerator...
by noname6500
31 Oct 2021, 11:12
Forum: Ask for Help (v1)
Topic: Separate timestamp data of highlighted text into different variables Topic is solved
Replies: 14
Views: 1460

Re: Separate timestamp data of highlighted text into different variables Topic is solved

If I wanted to ignore all whitespace before the first letter, what would I append here? I tried putting a "+" or "*" after "\s" but seems like its not allowed. That's correct, because negative lookbehinds don't support variable length options, like * , + , \R , etc. Use \K instead, which means some...
by noname6500
31 Oct 2021, 10:30
Forum: AHK Studio
Topic: AHK Studio
Replies: 1179
Views: 627091

Re: AHK Studio

How do we disable autosave? The one in program options doesnt work. I close the thing it I get no confirmation to save or not.
by noname6500
31 Oct 2021, 10:28
Forum: AHK Studio
Topic: How to disable Autosave?
Replies: 0
Views: 2184

How to disable Autosave?

Been searching and found no answers.
How do we disable autosave? The one in program options doesnt work.
by noname6500
31 Oct 2021, 05:35
Forum: Ask for Help (v1)
Topic: Separate timestamp data of highlighted text into different variables Topic is solved
Replies: 14
Views: 1460

Re: Separate timestamp data of highlighted text into different variables Topic is solved

@noname6500 It is nice when those who ask for help do not just copy what they are given, but also make their own effort. Good for you, this way you learn faster and better :bravo: Regarding the code, I'm not going to criticize it because for you it's fine, but just point out that there is an error,...
by noname6500
30 Oct 2021, 11:40
Forum: Ask for Help (v1)
Topic: Separate timestamp data of highlighted text into different variables Topic is solved
Replies: 14
Views: 1460

Re: Separate timestamp data of highlighted text into different variables Topic is solved

Works fine except now for the case where the hour value is 0. like "?t=0h30m2s start". You're welcome. Forgot to test that input value. Try this new version, hope it's fine now: This version works fine now. thanks. Although in the meantime, I've been writing a version of my own. Clipboard := " ( 11...
by noname6500
30 Oct 2021, 08:42
Forum: Ask for Help (v1)
Topic: Separate timestamp data of highlighted text into different variables Topic is solved
Replies: 14
Views: 1460

Re: Separate timestamp data of highlighted text into different variables Topic is solved

Thanks. Upon testing, it seems to only count for the positions to find the h m s. Of course. My code processed the input data that you provided. However, if you change those strings, most probably the regular expression won't match ;) How can we make it compensate when for example the hour value is...
by noname6500
30 Oct 2021, 08:02
Forum: Ask for Help (v1)
Topic: Separate timestamp data of highlighted text into different variables Topic is solved
Replies: 14
Views: 1460

Re: Separate timestamp data of highlighted text into different variables Topic is solved

var = ( 11111111111?t=10m2s start 111111111111?t=50m45s end ) var := regexreplace(var,"t=(\d+m)","t=0h$1") res := regexreplace(var,".*(\d+)h+(\d+)m(\d+)s.*\v+.*(\d+)h(\d+)m(\d+)s.*","$1|$2|$3|$4|$5|$6") gui, font, S14 for a,b in strsplit(res,"|") { Xpos := 10+mod((a-1),3)*60, Ypos := 10+floor((a-1)...
by noname6500
29 Oct 2021, 20:23
Forum: Ask for Help (v1)
Topic: Separate timestamp data of highlighted text into different variables Topic is solved
Replies: 14
Views: 1460

Re: Separate timestamp data of highlighted text into different variables Topic is solved

Answering #2, assuming that the strings were copied to the clipboard: Clipboard := " ( 11111111111?t=6h30m2s start 111111111111?t=7h50m45s end )" arrayKeys := [ "starthour", "startmin", "startsec", "endhour", "endmin", "endsec" ] assoc := { starthour: "", startmin: "", startsec: "", endhour: "", en...
by noname6500
29 Oct 2021, 11:26
Forum: Ask for Help (v1)
Topic: Separate timestamp data of highlighted text into different variables Topic is solved
Replies: 14
Views: 1460

Separate timestamp data of highlighted text into different variables Topic is solved

Hi, finally decided to post here because I was stuck. New to Autohotkey and scripting in general and got daunted by RegEx. So here's what im trying to do: #1 Highlight text that includes a timestamp in the format of H'h'mm'm's's' (based on ahk format) Ex. 0h0m0s (no leading zeroes) Sample: https://i...

Go to advanced search