Jump to content
Macro Express Forums

Window Title Character Limit?


Recommended Posts

Can you capture the title of the window by another means? If we can I can make a simple app that used that text which anyone can test with. 

 

Link to comment
Share on other sites

image.jpeg.f56906601ecb9401a09f0308898e550c.jpeg

I changed the window title of my sandbox app to that from the OPs sample and scripted MEP to get the topmost window title and it works fine. But it still could be that the OP typed in the text as opposed to capturing it losing something like a Unicode character. 

Link to comment
Share on other sites

Basically, I only have 1 place that will populate the ID and the window title is (Exact # of characters, spacing, as below):

 

Full title: ABC Processing Database ABCFrog User ZXCZX General ID 9876543

 

 

 

When I click the "..." in window title, Macro picks up: "ABC Processing Database ABCFrog User ZXCZX General ID 9 - \\ Remote" but for example, this thread in Google Chrome, picks up way more characters of the window title. 

 

I am guessing it is an application limitation of the software I am using for work (and not MEP).

SS.png

Link to comment
Share on other sites

Remote... This sounds like it's a virtualized app like VMWare's Thinapp. Like a VM (virtual machine) but for an app. If so, you're not really in the app. This is a program that essentially gives you a window into an app that's running on a server someplace, typically the cloud. Is this the case? You might want to look and see what the name of the actual process is with Process Explorer or Task Manager.  Is this the case?

Link to comment
Share on other sites

For testing purposes, set aside window title activation.

 

What happens if you create a hotkey-activated macro that captures the window title and assigns the value to a string variable?

 

Is the resulting string variable the truncated version of the window title, or the full window title?

Link to comment
Share on other sites

Since it's a virtual window I don't think what you think is the title is that for the system. I'm guessing MEP is seeing the correct window title which is hidden. The window title you're seeing is the one runnon on the virtual server. If that's the case, then you will not be able to access that string of characters. Activation using that code will not work. 

 

acantor: calee showed what that string is in a prior post. It had "Remote" at the end of it and the string is not visible. 
(what is it with lower case these days... 🙂 )

 

I think your best bet is to find something that has that code available and can be collected. I would use a control like the one you mentioned where a barcode was also visible. Trigger the macro on the appearance of that control, collect the text from that control, evaluate it for the desired sting, and if apparent issue the warning or whatever you want to do. Note that all but your annunciation at the end will be instantaneous and invisible to the user. 

 

My concern is that a virtualized app is probably just graphic depicting the app running elsewhere. There might just be one big control showing a graphic. Like a video player. When you click on a button, you're actually just creating an even to send a click to the remote app at that coordinate. All your inputs are being executed by proxy. If so, MEP will not be able to access the real control on the server. However sometimes there will be a pass through for printing, file savings, and clipboard, just like in a VM or remote control app. If so you could use the VM apps invisible title as activation, then do something with the keyboard or mouse like Ctrl+A, or click on a coordinate to highlight the text in the remote control, fire a Ctrl+C at it, and then have it copy and transmit the text to your local clipboard for evaluation. There might be some delays so I would start experimenting with at least 100 ms delays between steps then reduce them as far as reliable. 

If I were you I'd first see what the MEP Windows Controls commands identify with the picker tool and then see what text I could get from there. Also it will show you want to local (accessible) window title is. In this graphic you can see the title of the window for which control I was selecting was "Macro Express Pro - Script Editor [Test]:". Show us what you find if you need more help.

Capturecontrolgraphic.png.859d9ac276bd91755f04855dd234bda9.png

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...