Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Resize explorer file properties window
#1
what is the best way to identify the file properties dialog from explorer, so that it can be used on systems with another language too?

!ca"Eigenschaften von*" "#32770" "" "" "" 0x2


Macro explorer file properties resizer
Trigger !ca"Eigenschaften von*" "#32770" "" "" "" 0x2     Help - how to add the trigger to the macro
Code:
Copy      Help
int w=win("Eigenschaften von *" "#32770" "" 0x1)
if _command
,w=val(_command)
if w
,siz 640 0 w 2
,;siz 600 0 id(12320 w) 2    ;;systabcontrol
,;siz 590 0 child("Verknüpfung" "#32770" w 0x1) 2 ;;second tab
,;siz 440 0 id(13058 w) 2 ;;target
,;siz 440 0 id(12290 w) 2    ;;ausführen in
,;siz 440 0 id(13313 w) 2    ;;comment
pi
#2
if id(xxx w) and id(yyy w) and id(zzz w) ...
#3
no, what i mean is that the german window title is "Eigenschaften von*"
[Image: windows-7-explorer-eigenschaften-2.png]
on english windows it seem to be Properties*
[Image: windows-7-taskbar-shortcut-properties-window.gif]
pi
#4
In trigger don't use window name. Use filter function that returns iid if several controls with known id are in the window.
#5
what about using RX in trigger?
"Eigenschaften von*" "*Properties"

if that would work then please show me the RX.
pi
#6
Possible if need only for several known languages.
$(title1|title2|title3)
#7
ok, in trigger the RX works on my german system. have no english profile prepared now, will setup one later.

$(Eigenschaften von|Properties)

when you now also can show me how to use the RX in -> int w=win("Eigenschaften von *" "#32770" "" 0x1) <- then i am happy for today Smile

int w=win( RX "#32770" "" 0x1)
pi
#8
Same, but without $, it is used only in window triggers. And flag.
#9
do not get it
int w=win("$(Eigenschaften von|Properties)" "#32770" "" 0x200)
or
int w=win("$(Eigenschaften von|Properties)" "" "" 0x200)

seems to be too strict

Macro explorer file properties resizer
Trigger !ca"$(Eigenschaften von|Properties)" "#32770" "" "" "" 0x2     Help - how to add the trigger to the macro
Code:
Copy      Help
int w=win("$(Eigenschaften von|Properties)" "" "" 0x200)
;int w=win("$(Eigenschaften von|Properties)" "#32770" "" 0x200)


if _command
,w=val(_command)
if w
,0.1
,out _s.getwintext(w)
pi


Forum Jump:


Users browsing this thread: 1 Guest(s)