alter popup window text

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
apoklyps3
Posts: 116
Joined: 13 Feb 2016, 13:20

alter popup window text

21 Mar 2018, 05:10

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?
apoklyps3
Posts: 116
Joined: 13 Feb 2016, 13:20

Re: alter popup window text

21 Mar 2018, 06:00

From what I'm getting in WinSpy , the text in that popup isn't actually detected as text.
So no way to alter it?
MaxAstro
Posts: 557
Joined: 05 Oct 2016, 13:00

Re: alter popup window text

21 Mar 2018, 08:43

Most likely, yes, if WinSpy won't detect anything then it's often very hard to make AHK interact with it.
BoBo
Posts: 6564
Joined: 13 May 2014, 17:15

Re: alter popup window text

21 Mar 2018, 11:41

What gives you the idea that your application allows altering it's text (except it's the content of an edit field)??
apoklyps3
Posts: 116
Joined: 13 Feb 2016, 13:20

Re: alter popup window text

21 Mar 2018, 12:51

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
apoklyps3
Posts: 116
Joined: 13 Feb 2016, 13:20

Re: alter popup window text

22 Mar 2018, 07:22

Would detect image portion and replace it with another image be a good ideea?
User avatar
Nwb
Posts: 444
Joined: 29 Nov 2016, 08:56

Re: alter popup window text

22 Mar 2018, 08:37

apoklyps3 wrote:Would detect image portion and replace it with another image be a good ideea?
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.
I am your average ahk newbie. Just.. a tat more cute. ;)
MaxAstro
Posts: 557
Joined: 05 Oct 2016, 13:00

Re: alter popup window text

22 Mar 2018, 11:39

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.
apoklyps3
Posts: 116
Joined: 13 Feb 2016, 13:20

Re: alter popup window text

22 Mar 2018, 16:48

Will check this solution. Thanks

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: aitaixy, Anput, dangoscrub, Google [Bot], joedf, Nerafius and 144 guests