Search found 27146 matches

by mikeyww
12 May 2024, 09:15
Forum: Ask for Help (v1)
Topic: [ahk v1] about '::' hotkey with 'send key' Topic is solved
Replies: 16
Views: 1137

Re: [ahk v1] about '::' hotkey with 'send key' Topic is solved

That decision is yours, of course. The v2 forum can help with questions and problems that you may encounter. Since v2 is newer, there are fewer posts about it, and somewhat fewer script libraries, though the numbers are growing quickly. Quickly counting the most recent posts made by thread on 11 May...
by mikeyww
12 May 2024, 08:16
Forum: Ask for Help (v1)
Topic: [ahk v1] about '::' hotkey with 'send key' Topic is solved
Replies: 16
Views: 1137

Re: [ahk v1] about '::' hotkey with 'send key' Topic is solved

I'm not the authoritative source, but I don't think you'll notice any decreases in performance, and you may notice a variety of improvements with v2. Changes are summarized here. https://www.autohotkey.com/docs/v2/v2-changes.htm I did note that some lines with comma-separated statements might be slo...
by mikeyww
12 May 2024, 07:16
Forum: Ask for Help (v1)
Topic: [ahk v1] about '::' hotkey with 'send key' Topic is solved
Replies: 16
Views: 1137

Re: [ahk v1] about '::' hotkey with 'send key' Topic is solved

OK. In v2, aside from labeled subroutines used with Goto or loops, code outside your functions will execute only when the script is first run. You do not need a variable called "Suspended" since AHK has a built-in variable for this status.
by mikeyww
12 May 2024, 05:30
Forum: Ask for Help (v1)
Topic: [ahk v1] about '::' hotkey with 'send key' Topic is solved
Replies: 16
Views: 1137

Re: [ahk v1] about '::' hotkey with 'send key' Topic is solved

What the script does: Configure the RButton as the q-key, while also enabling it to transmit a "c" upon being pressed. If you want to send Q down and up upon the RButton press instead of having RButton act as Q , then you do not need the key-up hotkey. On the other hand, to keep what you have and ad...
by mikeyww
11 May 2024, 22:25
Forum: Ask for Help (v1)
Topic: I have a script, but i need this script have a "on/off button"
Replies: 1
Views: 264

Re: I have a script, but i need this script have a "on/off button"

Welcome to this AutoHotkey forum! #Requires AutoHotkey v1.1.33.11 F3:: on := !on SoundBeep 1000 + 500 * on Return #If on ~LButton:: KeyWait LButton, T.2 If ErrorLevel While GetKeyState("LButton", "P") { Click Sleep 25 } Return #If If you are new to AHK, I recommend using its current version, which i...
by mikeyww
11 May 2024, 21:52
Forum: Ask for Help (v2)
Topic: works in IDE, won't work “in the field”
Replies: 4
Views: 240

Re: works in IDE, won't work “in the field”

Hello,

From what you described, you are running a script other than the script that you have posted. I recommend posting the script that demonstrates the problem that you are experiencing.
by mikeyww
11 May 2024, 21:22
Forum: Ask for Help (v1)
Topic: [ahk v1] about '::' hotkey with 'send key' Topic is solved
Replies: 16
Views: 1137

Re: [ahk v1] about '::' hotkey with 'send key' Topic is solved

Just another idea here.

Code: Select all

#Requires AutoHotkey v2.0
*RButton::   Send('{Blind}{q DownR}'), Send('c')
*RButton Up::Send('{Blind}{q up}')
by mikeyww
11 May 2024, 13:20
Forum: Ask for Help (v2)
Topic: WinExist can't detect a running script. Topic is solved
Replies: 1
Views: 239

Re: WinExist can't detect a running script. Topic is solved

The following worked here. If your script is in a different directory, it will fail. Finding out is easy: open the script's window. This does not require admin privileges, so test without it. Learning the value returned by WinExist does not require any If statement. #Requires AutoHotkey v2.0 F1:: { ...
by mikeyww
11 May 2024, 11:48
Forum: Ask for Help (v2)
Topic: Re: WinWaitActive( ... ) for all windows with any title but no without title
Replies: 2
Views: 95

