styling child window

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
colt
Posts: 291
Joined: 04 Aug 2014, 23:12
Location: Portland Oregon

styling child window

12 Oct 2021, 10:21

I am using a program that has child windows inside its parent window. It behaves just like the excel macro editor.
Is it possible to style the child window in a way where it will pop out of its parent window?

problem.JPG
problem.JPG (47.69 KiB) Viewed 275 times
colt
Posts: 291
Joined: 04 Aug 2014, 23:12
Location: Portland Oregon

Re: styling child window

12 Oct 2021, 11:14

This code successfully ripped the mdi child from the parent. I was able to drag the parent onto a different monitor and could interact with the child. A soon a I activated the parent again, it crashed.

Code: Select all

#NoEnv
#SingleInstance Force
SetBatchLines -1

myHandle := WinExist()

f7:: ;select mdi child, will store hwnd id
	MouseGetPos , , , , id, 2
	tooltip % id
return

f8:: ;hihack with this window
	DllCall("SetParent", "uint", id, "uint", myHandle )	
return
colt
Posts: 291
Joined: 04 Aug 2014, 23:12
Location: Portland Oregon

Re: styling child window

18 Oct 2021, 09:09

Could ahk be used to redirect all messages between the original parent and child once it takes ownership? How would I discover which messages to transfer with onMessage if I do not know the message number?

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: wpulford and 415 guests