Search found 326 matches

by submeg
03 Feb 2024, 05:04
Forum: Tutorials (v2)
Topic: How to use CapsLock as a modifier key in ahk v2
Replies: 1
Views: 1818

Re: How to use CapsLock as a modifier key in ahk v2

Just wanted to make it easier to find for everyone
Can this be pinned somewhere?

I've been making mods to this script by Skommel - CapShift. Very nice!
by submeg
02 Feb 2024, 07:15
Forum: Ask for Help (v2)
Topic: Navigate to the next tab on a GUI on button press? Topic is solved
Replies: 5
Views: 440

Re: Navigate to the next tab on a GUI on button press? Topic is solved

Not sure if this is what you are going for. If you want a specific function to run when switching tabs, you could detect when a tab is changed and then do certain actions based on what tab was activated and/or deactivated. You wouldn't need a button on every tab and separate functions to switch tab...
by submeg
28 Jan 2024, 03:00
Forum: Ask for Help (v2)
Topic: ListView: Find which items in a listview are checked Topic is solved
Replies: 2
Views: 159

Re: ListView: Find which items in a listview are checked Topic is solved

Code: Select all


RowNumber := LV.GetNext(RowNumber, "C")
	if not RowNumber
		break

Code: Select all

LV.GetNext
Never would have figured that out! Thanks so much @flyingDman!
by submeg
28 Jan 2024, 01:22
Forum: Ask for Help (v2)
Topic: ListView: Find which items in a listview are checked Topic is solved
Replies: 2
Views: 159

ListView: Find which items in a listview are checked Topic is solved

Hi all, I have created a ListView, which also has checkboxes: SymptomSelectLV := SSGui.Add("ListView", "Checked r20 w450", ["Symptom","System"]) I then would like to loop through the ListView and collate the text values from column 1 ("Symptom"), only when the row is checked. However, I am having is...
by submeg
28 Jan 2024, 00:48
Forum: Ask for Help (v2)
Topic: Navigate to the next tab on a GUI on button press? Topic is solved
Replies: 5
Views: 440

Re: Navigate to the next tab on a GUI on button press? Topic is solved

Press Ctrl + Tab . Is there a method / event that is built into ListBoxes that I can use? I guess I can just do SendInput as a back up. I have found that splitting out moving to each tab into separate functions is useful, as I can perform different actions when switching between tabs. what you woul...
by submeg
27 Jan 2024, 21:31
Forum: Ask for Help (v2)
Topic: how to quit a gui
Replies: 6
Views: 308

Re: how to quit a gui

the icon is still in the hidden icons window Do you mean the AHK script icon (i.e. the script is still running when you close the GUI)? If that's the case, you just need to add an ExitApp: Main.OnEvent("Close", Main_Close) Main_Close(thisGui) { ; Declaring this parameter is optional. if MsgBox("Are...
by submeg
27 Jan 2024, 20:12
Forum: Ask for Help (v2)
Topic: how to quit a gui
Replies: 6
Views: 308

Re: how to quit a gui

From here : MyGui := Gui() MyGui.AddText("", "Press Alt+F4 or the X button in the title bar.") MyGui.OnEvent("Close", MyGui_Close) MyGui_Close(thisGui) { ; Declaring this parameter is optional. if MsgBox("Are you sure you want to close the GUI?",, "y/n") = "No" return true ; true = 1 } MyGui.Show
by submeg
27 Jan 2024, 19:49
Forum: Ask for Help (v2)
Topic: Navigate to the next tab on a GUI on button press? Topic is solved
Replies: 5
Views: 440

Navigate to the next tab on a GUI on button press? Topic is solved

Hi all, Have started to delve into v2 with GUIs. I have created a GUI with tabs: #Requires AutoHotkey v2+ #SingleInstance Force SSGui := Gui() Tab := SSGui.Add("Tab3","vTabSelect h470 w480", ["System","Symptoms","Tab3","Tab4","Tab5","Tab6","Tab7","Tab8"]) Tab.UseTab(1) Btn := SSGui.Add("Button", "de...
by submeg
19 Jan 2024, 16:05
Forum: Off-topic Discussion
Topic: Report False-Positives To Anti-Virus Companies
Replies: 117
Views: 965189

Re: Report False-Positives To Anti-Virus Companies

Just ran into my first issue, which I'm assuming is AV related. AHK installed for months Left PC on, AV did a "background" scan" Tried to run SciTE, error saying it can't run the toolbar.ahk Find AHK > SciTE > InternalAHK.exe has been deleted. TURN OFF AV (Windows Defender already off) Delete all AH...
by submeg
14 Oct 2023, 06:45
Forum: Ask for Help (v2)
Topic: Longpress detect at AutoHotkey v2
Replies: 6
Views: 1410

Re: Longpress detect at AutoHotkey v2

