Search found 16942 matches

by boiler
18 minutes ago
Forum: Ask for Help (v2)
Topic: tray icons usage Topic is solved
Replies: 9
Views: 215

Re: tray icons usage Topic is solved

I agree that a .ico file that contains various size images drawn specifically for that size looks much better than letting Windows scale up or down based on one size.
by boiler
Today, 10:57
Forum: Ask for Help (v2)
Topic: Only a number (RegExMatch?)
Replies: 8
Views: 137

Re: Only a number (RegExMatch?)

You can use IsXDigit() to include hex numbers. Would have to check separately for empty strings, as pointed out.
by boiler
Today, 10:38
Forum: Ask for Help (v1)
Topic: "Send" a "loop" that moves the mouse and clicks
Replies: 1
Views: 56

Re: "Send" a "loop" that moves the mouse and clicks

Just in terms of combining the scripts into one: #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common errors. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkin...
by boiler
Today, 06:22
Forum: Ask for Help (v1)
Topic: Help ahk search color and generate parametre.ini
Replies: 5
Views: 218

Re: Help ahk search color and generate parametre.ini

This is why asking for help with ChatGPT-generated code is against the forum rules. I’ll leave it in place since you already received a response, but please don’t post code written by AI in the future, at least until they get better at it and the forum rules change accordingly.
by boiler
Today, 06:08
Forum: Ask for Help (v2)
Topic: tray icons usage Topic is solved
Replies: 9
Views: 215

Re: tray icons usage Topic is solved

My thoughts: 1. it seems as though the .ico format is most desired. does it have any advantages?? From the TraySetIcon documentation: Slight distortion may occur when loading tray icons from file types other than .ICO. This is especially true for 16x16 icons. To prevent this, store the desired tray ...
by boiler
Today, 05:45
Forum: Ask for Help (v2)
Topic: How to pass variables into Gui's callback function and how to terminate another function within one function?
Replies: 3
Views: 239

Re: How to pass variables into Gui's callback function and how to terminate another function within one function?

Are there other methods? I don’t understand "An "event sink", or object to bind events to. If EventObj is specified, OnEvent, OnNotify and OnCommand can be used to register methods of EventObj to be called when an event is raised." , and I didn’t find any examples. It seems that I can pass in an ob...
by boiler
Today, 04:59
Forum: Ask for Help (v2)
Topic: This is the gui phrase I used in v1, but I want to change it to the v2 version.
Replies: 1
Views: 34

Re: This is the gui phrase I used in v1, but I want to change it to the v2 version.

You need to show the code where the GUI is created, which apparently you’ve already translated to v2 since you didn’t include that. We don’t even know the name of the GUI object.
by boiler
Today, 04:50
Forum: Ask for Help (v1)
Topic: Script that runs different loop depending on which option is set to true
Replies: 1
Views: 95

Re: Script that runs different loop depending on which option is set to truec

The two lines where you assign true/false never execute because they are below a hotkey. See Structure of a Script.
by boiler
Yesterday, 19:03
Forum: Gaming Help (v1)
Topic: Help With script. Topic is solved
Replies: 20
Views: 1076

Re: Help With script. Topic is solved

