Search found 16950 matches
- Yesterday, 21:31
- Forum: Gaming Help (v1)
- Topic: Script Background Topic is solved
- Replies: 2
- Views: 67
Re: Script Background Topic is solved
ControlSend simply doesn’t work on all windows. It very well could be nothing more than that. I can’t help but notice in the first script you’re sending the F6 key and you are sending the 1 key in the second. I assume you really did run them using the same keys in both the send and ControlSend versi...
- Yesterday, 21:24
- Forum: Ask for Help (v1)
- Topic: Mac Parallel & Win11 Issues
- Replies: 8
- Views: 301
Re: Mac Parallel & Win11 Issues
Look carefully at your original example of making a hotkey combination out of the CapsLock and 2 keys, and look again and what you tried for a hotkey for a combination of the CapsLock and Z keys, and see if you can spot any difference. One hint: Capitalization isn’t the issue. And using a lowercase ...
- Yesterday, 18:33
- Forum: Ask for Help (v2)
- Topic: CheckColor / WaitColor - Color names of HEX color Topic is solved
- Replies: 15
- Views: 413
Re: CheckColor / WaitColor - Color names of HEX color Topic is solved
PixelGetColor returns the hex number as a string. To get it to treat it as a number, do this: readColor := PixelGetColor( xPos, yPos ) + 0 Demonstration below. Try it both with and without the readColor += 0 line commented out. #Requires AutoHotkey v2.0 cValue := Map( '' , , 'white' , 0xFFFFFF , 'bl...
- Yesterday, 18:15
- Forum: Ask for Help (v1)
- Topic: How to check if Gui is empty before showing it?
- Replies: 2
- Views: 198
Re: How to check if Gui is empty before showing it?
An alternate approach is to use this function to which you pass the GUI's hwnd. It will work without showing the GUI if you have DetectHiddenWindows on. CtrlCount(id) { WinGet, list, ControlList, ahk_id %id% RegExReplace(list, "\w+",, count) return count } Demonstration: DetectHiddenWindows, On Gui,...
- Yesterday, 16:45
- Forum: Gaming Help (v1)
- Topic: Help With script. Topic is solved
- Replies: 24
- Views: 1196
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
- Yesterday, 15:13
- Forum: Ask for Help (v1)
- Topic: Mac Parallel & Win11 Issues
- Replies: 8
- Views: 301
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...
- Yesterday, 14:43
- Forum: Gaming Help (v1)
- Topic: Help With script. Topic is solved
- Replies: 24
- Views: 1196
Re: Help With script. Topic is solved
What does that mean? Did you run the script I showed or not? What did it show?
- Yesterday, 14:40
- Forum: Ask for Help (v2)
- Topic: i made the simple code but is make me feel sump
- Replies: 1
- Views: 58
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
- Yesterday, 12:34
- Forum: Ask for Help (v2)
- Topic: tray icons usage Topic is solved
- Replies: 9
- Views: 318
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.
- Yesterday, 10:57
- Forum: Ask for Help (v2)
- Topic: Only a number (RegExMatch?)
- Replies: 9
- Views: 262
Re: Only a number (RegExMatch?)
You can use IsXDigit() to include hex numbers. Would have to check separately for empty strings, as pointed out.
- Yesterday, 10:38
- Forum: Ask for Help (v1)
- Topic: "Send" a "loop" that moves the mouse and clicks
- Replies: 1
- Views: 134
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...
- Yesterday, 06:22
- Forum: Ask for Help (v1)
- Topic: Help ahk search color and generate parametre.ini
- Replies: 5
- Views: 271
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.
- Yesterday, 06:08
- Forum: Ask for Help (v2)
- Topic: tray icons usage Topic is solved
- Replies: 9
- Views: 318
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 ...
- Yesterday, 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: 246
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...
- Yesterday, 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: 42
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.
- Yesterday, 04:50
- Forum: Ask for Help (v1)
- Topic: Script that runs different loop depending on which option is set to true
- Replies: 1
- Views: 122
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.
- 08 May 2024, 19:03
- Forum: Gaming Help (v1)
- Topic: Help With script. Topic is solved
- Replies: 24
- Views: 1196
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...
- 08 May 2024, 17:07
- Forum: Scripts and Functions (v1)
- Topic: DragToScroll - updated
- Replies: 40
- Views: 12688
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.
- 08 May 2024, 08:59
- Forum: Gaming Help (v1)
- Topic: Help With script. Topic is solved
- Replies: 24
- Views: 1196
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...
- 08 May 2024, 08:38
- Forum: Scripts and Functions (v2)
- Topic: Easy Window Dragging KDE style, corrected for multi monitor setup
- Replies: 4
- Views: 563
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