I have now created also a long press, single press and doublepress script in one: F5::doublepress_and_longpress() ; Function for single press, double press and long press (longpress longer than 0.2 seconds, double press within 0.2 seconds) doublepress_and_longpress() { if (KeyWait("F5", "T0.2")) { ...
by submeg
07 Oct 2023, 17:20
Forum: Ask for Help (v2)
Topic: Run ahk scripts and exe files using variable paths Topic is solved
Replies: 8
Views: 755

Re: Run ahk scripts and exe files using variable paths Topic is solved

boiler wrote:
07 Oct 2023, 06:16
submeg wrote: I used mikeyww 's converter
Do you mean this one by mmikeww? I believe that’s a different person.
whoa, mikeyww vs mmikeww...and yep, that's the one. It's actually guest3456 on the AHK forum!
by submeg
07 Oct 2023, 05:07
Forum: Ask for Help (v2)
Topic: Run ahk scripts and exe files using variable paths Topic is solved
Replies: 8
Views: 755

Re: Run ahk scripts and exe files using variable paths Topic is solved

By the way, there is a somewhat easier way in v2 to add quotes around the paths, which you should do for both by habit in case either may contain spaces. It uses single quotes to mark the strings so that double quotes become just normal characters and do not require escaping. When written like that...
by submeg
07 Oct 2023, 05:01
Forum: Ask for Help (v2)
Topic: Run ahk scripts and exe files using variable paths Topic is solved
Replies: 8
Views: 755

Re: Run ahk scripts and exe files using variable paths Topic is solved

andymbody wrote:
07 Oct 2023, 04:54
The variable assignments do need quotes
AHKRootPath := "D:\AutoHotkey\"

but the quotes are not needed in the Run command for paths that look like this (no spaces)
D:\AutoHotkey\
Oh, yep, got what you mean now!
by submeg
07 Oct 2023, 04:45
Forum: Ask for Help (v2)
Topic: Run ahk scripts and exe files using variable paths Topic is solved
Replies: 8
Views: 755

Re: Run ahk scripts and exe files using variable paths Topic is solved

I would like to understand why the file path requires quotation marks, but the path to the AHK exe (which is also a variable) does not? The simple explanation would be... These do not have spaces (quotes not needed) AHKRootPath := "D:\AutoHotkey\" AHKPathv1 := "D:\AutoHotkey\AutoHotkeyU64.exe" AHKP...
by submeg
07 Oct 2023, 04:00
Forum: Ask for Help (v2)
Topic: Run ahk scripts and exe files using variable paths Topic is solved
Replies: 8
Views: 755

Run ahk scripts and exe files using variable paths Topic is solved

Hi all, After some tinkering, I was able to get this to run, but I would like to understand why the file path requires quotation marks, but the path to the AHK exe (which is also a variable) does not? Edit - Answer (thanks andymbody for the link): In most cases, quote marks only have the effect of t...
by submeg
12 Sep 2023, 19:35
Forum: Scripts and Functions (v1)
Topic: KMCounter v3.5 - Use heatmap to show mouse and keyboard usage
Replies: 5
Views: 1216

Re: KMCounter v3.5 - Use heatmap to show mouse and keyboard usage

tuzi wrote:
14 Mar 2021, 04:04

If you want to compile it by yourself, you will need following libs.
Thanks to all authors again!!!

Code: Select all

#Include <OSDTIP>
#Include <Class_CtlColors>
#Include <Class_ImageButton>
#Include <UseGDIP>
#Include <BTT>
#Include <Base64PNG_to_HICON>
Hi there, where can I find these libs?
by submeg
24 Aug 2023, 03:11
Forum: General Discussion
Topic: [v1] LaunchQ vs Radial menu
Replies: 10
Views: 1472

Re: Radial menu scripts

at the moment, i'll stick to this first: https://github.com/aviaryan/autohotkey-scripts/blob/master/Tools/LaunchQ.ahk however, it's single layer of shortcuts instead of a tree like structure. but the whole code is full transparent. FYI: this radial menu v4.48 DO NOT run well with tablet PC, require...
by submeg
20 Jul 2023, 02:40
Forum: General Discussion
Topic: [v1] LaunchQ vs Radial menu
Replies: 10
Views: 1472

Re: Radial menu scripts

at the moment, i'll stick to this first: https://github.com/aviaryan/autohotkey-scripts/blob/master/Tools/LaunchQ.ahk however, it's single layer of shortcuts instead of a tree like structure. but the whole code is full transparent. FYI: this radial menu v4.48 DO NOT run well with tablet PC, require...
by submeg
05 May 2023, 18:17
Forum: Ask for Help (v2)
Topic: This variable appears to never be assigned a value.
Replies: 6
Views: 1700

Re: This variable appears to never be assigned a value.

The error message points you to the problem. Thank you mikeyww for this simple point; I was about to post a thread about this error message, but upon reading this, I realised that the error message also is telling you that the "variable" may not even exist. My issue: I had a #Include filepath. I tr...
by submeg
30 Apr 2023, 05:05
Forum: Off-topic Discussion
Topic: Script conversion requests?
Replies: 1
Views: 1734

Script conversion requests?

Is there anywhere in the forum where I can post requests to have scripts / functions converted into v2?

Some of the scripts I have found over time are beyond my ability to convert, and I'm wondering if people are working on converting them.

Go to advanced search