I'm trying to alter the text from a popup type(message) window of an app but I aint't getting any luck with ControlSetText
my code is:
ControlSetText,DirectUIHWND1, newtext
any clues what I may be doing wrong?
alter popup window text
Re: alter popup window text
From what I'm getting in WinSpy , the text in that popup isn't actually detected as text.
So no way to alter it?
So no way to alter it?
Re: alter popup window text
Most likely, yes, if WinSpy won't detect anything then it's often very hard to make AHK interact with it.
Re: alter popup window text
What gives you the idea that your application allows altering it's text (except it's the content of an edit field)??
Re: alter popup window text
obviosly it doesn't seem to do so, but autohotkey seems a land of all kind of possiblieties...
I was able to alter the app's title ,some controls. it stops here it seems
I was able to alter the app's title ,some controls. it stops here it seems
Re: alter popup window text
Would detect image portion and replace it with another image be a good ideea?
Re: alter popup window text
I'm kind of confused, what is the purpose behind all of this? You cannot interact with the client in that manner with ahk so "replacing image" will be adding a gui exactly on the image you want to cover up, after a successful image search.apoklyps3 wrote:Would detect image portion and replace it with another image be a good ideea?
I am your average ahk newbie. Just.. a tat more cute.
Re: alter popup window text
No, that's not a terrible idea; you can embed a GUI into its parent window so well that it's basically impossible for the client to tell that it's a separate GUI. I do that with one of my scripts and it's pretty much seamless if you do it right. If all you want to do is change the message that the user sees, it's a feasible solution.
Basically you just add +ParentHwndOfParent -Caption to the settings of the GUI, and NA to the Gui, Show command, then resize the GUI so it looks right.
Basically you just add +ParentHwndOfParent -Caption to the settings of the GUI, and NA to the Gui, Show command, then resize the GUI so it looks right.
Re: alter popup window text
Will check this solution. Thanks
Who is online
Users browsing this forum: Chunjee, mebelantikjaya, rc76 and 312 guests