I don’t care what the character’s name is. I am pointing out that the window title not matching exactly is the main possible reason the window doesn’t activate when you press the hotkey. What does it show when that window is open and you run the script below? MsgBox, % WinExist("Will-shot ahk_exe Do...
by boiler
Yesterday, 17:07
Forum: Scripts and Functions (v1)
Topic: DragToScroll - updated
Replies: 39
Views: 12612

Re: DragToScroll - updated

I assume you mean v2.0.4 since there is no v2.4, and there would have to be a lot more changed than just what you requested. The whole script would have to be translated to v2.
by boiler
Yesterday, 08:59
Forum: Gaming Help (v1)
Topic: Help With script. Topic is solved
Replies: 20
Views: 1076

Re: Help With script. Topic is solved

Are you sure the title of that window is exactly Will-shot with that exact capitalization and a regular hyphen in it? I would also put only one space after the comma and before that title. It's also possible there are hidden characters in the title. It's best to copy the title directly from Window S...
by boiler
Yesterday, 08:38
Forum: Scripts and Functions (v2)
Topic: Easy Window Dragging KDE style, corrected for multi monitor setup
Replies: 4
Views: 556

Re: Easy Window Dragging KDE style, corrected for multi monitor setup

@jidoohanbaiki — You are apparently attempting to run the script with AHK v1 this time. Put this at the top of your script so that the AHK launcher always uses v2 to run the script:

Code: Select all

#Requires AutoHotkey v2.0
by boiler
Yesterday, 07:30
Forum: Ask for Help (v1)
Topic: PixelSearch
Replies: 5
Views: 468

Re: PixelSearch

But I have no IDEA how I could use this so that a color is searched for from the middle of the screen 50px in all directions I didn't say you would use that. I said it was an example of how you incorporate an mcode function into your hotkey script. You actually have to write the function to do what...
by boiler
Yesterday, 06:10
Forum: Ask for Help (v2)
Topic: Is it possible to pass named parameters? e.g. create_GUI(name: "status_GUI", bgcolor: "blue")
Replies: 4
Views: 370

Re: Is it possible to pass named parameters? e.g. create_GUI(name: "status_GUI", bgcolor: "blue")

This is very close to what you said you are looking to do, and the order doesn't matter (the advantage of named parameters), as the second GUI shows: #Requires AutoHotkey v2.0 status_GUI := create_GUI({name_GUI: "status_GUI", text: "hello", bgcolor: "blue", opt: "x880 y900 NoActivate"}) other_GUI :=...
by boiler
Yesterday, 03:06
Forum: Gaming
Topic: take window information
Replies: 6
Views: 327

Re: take window information

You could try using UIA , although I doubt it will work for a game’s chat window. If there is a log file the game keeps on your machine that includes chat history, you could monitor that. As a last resort, you might have to use OCR. There are several OCR libraries on the forum. I suppose since you a...
by boiler
Yesterday, 02:52
Forum: Ask for Help (v1)
Topic: PixelSearch
Replies: 5
Views: 468

Re: PixelSearch

You could write a function in C which would be compiled into mcode (machine code) and called by your AHK script. The function would search the memory of a bitmap that is a copy of the screen area. It would be very fast. Here is an example of an mcode function acting on a bitmap.
by boiler
07 May 2024, 22:22
Forum: Gaming
Topic: take window information
Replies: 6
Views: 327

Re: take window information

No, that means ControlGetText won’t work because they’re not using standard Windows controls, which isn’t surprising for a game window.
by boiler
07 May 2024, 13:58
Forum: Ask for Help (v1)
Topic: PixelSearch
Replies: 5
Views: 468

Re: PixelSearch

PixelSearch, by default, searches from top left to top right and then goes down one line until the color is successfully found. Actually, unlike ImageSearch, the direction of search depends on whether X1 is greater than X2 and whether Y1 is greater than Y2. Is it possible to start the search from t...
by boiler
07 May 2024, 12:16
Forum: Ask for Help (v1)
Topic: How can we go back to DEFAULT Coordmode mode?
Replies: 3
Views: 299

Re: How can we go back to DEFAULT Coordmode mode?

If you want to go back to whatever the previous coord mode was without knowing what it was, you can do this: PrevCoordModeMouse := A_CoordModeMouse CoordMode, Mouse ,Screen MouseGetPos, MX, MY ....SOME CODE...... CoordMode, Mouse, % PrevCoordModeMouse It doesn’t matter if you use a Return or not bec...
by boiler
07 May 2024, 07:03
Forum: Gaming
Topic: take window information
Replies: 6
Views: 327

Re: take window information

What you should be checking with Window Spy is whether the chat area of the window has a ClassNN control name. If it does, then try getting the text from that control using ControlGetText.

Go to advanced search