How to start application to specifyed page

i want to open goldendict on page 3 0 under init function but stay on page 0 0 ,but seems not working,here is my config below:
AddToFunc InitFunction
+ I Exec exec goldendict > /dev/null 1>&1 &
+ I All (GoldenDict, CurrentDesk) MoveToPage 3 0
+ I GoToPage 0 0
when i start fvwm the goldendict opened on Page 3 0 , but “GoToPage 0 0” not working, not to go back Page 0 0

I am using StartOnPage when an app is loaded. Both depend on DesktopSize. For example, DesktopSize “2x4”. This is my config.

## autoMoveWin.sys

##       APPS   COMMAND     PAGE    DESKTOPSIZE
## -------------------------------------------------------------

Style Firefox	StartsOnPage	0 0 0	#page left 0	"2x4"
Style Thunar	StartsOnPage	0 1 0	#page right 0	"2x4"
Style Gimp		StartsOnPage	0 0 1	#page left 1	"2x4"
Style Evolution StartsOnPage	0 0 3	#page left 3	"2x4"
Style "Mozilla Thunderbird" StartsOnPage 0 1 3 #page right 3 "2x4"

Thanks for reply, how to open app(start page 3 0) after go to default page like page 0 0

What is your DesktopSize ?

My desktop size is 4X1
heelsleeh-2022-01-23-22:18:52

Make a test. Quit goldendict (if it is running). Run this in FvwmConsole.
Style goldendict StartsOnPage 0 3 0
Start goldendict.

goldendict start on page 0 3 0 , but how to go back to page 0 0 after open it (goldendict)

Do you want to move goldendict to page 0 0 after using it on 3 0?

To move apps to different pages, the best is to add MenuSendTo feature on the window title bar (right-click). Add this config at the end of your menu list.

## Titlebar Right Click >> Send To
DestroyMenu MenuSendTo
AddToMenu MenuSendTo
+ " Page 0" MoveToPage 0 0
+ " Page 1" MoveToPage 1 0
+ " Page 2" MoveToPage 2 0
+ " Page 3" MoveToPage 3 0

The below image is of my menu list.

sendTo

that’s a good idea, i find the reason why it doesn’t work,
because goldendict can’t execute in background the code “GoToPage 0 0” doesn’t execute maybe. change goldendict to xterm,nautilus works fine. here is my config,

DestroyFunc StartGoldendict
AddToFunc StartGoldendict
+ I GoToPage 3 0
+ I Exec exec xterm
+ I Wait xterm
+ I GoToPage 0 0