Jump to content

Batch get text from window tree write to text file. - (Locked)


Recommended Posts

I'm looking for help

This is the s.t.a.l.k.e.r sdk level editor

I have two windows open Object List and Object Inspector
what I need is a macro or batch script to write to a txt file.

name, position, rotation, scale for each object in the Object List
Object Inspector updates when selecting a scene object.

I run Au3Info.exe The only time I could retrieve visible text is when I open
The XYZ value edit window.


(This Is for the X Spinner)

Class:    TMultiObjSpinEdit
Instance:    3
ClassnameNN:    TMultiObjSpinEdit3
Name:    
Advanced (Class):    [CLASS:TMultiObjSpinEdit; INSTANCE:3]

 

(This Is for the Y Spinner)

ClassnameNN:    TMultiObjSpinEdit2
Name:    
Advanced (Class):    [CLASS:TMultiObjSpinEdit; INSTANCE:2]

 

(This Is for the Z Spinner)

ClassnameNN:    TMultiObjSpinEdit1
Name:    
Advanced (Class):    [CLASS:TMultiObjSpinEdit; INSTANCE:1]

1.png

Link to post
Share on other sites

Hi @AUTOVRX, and welcome to the Autoit forums :)

Use File* and/or _File* functions to interact with files, and Control* functions to interact with the controls on your application.

Always remember to post your script here, since we can't help you without it.

Click here to see my signature:

Spoiler

ALWAYS GOOD TO READ:

 

Link to post
Share on other sites

Hi so far I've not got any script code, I'm new to all this, still trying to figure out
I need to start at the beginning and work forward.

First thing I need is to get the name from Object list

It has visible text how levels\pripyat\pripyat_lod0000_0039

I've been looking around for something I could modify

https://www.autoitscript.com/autoit3/docs/functions/ControlGetHandle.htm

>>>> Window <<<<
Title:    Object List
Class:    TfrmObjectList
Position:    0, 7
Size:    468, 780
Style:    0x16CF0000
ExStyle:    0x00010108
Handle:    0x00090666

>>>> Control <<<<
Class:    TElTreeView
Instance:    1
ClassnameNN:    TElTreeView1
Name:    
Advanced (Class):    [CLASS:TElTreeView; INSTANCE:1]
ID:    722164
Text:    
Position:    1, 1
Size:    336, 715
ControlClick Coords:    190, 414
Style:    0x54010000
ExStyle:    0x00000000
Handle:    0x000B04F4

>>>> Visible Text <<<<
levels\pripyat\pripyat_lod0000_0039
 Show options
Invisible Only
Visible Only
All

Link to post
Share on other sites
  • Developers

Welcome to the AutoIt forum.

Unfortunately you appear to have missed the Forum rules on your way in. Please read them now - particularly the bit about not discussing game automation - and then you will understand why you will get no help and this thread will now be locked.

See you soon with a legitimate question I hope.

The Moderation team

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to post
Share on other sites
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...