FindObject

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
User avatar
PepsiHog
Automation Wizard
Posts: 511
Joined: Wed Apr 08, 2009 4:19 pm
Location: Florida

FindObject

Post by PepsiHog » Thu Aug 09, 2018 1:46 am

Hello,

Curious if there is a solution to this small little problem. I want to send text to a console window. Basically, a window like cmd window in Windows.

VLC has what is called a console. I want to send text to the window but like ObjectSendKeys I don't want to have to set focus to the window. I finally realized the window does not have a control so FindObject will not work.

Anyone? Anyone? Please.
Windows 7

PepsiHog. Yep! I drink LOTS of Pepsi (still..in 2021) AND enjoy programming. (That's my little piece of heaven!)

The immensity of the scope of possibilities within Macro Scheduler pushes the user beyond just macros!

User avatar
Marcus Tettmar
Site Admin
Posts: 7378
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: FindObject

Post by Marcus Tettmar » Thu Aug 09, 2018 9:04 am

If it doesn't have a handle then there's probably no way to do it.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

User avatar
PepsiHog
Automation Wizard
Posts: 511
Joined: Wed Apr 08, 2009 4:19 pm
Location: Florida

Re: FindObject

Post by PepsiHog » Thu Aug 09, 2018 1:30 pm

@Marcus,

It has a handle. I don't believe it has an object. Does a dos command window have an object? I thought maybe it could be treated as an edit, but I had no luck with that.

You were probably distracted or half asleep, because you know all windows have handles. So I guess you meant "object". Or.......do they? (object, control, whatever. School me on this.)

@Everyone,

Anyone know of a video player that may be perfect for controlling with FindObject?

Thanks for helping.
Windows 7

PepsiHog. Yep! I drink LOTS of Pepsi (still..in 2021) AND enjoy programming. (That's my little piece of heaven!)

The immensity of the scope of possibilities within Macro Scheduler pushes the user beyond just macros!

User avatar
Marcus Tettmar
Site Admin
Posts: 7378
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: FindObject

Post by Marcus Tettmar » Mon Aug 13, 2018 6:09 pm

Not sure what you are saying.

It depends what you mean by objects - this is a rather generic term that could mean pretty much anything. In Windows, only "windowed controls" have handles. These are the things we can send "messages" to to try and manipulate and are what we see in the View System Windows tool.

The "DOS" (it's not DOS) command window will have a handle. What goes on inside that I have no idea. Look at the View System Windows tool. If there are child objects (windowed controls) inside it you should see that in the tree hierarchy.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts