Search found 17119 matches
- Yesterday, 22:19
- Forum: Ask for Help (v2)
- Topic: newbie script (persistant menu of buttons to send keystrokes) problem
- Replies: 3
- Views: 183
Re: newbie script (persistant menu of buttons to send keystrokes) problem
Asking for help with AI-generated code is against the forum rules for that very reason. They make stuff up, and it’s a waste of the members’ time trying to undo the nonsense.
- Yesterday, 22:14
- Forum: Ask for Help (v1)
- Topic: why don't act pixelsearch with mousegetpos variable? Topic is solved
- Replies: 19
- Views: 781
Re: why don't act pixelsearch with mousegetpos variable? Topic is solved
No, that’s not what I mean at all. I’m saying that to try to figure out why it’s not working, write a very simple script with just the elements you are trying to troubleshoot and none of the other stuff. Then you can see how to fix it in the main script. So write a simple script that does nothing bu...
- Yesterday, 20:11
- Forum: Ask for Help (v2)
- Topic: coordenate
- Replies: 4
- Views: 175
Re: coordenate
Please don’t post scripts, especially long ones, without code tags. And what you posted is v1 code, but you were asking for help in the v2 section.
- Yesterday, 19:28
- Forum: Tutorials (v1)
- Topic: FindText tutorial
- Replies: 105
- Views: 71398
Re: FindText tutorial
In v1, MsgBox Text would just produce the word Text, not the contents of the variable named Text.
- Yesterday, 17:35
- Forum: Ask for Help (v1)
- Topic: why don't act pixelsearch with mousegetpos variable? Topic is solved
- Replies: 19
- Views: 781
Re: why don't act pixelsearch with mousegetpos variable? Topic is solved
Ideally, you would post a small but complete script that demonstrates the problem when run exactly as-is. Just make a very small script that tries to search for the pixel once you've defined the variables! There is so much going on in that script. Just isolate the issue you're trying to fix! Yes, i...
- Yesterday, 16:04
- Forum: Ask for Help (v2)
- Topic: Converting a toggle key script to v2 Topic is solved
- Replies: 4
- Views: 187
Re: Converting a toggle key script to v2 Topic is solved
The $ is to prevent the hotkey from triggering itself when you send the same key as the hotkey. The * is a wildcard that allows the hotkey to fire even if modifier keys such as Ctrl or Alt are held down. It's in the Hotkey Modifier Symbols section of the Hotkeys documentation page.
- Yesterday, 16:00
- Forum: Ask for Help (v2)
- Topic: Converting a toggle key script to v2 Topic is solved
- Replies: 4
- Views: 187
Re: Converting a toggle key script to v2 Topic is solved
Code: Select all
#Requires AutoHotkey v2.0
$Shift:: {
static tog := 0
Send (tog := !tog) ? '{Shift Down}' : '{Shift Up}'
}
- Yesterday, 15:22
- Forum: Ask for Help (v2)
- Topic: newbie script (persistant menu of buttons to send keystrokes) problem
- Replies: 3
- Views: 183
Re: newbie script (persistant menu of buttons to send keystrokes) problem
It says it needs v1 because that's v1 code. Do you really want to use v2? If you want to continue with v1, I'll move the thread to the v1 section. It gives that error because GuiControl has nothing to do with what your comment says you are trying to do with it. You set the labels for the buttons in ...
- Yesterday, 13:01
- Forum: Ask for Help (v2)
- Topic: Switching between windows
- Replies: 1
- Views: 106
Re: Switching between windows
Step 1: Read the documentation, especially how to use it, creating scripts, and the function list, especially WinActivate.
- Yesterday, 12:10
- Forum: Ask for Help (v1)
- Topic: why don't act pixelsearch with mousegetpos variable? Topic is solved
- Replies: 19
- Views: 781
- Yesterday, 08:03
- Forum: Gaming
- Topic: Windows key
- Replies: 3
- Views: 212
Re: Windows key
1. Open a text editor like Notepad.
2. Paste the code in the editor.
3. Save the file with a .ahk extension, such as WindowsKey.ahk, and close the editor.
4. Run the script by double-clicking on the file in File Explorer.
2. Paste the code in the editor.
3. Save the file with a .ahk extension, such as WindowsKey.ahk, and close the editor.
4. Run the script by double-clicking on the file in File Explorer.
- Yesterday, 05:47
- Forum: Ask for Help (v1)
- Topic: why don't act pixelsearch with mousegetpos variable? Topic is solved
- Replies: 19
- Views: 781
Re: why don't act pixelsearch with mousegetpos variable? Topic is solved
and how can i use variable(x1,y1) with one hotkey(like array)? CoordMode, Mouse, Screen CoordMode, Pixel, Screen Index := 0 Coords := [] F1:: Index := Index = 4 ? 1 : Index + 1 MouseGetPos, MX, MY Coords[Index] := {x: MX, y:MY} ToolTip, % Index ": (" MX "," MY ")" SetTimer, ToolTipOff, -2000 return...
- Yesterday, 01:52
- Forum: Ask for Help (v1)
- Topic: why don't act pixelsearch with mousegetpos variable? Topic is solved
- Replies: 19
- Views: 781
- Yesterday, 01:34
- Forum: Ask for Help (v1)
- Topic: why don't act pixelsearch with mousegetpos variable? Topic is solved
- Replies: 19
- Views: 781
- Yesterday, 01:34
- Forum: Ask for Help (v1)
- Topic: why don't act pixelsearch with mousegetpos variable? Topic is solved
- Replies: 19
- Views: 781
Re: why don't act pixelsearch with mousegetpos variable? Topic is solved
sry. i used coordMode - Client. That’s not any different regarding what I said. It’s still based on the active window, and maybe that changes when you run the different versions of your script. It’s hard to say because we don’t know when you might be clicking on different windows. And this is anoth...
- Yesterday, 01:10
- Forum: Ask for Help (v1)
- Topic: why don't act pixelsearch with mousegetpos variable? Topic is solved
- Replies: 19
- Views: 781
- Yesterday, 01:06
- Forum: Ask for Help (v1)
- Topic: why don't act pixelsearch with mousegetpos variable? Topic is solved
- Replies: 19
- Views: 781
Re: why don't act pixelsearch with mousegetpos variable? Topic is solved
The problem is not with using variables. You are searching based on the active window, so I’m guessing that’s changed when you run the script different ways. You might want to try changing to screen coordinates for both mouse and pixel using CoordMode.
- Yesterday, 00:54
- Forum: Ask for Help (v1)
- Topic: why don't act pixelsearch with mousegetpos variable? Topic is solved
- Replies: 19
- Views: 781
Re: why don't act pixelsearch with mousegetpos variable? Topic is solved
If the script you posted is different than what you ran, then we can’t help you. Post the exact script you actually ran and doesn’t work.
- Yesterday, 00:46
- Forum: Ask for Help (v1)
- Topic: why don't act pixelsearch with mousegetpos variable? Topic is solved
- Replies: 19
- Views: 781
Re: why don't act pixelsearch with mousegetpos variable? Topic is solved
None of the lines after the Return will ever execute.
How do you expect it to know what the values of x2 and y2 are if you have never assigned values to them?
How do you expect it to know what the values of x2 and y2 are if you have never assigned values to them?
- 29 May 2024, 17:50
- Forum: Ask for Help (v1)
- Topic: Rebinding ctrl+tab to alt tab in all but one window Topic is solved
- Replies: 4
- Views: 339
Re: Rebinding ctrl+tab to alt tab in all but one window Topic is solved
Since OP apparently intended to use v1, I moved the thread to the v1 section.