Search found 27009 matches

by mikeyww
36 minutes ago
Forum: Ask for Help (v2)
Topic: script help
Replies: 1
Views: 38

Re: script help

Welcome to this AutoHotkey forum!

Code: Select all

#Requires AutoHotkey v2.0

z:: {
 SetKeyDelay 50
 While GetKeyState(ThisHotkey, "P")
  SendEvent 'f'
}
by mikeyww
Today, 16:55
Forum: Ask for Help (v2)
Topic: Open Chrome tab in Firefox?
Replies: 1
Views: 140

Re: Open Chrome tab in Firefox?

#Requires AutoHotkey v2.0 #HotIf WinActive('ahk_exe chrome.exe') ^F5::Run('firefox.exe ' getUrl()), SoundBeep(1500) #HotIf getUrl() { ; Get URL of the active Web browser window ; Adapted: https://gist.github.com/7cce378c9dfdaf733cb3ca6df345b140 Static TreeScope_Descendants := 4 , UIA_ControlTypePro...
by mikeyww
Today, 14:57
Forum: Ask for Help (v2)
Topic: Send vs SendText vs SendInput for text input?
Replies: 1
Views: 126

Re: Send vs SendText vs SendInput for text input?

Hello, You can use your script to determine which approach is the fastest, because a script can compute elapsed time . SendInput is the default Send mode. If you are sending only text or using syntax otherwise recognized by text mode , then text mode may be a good choice. What your target program, o...
by mikeyww
Today, 12:08
Forum: Ask for Help (v2)
Topic: If the game shuts down, shut down OBS too
Replies: 5
Views: 225

Re: If the game shuts down, shut down OBS too

Others can reply to your new post on the other board. I recommend that you provide a description of what game you are using, how you run the game (e.g., browser tab vs. other desktop program), and how you close or end the game.
by mikeyww
Today, 11:43
Forum: Ask for Help (v2)
Topic: Help! Copy text selected and its URL and paste into a specific format
Replies: 6
Views: 238

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

If you mean that you want to get the URL from an HTML hyperlink that shows other text instead of the URL, I believe that some other posts have addressed this. I have not tried to do it.
by mikeyww
Today, 11:37
Forum: Ask for Help (v2)
Topic: Interruption by another thread
Replies: 3
Views: 131

Re: Interruption by another thread

Without Critical, a hotkey can interrupt a hotkey's subroutine (for example).

Write a test script so that you can see it in action. The time required is about 2 minutes.
by mikeyww
Today, 11:31
Forum: Ask for Help (v2)
Topic: Does a function is a thread?
Replies: 6
Views: 200

Re: Does a function is a thread?

I agree that the description is vague. I have relied on the specific examples provided and never encountered anything unexpected, different, or additional. Others may be able to provide greater clarity. I do think of these as events , but a function is not an event. An event is something that happen...
by mikeyww
Today, 11:16
Forum: Ask for Help (v1)
Topic: Pixel searching finding incorrect colour
Replies: 2
Views: 149

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
Today, 11:12
Forum: Ask for Help (v2)
Topic: Unable to use Func() Topic is solved
Replies: 2
Views: 142

Re: Unable to use Func() Topic is solved

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
Today, 11:10
Forum: Ask for Help (v2)
Topic: Does a function is a thread?
Replies: 6
Views: 200

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
Today, 11:08
Forum: Ask for Help (v2)
Topic: Interruption by another thread
Replies: 3
Views: 131

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
Today, 11:07
Forum: Ask for Help (v2)
Topic: If the game shuts down, shut down OBS too
Replies: 5
Views: 225

Re: If the game shuts down, shut down OBS too

Hello,

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

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

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

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

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

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: 6
Views: 238

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

Go to advanced search