Search found 82 matches

by zotune
27 Aug 2019, 16:03
Forum: Scripts and Functions
Topic: Autoswitch - Automatically sets default audio device/primary monitor when games/apps are started
Replies: 13
Views: 2253

Re: Autoswitch - Automatically sets default audio device/primary monitor when games/apps are started

CHANGELOG
v0.14 alpha - 28 Aug 19:
- Feature: Added option to reload graphics card driver on switch (sometimes helps with HDR or display problems when switching)

v0.13 alpha - 27 Aug 19:
- Fix: Convert forwardslash '/' to backwardsslash '\' (uplay uses this)
by zotune
25 Feb 2019, 12:12
Forum: Scripts and Functions
Topic: Autoswitch - Automatically sets default audio device/primary monitor when games/apps are started
Replies: 13
Views: 2253

Re: Autoswitch - Automatically sets default audio device/primary monitor when games/apps are started

awesome! :)

you can close it to tray (bottom right)

I think you can create a startup shortcut and tell it to run minimized:
https://i.imgur.com/7bMupiz.png

if not I can add a feature to remember to startup as tray (if tray was last state). just gotta fix my computer first (ssd is breaking down).
by zotune
06 Feb 2019, 11:43
Forum: Scripts and Functions
Topic: Autoswitch - Automatically sets default audio device/primary monitor when games/apps are started
Replies: 13
Views: 2253

Re: Autoswitch - Automatically sets default audio device/primary monitor when games/apps are started

A little bit. It uses about 1% for me. Most games don't use 100% cpu, so it's worth it for me, but I'm happy to hear suggestions on how to optimize the code. You can comment out processmatch lines in the code if you only use 'if winexist' boolean. ;Processmatch for process in ComObjGet("winmgmts:")....
by zotune
06 Feb 2019, 11:20
Forum: Scripts and Functions
Topic: Autoswitch - Automatically sets default audio device/primary monitor when games/apps are started
Replies: 13
Views: 2253

Re: Autoswitch - Automatically sets default audio device/primary monitor when games/apps are started

That is correct, using CommandLine in Win32_Process class.
InStr has to be = 1, so you can type any folder containing games you want to appear on your TV (from any launcher).
It also supports AutoHotkeys 'if winexist' boolean (ahk_*). Steam Big Picture example included above.
by zotune
05 Feb 2019, 13:56
Forum: Scripts and Functions
Topic: Autoswitch - Automatically sets default audio device/primary monitor when games/apps are started
Replies: 13
Views: 2253

Re: Autoswitch - App that triggers when games are launched: Automatically sets default audio device/primary monitor

CHANGELOG
v0.12 alpha - 5 Feb 19:
- Feature: Turn off/on night light
- Fix: Do not activate GUI when updating titlebar (messes with Steam Big Picture focus)

Image
by zotune
29 Jan 2019, 14:24
Forum: Scripts and Functions
Topic: Autoswitch - Automatically sets default audio device/primary monitor when games/apps are started
Replies: 13
Views: 2253

Autoswitch - Automatically sets default audio device/primary monitor when games/apps are started

AUTOSWITCH https://i.imgur.com/9NSH3qi.png Based on if a process (command line) is running or not/window existing, Autoswitch can: Automatically set default audio playback device Automatically set primary monitor Automatically black out unused screens I made this so I could open Metal Gear Solid V ...
by zotune
21 Dec 2018, 07:54
Forum: Ask For Help
Topic: Dump process based on PID (must also work with services)
Replies: 0
Views: 310

Dump process based on PID (must also work with services)

Hi, anyone know how to get this script working (or MiniDumpWriteDump)?: https://autohotkey.com/boards/viewtopic.php?p=22226#p22226 https://docs.microsoft.com/en-us/windows/desktop/api/minidumpapiset/nf-minidumpapiset-minidumpwritedump I am currently using procdump to do this, but it seems to be bloc...
by zotune
12 Nov 2018, 15:41
Forum: Scripts and Functions
Topic: [Class] eAutocomplete - Custom word completion for (Rich)Edit controls
Replies: 25
Views: 5286

Re: [Class] eAutocomplete - Custom word completion for (Rich)Edit controls

Great work!

Any chance this can be modified to work with any/specific windows (window hwnd ahk_id)?
by zotune
14 Oct 2018, 07:00
Forum: Ask For Help
Topic: Splitpath with command line parameters
Replies: 2
Views: 521

