Search found 46 matches

by Kotte
06 Feb 2022, 21:41
Forum: Ask for Help (v1)
Topic: How do I terminate a script? Topic is solved
Replies: 2
Views: 435

Re: How do I terminate a script? Topic is solved

closeScript("hotstrings.ahk") closeScript(scriptName) { DetectHiddenWindows, On SetTitleMatchMode, 2 WinClose, %scriptName% ahk_class AutoHotkey } Not all heroes wear capes :clap: Now I finally have the power to run a script without touching the mouse :D F5:: { SetTitleMatchMode, 2 WinGetActiveTitl...
by Kotte
06 Feb 2022, 20:56
Forum: Ask for Help (v1)
Topic: How do I terminate a script? Topic is solved
Replies: 2
Views: 435

How do I terminate a script? Topic is solved

I can click the system tray, right click, exit, but how do I do this using commands? I have tried a bunch of different approaches, but none have worked. Clicking Ctrl+Pause crashes the script (which is just as good), so I tried sending that, but there seems to be some trouble with my keyboard layout...
by Kotte
24 Jan 2022, 13:41
Forum: Scripts and Functions (v1)
Topic: A script for centering "fold comments"
Replies: 5
Views: 1030

Re: A script for centering "fold comments"

Yeah, a neat layout makes it so much easier to find the bugs. I have developed the base of a style at least :) There are so many things I don't know about yet so it will probably change a lot, but it's a start. Libraries and GUI's are two things I gotta start fiddling with soon. I made a small GUI m...
by Kotte
22 Jan 2022, 13:11
Forum: Scripts and Functions (v1)
Topic: A script for centering "fold comments"
Replies: 5
Views: 1030

Re: A script for centering "fold comments"

DaveT1 Nice! :thumbup: Got any other good habits that you want to share? I'm a beginner when it comes to coding and even more so when it comes to organizing code. I stumbled upon functions yesterday, so now I'm leaning towards rewriting all of my long and messy hotkeys as functions instead. Seems m...
by Kotte
22 Jan 2022, 02:54
Forum: Scripts and Functions (v1)
Topic: A script for centering "fold comments"
Replies: 5
Views: 1030

A script for centering "fold comments"

I don't know what the proper name is for the following, so I'll call it fold comments for now. { ;~---------------------------------------------- TEXT -------------------------------------------------- Some code... } When trying to organize my code, I'll usually group things together and enclose it ...
by Kotte
19 Jan 2022, 04:42
Forum: Ask for Help (v1)
Topic: Preventing hotstrings from getting triggered by ".". Topic is solved
Replies: 2
Views: 301

Re: Preventing hotstrings from getting triggered by ".". Topic is solved

mikeyww
You're the man, Mikey! Haha, I was pretty close to solving it, it seems. I had this commented out in my code

Code: Select all

:B0C?Z:.ahk::
#Hotstring EndChars "
, but it only solved half the problem. Thanks for the help!
by Kotte
18 Jan 2022, 11:58
Forum: Ask for Help (v1)
Topic: Preventing hotstrings from getting triggered by ".". Topic is solved
Replies: 2
Views: 301

Preventing hotstrings from getting triggered by ".". Topic is solved

Hi! I'm having trouble with my hotstring script. I'm trying to prevent hotstrings from getting triggered if they are part of a string, but I'm not making any progress. I thought that setting #Hotstring Endchars to Space would solve it, but all kinds of keypresses still triggers it. One example would...
by Kotte
31 Dec 2021, 10:33
Forum: SciTE4AutoHotkey
Topic: Problems with changing theme.
Replies: 2
Views: 1583

Re: Problems with changing theme.

BrockPlaysFortnite Sorry for the late response. I never got a notification about your message. Yeah, I'm guessing it has to do with some property file, but I can't find anything. Hm, I'll have to think about that switch. I already use NP++ for basic notes and help files. Setting up a dark theme was...
by Kotte
30 Dec 2021, 14:36
Forum: SciTE4AutoHotkey
Topic: How do I remove all keyboard shortcuts in SciTE? Topic is solved
Replies: 4
Views: 1283

Re: How do I remove all keyboard shortcuts in SciTE? Topic is solved

@gregster I want the reminder. In a few hours I'll have no idea where i put this code and this way I'll know where to look. Plus, it's not that often I press hotkeys unintentionally. Just often enough for the built in ones to annoy me =)
by Kotte
30 Dec 2021, 14:11
Forum: SciTE4AutoHotkey
Topic: How do I remove all keyboard shortcuts in SciTE? Topic is solved
Replies: 4
Views: 1283

Re: How do I remove all keyboard shortcuts in SciTE? Topic is solved

