> local caption="=vncviewer"
> If( not anywindow(caption) ) do
> do("C:/Program Files/UltraVNC/vncviewer.exe")
> Wait.For(visiblewindow("*Connection*"))
> Win.Keys("{fast}{to =vncviewer}192.168.0.103{enter}")
> wait.for (visiblewindow("office-main001 ( 192.168.0.103 )*"))
> vdesk moveall * 3 =vncviewerI don't use virtual desks but after reading the documentation you appear to me to be doing the right thing already. Maybe using 'C=VNCviewer' as a caption list will work more reliably? This will only match the window to the remote server and not any other hidden windows that VNC may create. Have you tried using VDesk.moveActive(3)? As an aside, have you considered saving the connection settings as a file and then invoking e.g. -- do(?"...\VNCViewer.exe", ?"...\Office Main.vnc") This would remove the need for each Wait.for() and the Win.keys(). (P.S. While I have your attention, I notice that you chose 'other' for the ARB poll and would appreciate it if you could please post your suggestion!) -- Regards, Alex Peters Attention: PowerPro's Web site has moved: http://www.ppro.org Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/power-pro/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
