Search found 16999 matches

by boiler
Today, 06:29
Forum: Ask for Help (v1)
Topic: Pixelsearch to MIN
Replies: 3
Views: 224

Re: Pixelsearch to MIN

You can’t use Min if not all the colors were found. If any of the parameters are non-numeric (blank, in this case), it returns an empty string, per the documentation. You need to only include the numeric values, which can done by adding them to an array if they are not blank, like this: Colx := [] C...
by boiler
Today, 04:02
Forum: Ask for Help (v1)
Topic: GetKeyState("CapsLock", "P") stopped working
Replies: 1
Views: 132

Re: GetKeyState("CapsLock", "P") stopped working

@krl — We keep having to disapprove duplicate posts of yours. Posts by new members (in terms of number of posts) must be approved before they appear. Please be patient and don’t post the same content again. Thank you.
by boiler
Today, 03:18
Forum: AutoHotkey_H
Topic: thqby's AutoHotkey_H v2.0 & v2.1
Replies: 17
Views: 1739

Re: thqby's AutoHotkey_H v2.0 & v2.1

changxiaotiao wrote: Sorry, I don't know how to reply to your private message.
While still in the “new member” status, you will not be able to send private messages.
by boiler
Yesterday, 20:51
Forum: Ask for Help (v1)
Topic: The window doesnt fit in the screen
Replies: 1
Views: 153

Re: The window doesnt fit in the screen

@DRS -- Please put [code][/code] tags around your code when posting a script on the forum. And please ask questions in "Ask for Help" (where this thread was moved to), not in "Scripts and Functions" which is for sharing working scripts, not for getting help with scripts.
by boiler
Yesterday, 15:26
Forum: Ask for Help (v2)
Topic: Hotkeys to switch betwen labels v2 Topic is solved
Replies: 7
Views: 338

Re: Hotkeys to switch betwen labels v2 Topic is solved

Becuase i am runing a long script and what i need is that, based in some events, go directly to a label in particular. As Seven0528 mentioned, you can do this without labels, and you should. You could what you described by having the code in a series of functions, and you just call the function tha...
by boiler
Yesterday, 12:37
Forum: Ask for Help (v2)
Topic: Send menu item to other function?
Replies: 5
Views: 191

Re: Send menu item to other function?

#SingleInstance #Requires AutoHotkey v2+ PrinterToolMenu() PrinterToolMenu(*) { Switches := " ( /e display printing preferences /ge enum per machine printer connections /k print test page to specified printer /o display printer queue view /p display printer properties /s display server properties /...
by boiler
Yesterday, 12:18
Forum: Ask for Help (v2)
Topic: Script wanted
Replies: 7
Views: 307

Re: Script wanted

