Search found 27001 matches

by mikeyww
8 minutes ago
Forum: Ask for Help (v1)
Topic: Pixel searching finding incorrect colour
Replies: 2
Views: 54

Re: Pixel searching finding incorrect colour

Also already here and with example! viewtopic.php?f=76&t=128557&p=569640#p569653

But good to have this additional explanation from gregster.

Some AHK commands use color strings without 0x, but the search commands do require the numeric format as shown.
by mikeyww
13 minutes ago
Forum: Ask for Help (v2)
Topic: Unable to use Func()
Replies: 1
Views: 9

Re: Unable to use Func()

You can do this in v2 but without the Func syntax. Examining the documentation shows the way.

https://www.autohotkey.com/docs/v2/lib/Func.htm#Bind

V1: BoundFunc := Func.Bind(Param1, Param2, ...)
V2: BoundFunc := FuncObj.Bind(Param1, Param2, ...)

Example
by mikeyww
15 minutes ago
Forum: Ask for Help (v2)
Topic: Does a function is a thread?
Replies: 4
Views: 56

Re: Does a function is a thread?

Threads The current thread is defined as the flow of execution invoked by the most recent event; examples include hotkeys, SetTimer subroutines, custom menu items, and GUI events . The current thread can be executing functions within its own subroutine or within other subroutines called by that sub...
by mikeyww
17 minutes ago
Forum: Ask for Help (v2)
Topic: Interruption by another thread
Replies: 1
Views: 17

Re: Interruption by another thread

Hello,

You might want to test your idea through a script, and read the documentation about threads. You can change interruptibility by changing thread priority or using Critical.
by mikeyww
18 minutes ago
Forum: Ask for Help (v2)
Topic: If the game shuts down, shut down OBS too Topic is solved
Replies: 1
Views: 39

Re: If the game shuts down, shut down OBS too Topic is solved

Hello,

In case helpful, there is a specific, separate gaming board that addresses game issues. Enjoy!
by mikeyww
20 minutes ago
Forum: Ask for Help (v2)
Topic: Help! Copy text selected and its URL and paste into a specific format
Replies: 3
Views: 105

Re: Help! Copy text selected and its URL and paste into a specific format

Your goal remains unclear. It sounds like you would like to create a new URL, not the original one, that navigates to a specific area of text on a live Web page. I am not able to accomplish that through a new URL. Others may know the way.
by mikeyww
Today, 09:52
Forum: Ask for Help (v2)
Topic: executing function for each username/password Topic is solved
Replies: 3
Views: 233

Re: executing function for each username/password Topic is solved

That is OK if it works. I also recommend reading the documentation section pertaining to the "Default" parameter.
by mikeyww
Today, 07:01
Forum: Gaming Help (v1)
Topic: Looking for help with a script
Replies: 5
Views: 221

Re: Looking for help with a script

You have the tools here, so with your interest in writing a script, you can start to adjust the code to match your description. The revised script below is a start. #Requires AutoHotkey v1.1.33.11 $r:: SetKeyDelay 25, 25 While GetKeyState("r", "P") { SendEvent r end := A_TickCount + 20000 While GetK...
by mikeyww
Today, 06:07
Forum: Gaming Help (v1)
Topic: Looking for help with a script
Replies: 5
Views: 221

Re: Looking for help with a script

Test in Notepad.

What the script does:
Pressing the r button sends r normally, but after pressing it, for 20 seconds pressing r sends x instead.
If you wish, change the number in the script. The number of milliseconds is shown there on line 4.
by mikeyww
Today, 06:02
Forum: Ask for Help (v2)
Topic: winactivate with DetectHiddenWindows(true)
Replies: 2
Views: 246

Re: winactivate with DetectHiddenWindows(true)

If that works, use it. The windowing functions act upon the topmost matching window (unless noted otherwise). A hidden window might be found in your case. Being more specific with your WinTitle might also prove successful.
by mikeyww
Today, 05:27
Forum: Ask for Help (v2)
Topic: Help! Copy text selected and its URL and paste into a specific format
Replies: 3
Views: 105

Re: Help! Copy text selected and its URL and paste into a specific format

