Return value from GUI exe app (winforms/ Wpf) like CMD app

Get help with using AutoHotkey (v2 or newer) and its commands and hotkeys
User avatar
xMaxrayx
Posts: 168
Joined: 06 Dec 2022, 02:56
Contact:

Return value from GUI exe app (winforms/ Wpf) like CMD app

16 Apr 2024, 06:47

Hi sorry if this question is stupid but I noticed you can return a valve from CMD app to AHK like with Run() and Runwait() mothed.

Can I do the same with c# winforms/ c# Wpf GUI app? Or this stupid.

like you can do this with IP config

Code: Select all

MsgBox(ComObject("WScript.Shell").Exec("cmd.exe /q /c ipconfig").StdOut.ReadAll())
should I go learn DLL/com object?
-----------------------ヾ(•ω•`)o------------------------------
https://github.com/xmaxrayx/

Return to “Ask for Help (v2)”

Who is online

Users browsing this forum: No registered users and 59 guests