This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmd_scriptCMD() | |
{ | |
for process in ComObjGet("winmgmts:").ExecQuery( "Select * from Win32_Process where ProcessId=" DllCall( "GetCurrentProcessId" ) ) | |
commandLine := process[ "commandLine" ] | |
SplitPath, a_scriptfullPath, scriptName | |
script_name_start_pos := instr( commandLine, scriptName ) | |
script_name_length := strLen( scriptName ) | |
isFirstCharQuote := subStr( commandLine, 1, 1 ) = """" ? 1 : 0 | |
commandLine := trim( subStr( commandLine, script_name_start_pos+script_name_length+isFirstCharQuote ) ) | |
return commandLine |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Credit to Wanker | |
author : Chef | |
link : http://ahkscript.org/boards/memberlist.php?mode=viewprofile&u=55319 | |
date : 14 January 2014 | |
description | |
Process-related functions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#noEnv | |
#persistent | |
#singleInstance force | |
detectHiddenWindows, on | |
setWorkingDir %a_scriptDir% | |
/* | |
Created by Sean | |
http://www.autohotkey.com/board/topic/15918-extract-informations-about-trayicons/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
mwa := monitorWorkingArea() | |
msgBox, % mwa.x " " mwa.y " " mwa.w " " mwa.h | |
exitApp | |
*/ | |
monitorWorkingArea() | |
{ | |
/* | |
author : Chef |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Credit to Wanker | |
author : Chef | |
link : http://ahkscript.org/boards/memberlist.php?mode=viewprofile&u=55319 | |
date : 14 January 2014 | |
description | |
process-related functions |