Search found 26988 matches

by mikeyww
Yesterday, 21:43
Forum: Ask for Help (v2)
Topic: Cubase 13 screen focus key assign
Replies: 6
Views: 233

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

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

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

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

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

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: 1
Views: 175

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 : '...
by mikeyww
Yesterday, 15:39
Forum: Ask for Help (v2)
Topic: Cubase 13 screen focus key assign
Replies: 6
Views: 233

Re: Cubase 13 screen focus key assign

Welcome to this AutoHotkey forum!

I think you will want to provide a detailed description of exactly how such actions would occur as you interact with your mouse or keyboard. The script would then be coded to replicate those actions.
by mikeyww
Yesterday, 15:33
Forum: Ask for Help (v1)
Topic: Buttons remain pressed when I change profile
Replies: 5
Views: 293

Re: Buttons remain pressed when I change profile

I cannot force the script to work in your game. You could try different hotkeys, or run the script as admin. You could add MsgBox to determine whether you are able to trigger your various hotkeys. If MsgBox works, then the next test could be a one-line script that checks to see whether you can use a...
by mikeyww
Yesterday, 12:03
Forum: Ask for Help (v1)
Topic: Buttons remain pressed when I change profile
Replies: 5
Views: 293

Re: Buttons remain pressed when I change profile

Welcome to this AutoHotkey forum! A few ideas are below. #Requires AutoHotkey v1.1.33.11 ~*CapsLock Up::SoundBeep 1000 + 500 * GetKeyState("CapsLock", "T") #If GetKeyState("CapsLock", "T") LShift:: RShift:: SetKeyDelay 25 While GetKeyState("Shift", "P") & GetKeyState("CapsLock", "T") SendEvent {Blin...
by mikeyww
Yesterday, 11:35
Forum: Ask for Help (v2)
Topic: Open 2 File Explorer windows side by side
Replies: 4
Views: 185

Re: Open 2 File Explorer windows side by side

#Requires AutoHotkey v2.0 dir := [A_MyDocuments, StrReplace(A_MyDocuments, 'Documents', 'Downloads')] MonitorGetWorkArea(, &monLeft, &monTop, &monRight, &monBottom) monWidth := monRight - monLeft + 1 monHeight := monBottom - monTop + 1 winWidth := monWidth * 1 / 3 winHeight := monHeight * 2 / 3 win...
by mikeyww
27 Apr 2024, 19:19
Forum: Ask for Help (v2)
Topic: Manipulate PDF
Replies: 1
Views: 136

Re: Manipulate PDF

Hello,

You might want to search the forum for some of the existing posts about PDF that show techniques. You can also use other command-line tools such as xpdf and pdftk.
by mikeyww
27 Apr 2024, 19:11
Forum: Gaming Help (v1)
Topic: I need a W run macro please help...
Replies: 1
Views: 103

Re: I need a W run macro please help...

You did it. Check :arrow: KeyHistory if needed.
by mikeyww
27 Apr 2024, 16:03
Forum: Ask for Help (v2)
Topic: Simple script to swap left control and windows keys
Replies: 1
Views: 55

Re: Simple script to swap left control and windows keys

My approach would be to start with a short, simple script such as the following. See if it works. If it does work, add one more hotkey, and re-test. Test iteratively. Check :arrow: KeyHistory if stuck. Close other scripts and keyboard utilities first. #Requires AutoHotkey v1.1.33.11 LWin::LCtrl LCtr...
by mikeyww
27 Apr 2024, 14:39
Forum: Ask for Help (v2)
Topic: combine more than one switch case? Topic is solved
Replies: 5
Views: 253

Re: combine more than one switch case? Topic is solved

Each case may list up to 20 values. Each value must be an expression , but can be a simple one such as a literal number, quoted string or variable. Source: Switch - Syntax & Usage | AutoHotkey v2 Any expression is fine. I'm puzzled about why you want to ask this question instead of testing your ide...
by mikeyww
27 Apr 2024, 12:24
Forum: Ask for Help (v2)
Topic: Looking for a script to close a specific program and then put PC to sleep
Replies: 1
Views: 74

Re: Looking for a script to close a specific program and then put PC to sleep

Code: Select all

#Requires AutoHotkey v2.0
winTitle       := 'ahk_exe Notepad.exe'
closeAfterMins := 60
SoundBeep 2500
WinWait winTitle
SoundBeep 1500
If !WinWaitClose(,, 60 * closeAfterMins) {
 WinClose
 SoundBeep 1000
 DllCall('PowrProf\SetSuspendState', 'Int', 0, 'Int', 0, 'Int', 0) ; Sleep computer
}
ExitApp
by mikeyww
27 Apr 2024, 10:29
Forum: Ask for Help (v2)
Topic: Invalid callback function When convert v1 script into v2
Replies: 2
Views: 90

Re: Invalid callback function When convert v1 script into v2

One example is below. #Requires AutoHotkey v2.0 Persistent DllCall('RegisterShellHookWindow', 'UInt', A_ScriptHwnd) OnMessage DllCall('RegisterWindowMessage', 'Str', 'SHELLHOOK'), shellMessage Return shellMessage(wParam, lParam, msg, hWnd) { Static HSHELL_WINDOWCREATED := 1 , WS_EX_TOPMOST := 262144...
by mikeyww
27 Apr 2024, 06:13
Forum: Ask for Help (v2)
Topic: AHK can't recognize paths with space properly. Run("C:\Users\..\code.exe" "C:\Users\hello world.ahk) will open two files
Replies: 3
Views: 125

Re: AHK can't recognize paths with space properly. Run("C:\Users\..\code.exe" "C:\Users\hello world.ahk) will open two f

Hello, Paths with spaces must be quoted strings (as parameters), but you have passed unquoted strings as one parameter to your Run function. A MsgBox will help you to see the idea, as follows. #Requires AutoHotkey v2.0 F1:: { Static editor := EnvGet('LOCALAPPDATA') '\Programs\Microsoft VS Code\Code....
by mikeyww
26 Apr 2024, 15:57
Forum: Ask for Help (v2)
Topic: Cycling through an array of functions...
Replies: 1
Views: 90

Re: Cycling through an array of functions...

Hello,

Detect single, double, and triple-presses of a hotkey

If you want to preserve the value of a local variable from one function call to the next, you will probably want to use a static variable.

Cycling through an array

Go to advanced search