Re: Re: WinWaitActive( ... ) for all windows with any title but no without title

Code: Select all

#Requires AutoHotkey v2.0
SetTitleMatchMode 'RegEx'
WinWaitActive '.'
MsgBox WinGetTitle(), 'Window title', 'Iconi'
by mikeyww
11 May 2024, 11:20
Forum: Ask for Help (v2)
Topic: WinWaitActive( ... ) for all windows begins with "h" but no other
Replies: 3
Views: 123

Re: WinWaitActive( ... ) for all windows begins with "h" but no other

Code: Select all

#Requires AutoHotkey v2.0
SetTitleMatchMode 'RegEx'
WinWaitActive 'i)^h'
MsgBox WinGetTitle('A'), 'Status', 'Iconi'
by mikeyww
11 May 2024, 10:42
Forum: Ask for Help (v2)
Topic: how to store screenshot in a variable, then paste it later?
Replies: 4
Views: 137

Re: how to store screenshot in a variable, then paste it later?

More: https://www.autohotkey.com/boards/viewtopic.php?f=83&t=115622#p515378 Or: #Requires AutoHotkey v2.0 ; https://github.com/buliasz/AHKv2-Gdip #Include d:\Q\vis2\lib\Gdip_AllV2.ahk pToken := Gdip_Startup() pos := '0|0|' A_ScreenWidth '|' A_ScreenHeight OnExit done F2:: { Global pBitmap := Gdip_Bi...
by mikeyww
11 May 2024, 09:33
Forum: Ask for Help (v1)
Topic: Menu Exit
Replies: 5
Views: 355

Re: Menu Exit

ChatGPT output is not permitted on this forum.
by mikeyww
10 May 2024, 17:26
Forum: Gaming Help (v1)
Topic: it happen the revere! Topic is solved
Replies: 10
Views: 721

Re: it happen the revere! Topic is solved

To avoid activating the GUI, NoActivate would need to be used every time the GUI is shown.
by mikeyww
10 May 2024, 15:03
Forum: Gaming Help (v1)
Topic: it happen the revere! Topic is solved
Replies: 10
Views: 721

Re: it happen the revere! Topic is solved

Just my suggestion, but I recommend that instead of changing three different things, just make one change at a time. If you test my first script without changing it, you can determine whether the Shift + click works. After it works, the next change can be pursued. What the script does: I want it to ...
by mikeyww
10 May 2024, 13:56
Forum: Ask for Help (v1)
Topic: help making an app the active window Topic is solved
Replies: 1
Views: 417

Re: help making an app the active window Topic is solved

Adding the window class may help. Your Sleep probably does nothing to enhance your script. In addition, indentation will not affect whether an AHK command executes. #Requires AutoHotkey v1.1.33.11 #If WinExist("ahk_class Chrome_WidgetWin_1 ahk_exe Joplin.exe") ^j:: WinActivate SoundBeep 1500 Return ...
by mikeyww
10 May 2024, 13:50
Forum: Gaming Help (v1)
Topic: it happen the revere! Topic is solved
Replies: 10
Views: 721

Re: it happen the revere! Topic is solved

Can also use A_IsSuspended if you like.

Code: Select all

Browser_Home::
Suspend
If A_IsSuspended
     Gui Hide
Else Gui Show
Return

LButton::
While GetKeyState("LButton", "P")
 Send {LButton}
Return
by mikeyww
10 May 2024, 13:42
Forum: Gaming Help (v1)
Topic: it happen the revere! Topic is solved
Replies: 10
Views: 721

Re: it happen the revere! Topic is solved

I would focus on fixing the first problem first. You can know whether your script is suspended via the "S" icon in the system tray. In any case, you could test the script that I posted to see whether it works.
by mikeyww
10 May 2024, 08:31
Forum: Ask for Help (v1)
Topic: Menu Exit
Replies: 5
Views: 355

Re: Menu Exit

Welcome to this AutoHotkey forum! Does the script work? Is it a ChatGPT special, or came from elsewhere? You could test whether SetTimer would work to reload the script when the menu is displayed. I did not test it. The final code block would never execute since it follows a Return command, right? T...

Go to advanced search