Search found 78 matches

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: 5
Views: 331

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: 5
Views: 331

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: 5
Views: 331

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: 5
Views: 331

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, 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 in my steam libr...
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: 104

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: 22
Views: 2541

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

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

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

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

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

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: 5
Views: 2661

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

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

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

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

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
}
by zotune
09 Feb 2017, 10:21
Forum: Ask For Help
Topic: Ping4 - Question
Replies: 12
Views: 869

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

jNizM: I just want to check if a remote TCP port is open. Here's my current (crappy) script: CheckPort(Host,Port) { ; DllCall("AllocConsole") ; WinHide % "ahk_id " DllCall("GetConsoleWindow", "ptr") Loop, Parse, % ComObjCreate("WScript.Shell").Exec("Addons\Software\SysinternalsSuite\psping.exe -i 0 ...
by zotune
09 Feb 2017, 09:51
Forum: Ask For Help
Topic: Ping4 - Question
Replies: 12
Views: 869

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

Thank you. That would be very useful
by zotune
09 Feb 2017, 09:43
Forum: Ask For Help
Topic: Ping4 - Question
Replies: 12
Views: 869

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

jNizM: That's great. Thank you. But, how can I pass a remote IP/Host:Port to this and verify if it is open?
by zotune
09 Feb 2017, 08:39
Forum: Ask For Help
Topic: Ping4 - Question
Replies: 12
Views: 869

Ping4 - Question

Can this script be used to check if a TCP port is open?

Go to advanced search