Welcome to this AutoHotkey forum! #Requires AutoHotkey v2.0 urlAndText := '' !v::SendText urlAndText #HotIf WinActive('ahk_exe chrome.exe') !c:: { A_Clipboard := '' Send '^c' If ClipWait(1) { Global urlAndText := "(block'" getUrl() ')[' Trim(A_Clipboard, ' `t`r`n') ']' SoundBeep 1500 } Else MsgBox '...
by mikeyww
Today, 05:04
Forum: Ask for Help (v1)
Topic: Get longest line's character count in multiline string Topic is solved
Replies: 3
Views: 322

Re: Get longest line's character count in multiline string Topic is solved

A v2 example is below. #Requires AutoHotkey v2.0 msg := ' ( Alt+F1 - Command Hint Alt+Q - Bold+Paste F1 - Hello World F2 - This is a much longer text that might make the info box extremely long F4 - Thank you )' MsgBox longestLineCharCount(msg), 'Length of longest line', 'Iconi' longestLineCharCount...
by mikeyww
Yesterday, 21:43
Forum: Ask for Help (v2)
Topic: Cubase 13 screen focus key assign
Replies: 7
Views: 346

Re: Cubase 13 screen focus key assign

You have provided no information about how to distinguish the pages. Here is how to click when tilde is pressed.

Code: Select all

#Requires AutoHotkey v2.0
~::Send '{LButton}'
by mikeyww
Yesterday, 20:25
Forum: Ask for Help (v2)
Topic: Cubase 13 screen focus key assign
Replies: 7
Views: 346

Re: Cubase 13 screen focus key assign

The forum reader cannot see your screen. How do you determine where to click? Is it at specific coordinates? Running Window Spy will show you the WinTitle information as well as the coordinates. Perhaps this information will help you to distinguish the two windows so that you can provide a descripti...
by mikeyww
Yesterday, 20:20
Forum: Ask for Help (v2)
Topic: Open 2 File Explorer windows side by side
Replies: 4
Views: 247

Re: Open 2 File Explorer windows side by side

You can adjust the WinMove function call so that the position matches your preference.

Code: Select all

WinMove monLeft + n * winWidth - 250, monTop, winWidth, winHeight
The call to WinSetAlwaysOnTop can be deleted.
by mikeyww
Yesterday, 19:24
Forum: Gaming Help (v1)
Topic: I need help for my conflict
Replies: 1
Views: 119

Re: I need help for my conflict

Hello, Ideas are below. #Requires AutoHotkey v1.1.33.11 SetKeyDelay 25, 25 LButton Up::SetTimer Clik, Off LButton:: SetTimer Clik, 20 Clik: SendEvent {LButton} Return w:: SendEvent w on := True If GetKeyState("w", "P") SetTimer More, -55 #If on w::Return #If ~w Up:: SetTimer More, Off on := False So...
by mikeyww
Yesterday, 19:02
Forum: Gaming Help (v1)
Topic: Looking for help with a script
Replies: 5
Views: 221

Re: Looking for help with a script

Welcome to this AutoHotkey forum! #Requires AutoHotkey v1.1.33.11 $r:: end := A_TickCount + 20000 SetKeyDelay 25, 25 While GetKeyState("r", "P") SendEvent % A_TickCount < end ? "r" : "x" Return If you are new to AHK, I recommend using its current version, which is v2, instead of this older deprecate...
by mikeyww
Yesterday, 16:59
Forum: Ask for Help (v1)
Topic: Buttons remain pressed when I change profile
Replies: 5
Views: 328

Re: Buttons remain pressed when I change profile

Some games may also require a longer :arrow: press duration.

Due to some of the specialized issues and interests surrounding gaming, this forum has a separate board for gaming.

viewforum.php?f=18
by mikeyww
Yesterday, 16:53
Forum: Ask for Help (v2)
Topic: executing function for each username/password Topic is solved
Replies: 3
Views: 233

Re: executing function for each username/password Topic is solved

Hello, Use :arrow: IniRead to read your INI file. #Requires AutoHotkey v2.0 ini := 'config.ini' sectionNames := IniRead(ini) For section in StrSplit(sectionNames, '`n') { user := IniRead(ini, section, 'username') pwd := IniRead(ini, section, 'password') f(user, pwd) } f(user, pwd) { MsgBox 'User : '...

Go to advanced search