I solved the shortcuts in a messy way. Errmsg = This hotkey was disabled in SciTE4AutoHotkey by`n"Blocked hotkeys in SciTE" in the %A_Scriptname% file. { ;~------------------------------------- Blocked hotkeys in SciTE ---------------------------------------- #IfWinActive, ahk_class SciTEWindow !a::...
by Kotte
29 Dec 2021, 13:14
Forum: SciTE4AutoHotkey
Topic: How do I remove all keyboard shortcuts in SciTE? Topic is solved
Replies: 4
Views: 1283

How do I remove all keyboard shortcuts in SciTE? Topic is solved

Hi! Is there a way to remove all keyboard shortcuts I SciTE? I used to use two of them - F5 and CTRL + Q, but F5 seems to be known to not work so I made a hotkey for mouse clicking the run button instead. Now I only use CTRL + Q, but I'd gladly skip that one if it's easier to remove all shortcuts. I...
by Kotte
24 Nov 2021, 16:29
Forum: Scripts and Functions (v1)
Topic: One hotkey/hotstring for multiple window sensitive outputs.
Replies: 0
Views: 809

One hotkey/hotstring for multiple window sensitive outputs.

Hi! This is a very basic script for sending different outputs depending on what window is active. I guess there's a bunch of these around here, but I couldn't find one that only required typing the hotstring/hotkey once. The reason I wanted it is to be able to have the same command for similar outpu...
by Kotte
21 Nov 2021, 11:05
Forum: SciTE4AutoHotkey
Topic: Problems with changing theme.
Replies: 2
Views: 1583

Problems with changing theme.

Hi! I found this theme https://www.autohotkey.com/board/topic/70058-scite-styles/ by @budRich and tried it out. It seems something is not working like I hoped it would. Most things look right in the editor, but the window still is white/grey. What am I doing wrong? I'm on version 3.0.06.01 Maybe thi...
by Kotte
03 Aug 2021, 10:43
Forum: Ask for Help (v1)
Topic: How to write Hotstrings that takes user input?
Replies: 20
Views: 2855

Re: How to write Hotstrings that takes user input?

sofista lexikos flyingDman Wow, thanks for all the effort! I'm afraid it still doesn't work for me. It seems that my Swedish keyboard breaks things. Also, it still seems to only register keystrokes, meaning none of my hotkeys/hotstrings works and pasting stuff just returns v. I think I have to give...
by Kotte
29 Jul 2021, 09:33
Forum: Ask for Help (v1)
Topic: How to write Hotstrings that takes user input?
Replies: 20
Views: 2855

Re: How to write Hotstrings that takes user input?

@sofista It didn't work. It seems I have not explained what was input and what was output in a clear manner. I'd like to input two expressions (a and b) and get the output \frac{a}{b}. Both a and b might contain any combination of these characters. \()[]{}'*^_-!%/*-+´`>| If I wrote "fr.x^{2}''\alpha...
by Kotte
27 Jul 2021, 13:01
Forum: Ask for Help (v1)
Topic: How to write Hotstrings that takes user input?
Replies: 20
Views: 2855

Re: How to write Hotstrings that takes user input?

@flyingDman It works for multiple numbers and letters, but it doesn't solve the problem. Numbers and letters are not the problem, it's the characters like: \()[]{}'*^_-!%/*-+´`<>|. I use all of those regularly, and most of them daily. I tried SendRaw instead and it worked better, but it seems like i...
by Kotte
27 Jul 2021, 07:34
Forum: Ask for Help (v1)
Topic: How to write Hotstrings that takes user input?
Replies: 20
Views: 2855

Re: How to write Hotstrings that takes user input?

@flyingDman Haha, such an easy solution =) I saw #Warn in some video by Joe Glines and have just had it in all scripts since. It works now, but only for single inputs. What do I need for it to take any input. It will differ a lot, but "a" might have the form "\int_{0}^{a^2} \frac{f''(x)}{\sin x} ,\ ...
by Kotte
26 Jul 2021, 16:34
Forum: Ask for Help (v1)
Topic: How to write Hotstrings that takes user input?
Replies: 20
Views: 2855

Re: How to write Hotstrings that takes user input?

@flyingDman I couldn't get your code to work in heartstrings.ahk. "#Warn" gives me constant error messages until I close the script. That happened where ever I added the code. It starts by saying "z" is not assigned a value and continues with the other variables.
by Kotte
26 Jul 2021, 16:13
Forum: Ask for Help (v1)
Topic: How to write Hotstrings that takes user input?
Replies: 20
Views: 2855

Re: How to write Hotstrings that takes user input?

@mikeyww I didn't find what I was looking for when I searched the AHK help for parse. Is it mentioned in an other section?
by Kotte
26 Jul 2021, 12:05
Forum: Ask for Help (v1)
Topic: How to write Hotstrings that takes user input?
Replies: 20
Views: 2855

How to write Hotstrings that takes user input?

Hi, I don't know the name of what I'm looking for, so I haven't had any luck searching or reading different forum posts. I'll try to give a clear picture of what output I'm after and then maybe you can point me in the right direction. I would like to be able to trigger a hotstring, have it take mult...

Go to advanced search