Discussion & Support for xplorer² professional
Moderators: fgagnon , nikos , Site Mods
Gandolf
Gold Member
Posts: 575 Joined: 2004 Jun 12, 10:47
Post
by Gandolf » 2024 Jul 13, 00:34
V6.0.0.2
Macro:
Code: Select all
COMMAND 32932 # Select items whose properties
WAITWND
FINDWND "cl&ear"
CLICK
FINDWND "F&olders"
SETCHECK 0
POP 0
.
.
.
If the "matching items according to rule" dialogue box is set to "simple version" the macro terminates with the error:
Code: Select all
Macro stopped execution with error 3
Line: 5
Last argument: f&olders
Do you want to debug the macro?
I would have expected the macro to have overridden any settings of the dialogue.
Not only do my scripts not run because of the dialogue box changes, but the x² macros don't run either.
nikos
Site Admin
Posts: 16344 Joined: 2002 Feb 07, 15:57
Location: UK
Post
by nikos » 2024 Jul 13, 04:43
macros operate only on visible controls
if you want to ensure "full dialog" mode, do something like this
Code: Select all
COMMAND 32932 # Select items whose properties
WAITWND
errorstop 0
findwnd "more properties"
jumperr full
sendkey space # click the link
label full
errorstop 1
...
Gandolf
Gold Member
Posts: 575 Joined: 2004 Jun 12, 10:47
Post
by Gandolf » 2024 Jul 13, 05:34
But that will change the dialogue box to "more properties" which I don't want. I want "simple version" as the default for the dialogue box.
I was expecting to be able to use a macro to override my default (simple version), but it appears the macro simply "presses the buttons that are there".
I assume I can add (if I want to) code to re-set the dialogue to simple, after the marking of the files.
nikos
Site Admin
Posts: 16344 Joined: 2002 Feb 07, 15:57
Location: UK
Post
by nikos » 2024 Jul 13, 09:14
if you want simple version there is no control over files or folders, only name and content
Gandolf
Gold Member
Posts: 575 Joined: 2004 Jun 12, 10:47
Post
by Gandolf » 2024 Jul 13, 12:18
nikos wrote: 2024 Jul 13, 09:14
if you want simple version there is no control over files or folders, only name and content
I know that.
Whatever the state the dialogue was in when I ran the macro, then I want to return it to that state after the macro has run.
With the added commands you suggest, it leaves the dialogue in the "more properties" state, regardless of the state it was in when I ran the macro.
nikos
Site Admin
Posts: 16344 Joined: 2002 Feb 07, 15:57
Location: UK
Post
by nikos » 2024 Jul 13, 12:25
if you are good with programming i am sure you can figure it out, e.g. use $1 as a state variable to switch back to the original mode
Gandolf
Gold Member
Posts: 575 Joined: 2004 Jun 12, 10:47
Post
by Gandolf » 2024 Jul 13, 12:45
Already done it
Assembler is easier than your macro code.
nikos
Site Admin
Posts: 16344 Joined: 2002 Feb 07, 15:57
Location: UK
Post
by nikos » 2024 Jul 13, 13:30
you are old school
Gandolf
Gold Member
Posts: 575 Joined: 2004 Jun 12, 10:47
Post
by Gandolf » 2024 Jul 13, 13:43
Older than you think!
I started with punched card input and output to a Creed 7B. The Post Office Research Station at Dollis Hill, where I was a student apprentice (a University sandwich course). The computer was (although we didn't know it at the time) an updated version of the Colossus, using "modern" B9 valves!
nikos
Site Admin
Posts: 16344 Joined: 2002 Feb 07, 15:57
Location: UK
Post
by nikos » 2024 Jul 13, 14:46