I often find myself starting an program like Pidgin or Thunderbird which takes a while to load. Because I have multiple pages on my desktop I like to open each program on a separate page and pan around my desktop. The problem I have had is that I will open the program on one page and then either have to wait for it to load and can’t do anything else, or move to another page, say to carry on reading a web page, and then have the program appear on top of the window I am looking at, and then have to move it out of the way, which is annoying.
My solution is a function to load the application on the same page that was being viewed when it was called:
# $0 is name of window, $1 is command string, $2 is an ID
AddToFunc SamePage
+ I SetEnv PageX$2 $[page.nx]
+ I SetEnv PageY$2 $[page.ny]
+ I Exec exec $1
+ I None ("$0") Wait "$0"
+ I Next ("$0") MoveToPage $[PageX$2] $[PageY$2]
+ I SetEnv PageX
+ I SetEnv PageY