Hoping someone can make this code work while minimized or more or less show me how to make it work. I'm completely new to coding and i scraped this together from some other scrips i've downloaded. It seems to do what i want it to do but it only works on the active screen.
#MaxThreadsPerHotkey 3
Loop
{
Home::
if KeepAltzRunning
{
KeepAltzRunning := false
return
}
; Otherwise:
KeepAltzRunning := true
Loop
{
Send,2
Sleep 200
Send,3
Sleep 250
Send,4
Sleep 250
Send,5
Sleep 250
Send,r
Sleep 1500
if not KeepAltzRunning
break
}
KeepAltzRunning := false
Return
}
Run Script While Minimized
- PipeDreams
- Posts: 165
- Joined: 19 Dec 2015, 00:20
Re: Run Script While Minimized
Try using ControlSend instead of send.
For Example:
would look like:
Just change the cmd.exe to the game you're plating
Here's working example:
For Example:
Code: Select all
Send,2
would look like:
Code: Select all
SetTitleMatchMode, 2 ;Plce this line at the top of your script
ControlSend, , 2, ahk_exe cmd.exe ;Send directly to a command prompt window.
Here's working example:
Code: Select all
#SingleInstance Force
SetTitleMatchMode, 2
Run, cmd.exe
a::
ControlSend, , abc, ahk_exe cmd.exe
Return
~Esc::ExitApp
Some stuff I've done:
Secret of Mana Remake Support Caster Spell Leveling Bot
PixelSearch with visual cue
PixelGetPrimaryColor & PixelSearchPrimaryColor RGB
PixelSearch & PixelGetColor with visual cues & multiple clipboard output tool.
Logitech G930 Power Saver Off/On
Windows Properties Performance Profile Switcher
Secret of Mana Remake Support Caster Spell Leveling Bot
PixelSearch with visual cue
PixelGetPrimaryColor & PixelSearchPrimaryColor RGB
PixelSearch & PixelGetColor with visual cues & multiple clipboard output tool.
Logitech G930 Power Saver Off/On
Windows Properties Performance Profile Switcher
Who is online
Users browsing this forum: Shoobis and 107 guests