forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


SendTo new Window

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
Que
Valued Newbie


Joined: 25 Aug 2001
Posts: 38
Location: Newaygo, MICH

PostPosted: Fri Apr 19, 2002 4:17 pm    Post subject: SendTo new Window Reply with quote

Idea If you have your Windows Explorer browse options set so that when you dbl click on a folder, it opens in the SAME window ( I think most people do ), then you may be interested in this little piece of code. Compile it and put the exe (or a link to it) in your Windows\SendTo directory. In windows explorer, R-Click on a Folder and select Sendto Appname. The selected folder opens in a new window the same size as the original and to the right of it. Tested on Win95. I'll test on ME when I get home. Let me know what you think. It's kind of handy, but perhaps some of you real programmers have a better idea.

Code:
Title wind
%W =  @winactive()
%%Top = @winpos(%W,T)
%%Wid = @winpos(%W,W)
%%Hgt = @winpos(%W,H)
window position,%W,%%Top,64,%%Wid,%%hgt
run explorer.exe %1
%K = 10000
repeat
  %A = @winactive()
  if @not(@equal(%A,%W))
   goto available
  end
  %K = @pred(%K)
until @zero(%K)

:available
if @winexists(%A)
window position,%A,%%Top,@sum(%%Wid,74),%%Wid,%%Hgt
end
:close
stop


Cheers,

_________________
Que
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group