yes i mean others cant close it . hide it from sys tray. and can i set a shortcut key to start or stop this script? thank you for your response I agree that this isn't a subject we will be discussing here. This is what could be used to create malware (no matter what your intentions are for it) -- h...
by boiler
Yesterday, 08:48
Forum: Ask for Help (v2)
Topic: Need help with script to send keys :(
Replies: 5
Views: 246

Re: Need help with script to send keys :(

Some applications just don't respond to virtual keypresses. You could try running the script as administrator or otherwise address UAC . I'm not a gamer, but since you brought it up... I don't see the distinction between playing against the computer and other humans. If you artificially are able gai...
by boiler
Yesterday, 08:41
Forum: Ask for Help (v2)
Topic: Script wanted
Replies: 7
Views: 307

Re: Script wanted

Can i hide or prevent this scrips from closing or can i protect is closing with password I don't know what this means. You mean so others can't close it? For what purpose? its exe is not working You probably tried to compile it with the wrong AHK binary -- v1 instead of v2. AHK file works only when...
by boiler
Yesterday, 07:24
Forum: Ask for Help (v2)
Topic: Cant figure out how to make coordmode work at all Topic is solved
Replies: 3
Views: 161

Re: Cant figure out how to make coordmode work at all Topic is solved

In v2, expressions are used throughout. In expressions, literal strings must be quoted. If you don't use quotes, it thinks you are trying to use variables named Mouse and Screen.
by boiler
Yesterday, 07:21
Forum: Ask for Help (v2)
Topic: Script wanted
Replies: 7
Views: 307

Re: Script wanted

Code: Select all

#Requires AutoHotkey v2.0

loop {
	WinWait 'Find Sales Receipts'
	WinClose
}
by boiler
Yesterday, 07:12
Forum: Ask for Help (v2)
Topic: Cant figure out how to make coordmode work at all Topic is solved
Replies: 3
Views: 161

Re: Cant figure out how to make coordmode work at all Topic is solved

Code: Select all

#Requires AutoHotkey v2.0
CoordMode 'Mouse', 'Screen'

; Tabs 1-3
u::Click 90, 1010

i::Click 250, 1010

o::Click 450, 1010
by boiler
Yesterday, 07:05
Forum: Ask for Help (v2)
Topic: Basic hotkey translation?
Replies: 8
Views: 205

Re: Basic hotkey translation?

Thanks, i guess i was doing something wrong because now it's working! I'm curious why AHK doesn't also have sort of user interface like X-Keys MacroWorks, that would open up the app to a lot more people who lack basic coding skills!? Different target audience. This is a scripting language, and its ...
by boiler
Yesterday, 06:59
Forum: Ask for Help (v2)
Topic: String Manipulation between ^ and /
Replies: 22
Views: 1045

Re: String Manipulation between ^ and /

Nice references, except I don't know who T Adams is. :eh:
by boiler
Yesterday, 06:53
Forum: Ask for Help (v2)
Topic: Basic hotkey translation?
Replies: 8
Views: 205

Re: Basic hotkey translation?

Sorry, i meant that it's not working in the following respect: If i close Cubase13.exe, then try to type text in any other app, numpad 1 & 2 are not writing a number, but 3 is. That shouldn't be the case, and I can't reproduce the problem. Make sure you don't have any other scripts still running th...
by boiler
Yesterday, 06:39
Forum: Ask for Help (v2)
Topic: Need help with script to send keys :(
Replies: 5
Views: 246

Re: Need help with script to send keys :(

Code: Select all

#Requires AutoHotkey v2.0

F1:: {
	Send '{Ctrl down}'
	Sleep 1000
	Send 'wsd{Ctrl up}'
}
by boiler
Yesterday, 06:22
Forum: Ask for Help (v2)
Topic: Basic hotkey translation?
Replies: 8
Views: 205

Re: Basic hotkey translation?

It should restrict it to only when a window of that application is active. I don’t see how those key remappings could be active when other windows are active.
by boiler
13 May 2024, 22:39
Forum: AutoHotkey_H
Topic: thqby's AutoHotkey_H v2.0 & v2.1
Replies: 17
Views: 1739

Re: thqby's AutoHotkey_H v2.0 & v2.1

changxiaotiao — Twice now we have fixed your codebox tags. The code goes in between the pair of tags, not after them. Please place the tags correctly when you post code. You can also use [code][/code] tags, which default to AHK syntax highlighting. They also go around the code, and there is an icon...
by boiler
13 May 2024, 19:25
Forum: Ask for Help (v2)
Topic: COM Word highlighting toggle help
Replies: 2
Views: 128

Re: COM Word highlighting toggle help

NumpadAdd:: { ; SendEvent("!+h") ; highlight w := ComObjActive("Word.Application") if (SubStr(w.Selection.Range.Text, -1) = ' ') ; w.Selection.SetRange(w.Selection.Range.Start, w.Selection.Range.End - 1) ; these two lines deselect the trailing space w.Selection.Range.HighlightColorIndex := w.Select...
by boiler
13 May 2024, 14:09
Forum: Ask for Help (v2)
Topic: Remapping buttons on "Windows Modern USB-C Speaker"?
Replies: 1
Views: 94

Re: Remapping buttons on "Windows Modern USB-C Speaker"?

Check the KeyHistory and see what it shows (if anything) when you press that button.

Go to advanced search