Re: Splitpath with command line parameters

Thanks. I ended up with this: SplitPath(ProcessPath="",byref Directory="",byref Process="",byref Parameters="",byref Extension="",byref ProcessNoExt="") { Static SplitPath if !IsObject(SplitPath) SplitPath:={} if IsObject(SplitPath[ProcessPath]) ;already indexed { Directory:=SplitPath[ProcessPath,"D...
by zotune
14 Oct 2018, 05:03
Forum: Ask For Help
Topic: Convert .NET DateTime ticks to AHK YYYYMMDDHH24MISS timestamp
Replies: 10
Views: 3204

Re: Convert .NET DateTime ticks to AHK YYYYMMDDHH24MISS timestamp

@just me: This works great. Sorry for late reply. Thanks so much :)
by zotune
27 Jul 2018, 04:59
Forum: Ask For Help
Topic: Splitpath with command line parameters
Replies: 2
Views: 521

Splitpath with command line parameters

Hi, Is there a splitpath function that supports command line parameters? I tried to make my own but it fails on certain paths. ;Working = C:\Program Files\Test\Test.exe -title someprogram ;Not working = C:\Program Files (x86)\Test\Test\Test.exe -inifile "C:\ProgramData\Test\Test\Config\Test.ini" Spl...
by zotune
05 May 2018, 05:03
Forum: Bug Reports
Topic: FileGetShortcut: Wrong 'OutTarget' for 64 bit program files
Replies: 6
Views: 1694

Re: FileGetShortcut: Wrong 'OutTarget' for 64 bit program files

Thanks for the workaround @malcev.

And thanks for all the hard work you do @lexikos
by zotune
30 Apr 2018, 10:24
Forum: Bug Reports
Topic: FileGetShortcut: Wrong 'OutTarget' for 64 bit program files
Replies: 6
Views: 1694

FileGetShortcut: Wrong 'OutTarget' for 64 bit program files

;requires a 64 bit windows system ;1 - create .lnk shortcut 'C:\test.lnk' ;2 - set target to an executable in 'C:\Program Files', for example: 'C:\Program Files\test.exe' ;3 - run this script: FileGetShortcut, c:\test.lnk, OutTarget, OutDir msgbox % OutTarget ;wrong 'C:\Program Files (x86)\test.exe...
by zotune
04 Oct 2017, 18:27
Forum: Scripts and Functions
Topic: Socket.ahk
Replies: 9
Views: 5279

Re: Socket.ahk

Thanks for the 'socket.ahk' script GeekDude. It's beyond awesome, and a great improvement upon the original.

Do you think you could make an example where you copy a file from client to server? I have yet to figure it out.
by zotune
27 Feb 2017, 18:34
Forum: Ask For Help
Topic: Retrieve all ID/HWNDs for a specific process with parameters
Replies: 0
Views: 1115

Retrieve all ID/HWNDs for a specific process with parameters

I'm trying to list all open windows for a specific process with parameters. Can anyone help me out with this code? Much appreciated. :) ProcessList() { ;This is the correct order for when the apps were started PL := new ObjectOrder() for process in ComObjGet("winmgmts:").ExecQuery("Select * from Win...
by zotune
10 Feb 2017, 07:42
Forum: Ask For Help
Topic: Ping4 - Question
Replies: 12
Views: 1788

Re: Ping4 - Question

jNizM: I'm not trying to list local ports that are open. I am trying to 'ping' a remote IP with Port to verify if it is open. Kind of like 'telnet IP PORT' in cmd. This way I can see if a remote machine is running a certain program.
by zotune
10 Feb 2017, 06:03
Forum: Ask For Help
Topic: Ping4 - Question
Replies: 12
Views: 1788

Re: Ping4 - IPv4 ping function (2015-07-16)

Not sure if there was a misunderstanding here
by zotune
09 Feb 2017, 10:45
Forum: Ask For Help
Topic: Ping4 - Question
Replies: 12
Views: 1788

Re: Ping4 - IPv4 ping function (2015-07-16)

Thanks, but this port is open and does not return anything

Code: Select all

RemoteIP   := "10.211.114.9"
RemotePort := 6100

for i, v in GetTcpTable()
{
    if (RemoteIP = v.RemoteIP) && (RemotePort = v.RemotePort)
        MsgBox % v.State
}

Go to advanced search