Search found 16947 matches

by boiler
20 minutes ago
Forum: Ask for Help (v1)
Topic: How to check if Gui is empty before showing it?
Replies: 2
Views: 33

Re: How to check if Gui is empty before showing it?

Alternative: Gui, +HwndGuiID Gui, Show, x100 y100 w200 h100 MsgBox, % "No. of controls: " CtrlCount(GuiID) Gui, Add, Text,, Hello MsgBox, % "No. of controls: " CtrlCount(GuiID) Gui, Add, Button, xm, Button MsgBox, % "No. of controls: " CtrlCount(GuiID) ExitApp CtrlCount(id) { WinGet, list, ControlLi...
by boiler
54 minutes ago
Forum: Gaming Help (v1)
Topic: Help With script. Topic is solved
Replies: 24
Views: 1125

Re: Help With script. Topic is solved

Code: Select all

F1::
WinActivate, Willhood ahk_exe DofusMod.exe
WinGetPos,,, w, h, Willhood ahk_exe DofusMod.exe
MouseMove, w / 2, h / 2, 0
return

F2::
WinActivate, Will-shot ahk_exe DofusMod.exe
WinGetPos,,, w, h, Will-shot ahk_exe DofusMod.exe
MouseMove, w / 2, h / 2, 0
Send, {tab}
return
by boiler
Today, 15:13
Forum: Ask for Help (v1)
Topic: Mac Parallel & Win11 Issues
Replies: 5
Views: 149

Re: Mac Parallel & Win11 Issues

What could be happening is that when you run a virtual desktop like Parallels, depending on the settings, it could be trying to sync the states of toggle keys between the physical desktop and the virtual desktop, and in doing so, it can mess up the way those keys are handled, especially on the virtu...
by boiler
Today, 14:43
Forum: Gaming Help (v1)
Topic: Help With script. Topic is solved
Replies: 24
Views: 1125

Re: Help With script. Topic is solved

What does that mean? Did you run the script I showed or not? What did it show?
by boiler
Today, 14:40
Forum: Ask for Help (v2)
Topic: i made the simple code but is make me feel sump
Replies: 1
Views: 47

Re: i made the simple code but is make me feel sump

Your #IfWinActive line is v1 code. See #HotIf and WinActive.

Code: Select all

#Requires AutoHotkey v2.0

#HotIf WinActive('ahk_exe EXCEL.EXE')

^Tab::^PgUp
by boiler
Today, 12:34
Forum: Ask for Help (v2)
Topic: tray icons usage Topic is solved
Replies: 9
Views: 307

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: 9
Views: 237

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: 83

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: 245

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: 307

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: 243

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: 37

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: 100

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: 24
Views: 1125

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: 40
Views: 12667

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: 24
Views: 1125

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: 561

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: 477

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...

Go to advanced search