Search found 17162 matches

by boiler
26 May 2024, 14:10
Forum: Ask for Help (v1)
Topic: how to stringsplitt this Topic is solved
Replies: 10
Views: 1064

Re: how to stringsplitt this Topic is solved

Here’s a ReEx version that doesn’t use a subpattern, so the match variable is your final variable name of choice (does not use a 1 after it to identify the subpattern): string := "fs14 ZY7 w190 h40 x865 y520 CW50595E CTE1E1E1" RegExMatch(string, "CW\K[0-9A-F]{6}", CW) RegExMatch(string, "CT\K[0-9A-F...
by boiler
26 May 2024, 04:51
Forum: Gaming
Topic: Can AHK decect a chnage in pixel color? Clicking icon/ability in game.
Replies: 24
Views: 1439

Re: Can AHK decect a chnage in pixel color? Clicking icon/ability in game.

I'm guessing it would have to start with something like: … Right? Yes, but checking only every second seems like it’s overly infrequent, but I don’t play this game — or any games. But I honestly don't know much about coding, I'm not even sure if it is possible to create such a script. Also, the who...
by boiler
25 May 2024, 16:18
Forum: Tutorials (v1)
Topic: FindText tutorial
Replies: 105
Views: 72575

Re: FindText tutorial

It’s literally one of the first several threads in the “Scripts and Functions (v2)” section of the forum:

viewtopic.php?f=83&t=116471
by boiler
25 May 2024, 16:14
Forum: Outras Ferramentas e Recursos
Topic: Nova versão Chrome. Confusão generalizada!
Replies: 2
Views: 973

Re: Nova versão Chrome. Confusão generalizada!

gonad - Do not post that (or another) website link again. It is not helpful as a reply and is most likely spam. Similar posts will lead to at least a loss of posting privileges and possibly termination of your account. Translation by Google Translate: Não publique esse (ou outro) link de site novam...
by boiler
25 May 2024, 09:32
Forum: Gaming
Topic: Can AHK decect a chnage in pixel color? Clicking icon/ability in game.
Replies: 24
Views: 1439

Re: Can AHK decect a chnage in pixel color? Clicking icon/ability in game.

I've tried out AutoHotkey Window Spy and when I hovered my mouse cursor over my grayed out icon it came up with the position 1385, 1302 this should be the x and y, axis correct? Generally, yes. You need to pay attention to whether it’s screen, window, or client coordinates and may need to use Coord...
by boiler
25 May 2024, 05:38
Forum: Gaming
Topic: Can AHK decect a chnage in pixel color? Clicking icon/ability in game.
Replies: 24
Views: 1439

Re: Can AHK decect a chnage in pixel color? Clicking icon/ability in game.

To answer your earlier question, you should be using v2 as it is the actively supported version. But it didn't seem to work, so I'm guessing that searching by pixel color is impossible or maybe very difficult? Searching for a color is straightforward using PixelGetColor . Also, how would I go about ...
by boiler
25 May 2024, 05:16
Forum: Ask for Help (v2)
Topic: When AHK uses WinGetPos to get the coordinates of maximized windows, it returns incorrect values.
Replies: 4
Views: 328

Re: When AHK uses WinGetPos to get the coordinates of maximized windows, it returns incorrect values.

AHK is relaying the actual window size and position as reported by Windows. Starting with Win10, when Windows renders a window, there is an invisible border around it. The size and position that it reports includes that border. WinGetPosEX is a function that reports the window size and position with...
by boiler
24 May 2024, 07:49
Forum: Ask for Help (v1)
Topic: Any way to "fake" a winactivate?
Replies: 8
Views: 877

Re: Any way to "fake" a winactivate?

If you’re going to produce native AHK code and are looking for help with that, we can move the thread back to the main part of the forum. If so, post some AHK code that you have questions about. Your first post provides no specifics, and your second post is not AHK code.
by boiler
24 May 2024, 07:45
Forum: Off-topic Discussion
Topic: Is AHK v2 better than v1?
Replies: 6
Views: 818

Re: Is AHK v2 better than v1?

Yes, v2 is much better than v1. Not only is it the version that will continue to be maintained, it eliminates most of the confusion that made v1 so frustrating for beginners to learn. In general, its syntax and structure are more modern, which results in a much better coding experience.
by boiler
24 May 2024, 07:41
Forum: Ask for Help (v2)
Topic: When AHK uses WinGetPos to get the coordinates of maximized windows, it returns incorrect values.
Replies: 4
Views: 328

Re: When AHK uses WinGetPos to get the coordinates of maximized windows, it returns incorrect values.

Since you’re aware of that history, you might have also seen that it’s not an AHK bug (and it’s not an incorrect value in Windows terms). Perhaps WinGetPosEx would be of interest to you, assuming you haven’t run across it already.
by boiler
24 May 2024, 05:11
Forum: Ask for Help (v2)
Topic: Sending output of date selector
Replies: 2
Views: 183

Re: Sending output of date selector

You can change the MsgBox to Send or whatever you want to do with the result. #Requires AutoHotkey v2.0 MyGui := Gui(, "Date") MyGui.AddMonthCal("vMonthCalendar") MyGui.Add("Button", "default", "OK").OnEvent("Click", ProcessUserInput) MyGui.OnEvent("Close", ProcessUserInput) !d::MyGui.Show() Process...
by boiler
24 May 2024, 04:40
Forum: Ask for Help (v1)
Topic: Any way to "fake" a winactivate?
Replies: 8
Views: 877

Re: Any way to "fake" a winactivate?

I updated some of the script with controlsends then i realized it's pointless since the window has to be active and i will inevitably activate other windows with my mouse. How did you determine the window has to be active? And if so, no big deal. Just use regular Send. You are making this sound way...
by boiler
24 May 2024, 04:34
Forum: Ask for Help (v2)
Topic: Error: Invalid hotkey
Replies: 1
Views: 146

Re: Error: Invalid hotkey

why wrong? Many reasons. First, for the hotkey definition, you don’t use braces around the key names, and if you want to use a modifier symbol, you don’t use & , which is for a custom combination of keys (and if you do use & , you would put spaces around it). So the hotkey for Ctrl + Space is ^Spac...
by boiler
24 May 2024, 04:24
Forum: Ask for Help (v2)
Topic: Output current date and time with a string.
Replies: 1
Views: 122

Re: Output current date and time with a string.

You must not have looked at the documentation very carefully.

Code: Select all

#Requires AutoHotkey v2.0

^j::Send FormatTime(, "dd/MM' - You are signing in at 'h:mmtt'`n`nYou brought with you - `n1. '")
by boiler
23 May 2024, 16:57
Forum: Ask for Help (v2)
Topic: Autohotkey 3 Side Buttons on mouse. Topic is solved
Replies: 5
Views: 382

Re: Autohotkey 3 Side Buttons on mouse. Topic is solved

Another possibility: Does your mouse come with software that allows you to map keypress combinations to be sent when you click that button? If so, you should be able to define a hotkey in an AHK script to trigger based on whatever combination you define for that button. Make it some combination of k...
by boiler
23 May 2024, 16:22
Forum: Ask for Help (v2)
Topic: about Hotkeys and Send format is different
Replies: 1
Views: 150

Re: about Hotkeys and Send format is different

Why can't Hotkey and Send be unified into Symbol+{*}? Because they are used very differently, and having them the same as each other would make it cumbersome for 99+% of the use cases, which clearly is not worth it just to make your particular case easier. Why should we always have to put braces ar...
by boiler
23 May 2024, 16:13
Forum: Off-topic Discussion
Topic: New to Email Copywriting - Seeking Advice
Replies: 2
Views: 290

Re: New to Email Copywriting - Seeking Advice

kimi - I approved this post since it is in "Off-topic Discussion", but I'm not sure why you think a forum dedicated to the AutoHotkey programming language is a good place to get good inputs on this topic. Please note that eventually offering details about your SEO services will not be permitted here.
by boiler
23 May 2024, 14:43
Forum: Ask for Help (v1)
Topic: The print screen command doesnt work anymore
Replies: 2
Views: 385

Re: The print screen command doesnt work anymore

@DRS - Please post in the v1 section when you are asking for help with v1 code. This thread was moved from where you posted it in the main (v2) section. Thank you.
by boiler
23 May 2024, 11:00
Forum: Ask for Help (v2)
Topic: Help with V2 %clipboard% Topic is solved
Replies: 3
Views: 210

Re: Help with V2 %clipboard% Topic is solved

I googled for so dang long to no avail and you have it fixed minutes after I post. Typically, as in this case, consulting the official AHK documentation is much more efficient and accurate than googling. In this case, you would want to read and understand the syntax for expressions , which will ser...
by boiler
23 May 2024, 10:46
Forum: Ask for Help (v1)
Topic: Any way to "fake" a winactivate?
Replies: 8
Views: 877

Re: Any way to "fake" a winactivate?

Why is your script basing things on which window is active if you're using ControlSends? Just cycle through the windows and act on each without activating them. Not sure why you are saying you can't change the design of your script. Change it so it works the way you want.

Go to advanced search