01-02-2014, 01:40 PM
Macro Macro2190
for current process
Macro Macro2191
int pid
GetWindowThreadProcessId(win("" "Notepad") &pid)
;;or
;pid=ProcessNameToId("notepad") ;;slower, use with windowless processes
if(!pid) end "failed to get process id"
__Handle hp=OpenProcess(PROCESS_QUERY_X_INFORMATION 0 pid)
if(!hp) end _s.dllerror
out GetGuiResources(hp GR_GDIOBJECTS)
Macro Macro2191