Action after opening a folder

Page 2 of 2 FirstFirst 12

  1. Posts : 21,004
    Desk1 7 Home Prem / Desk2 10 Pro / Main lap Asus ROG 10 Pro 2 laptop Toshiba 7 Pro Asus P2520 7 & 10
       #11

    Hmm Gladson if the OP would answer we might get to the bottom of what is trying to be done.

    I personally cannot see what is wrong with clicking on Start > All programs and picking the one you want or just have it on the taskbar or the Desktop it isn't rocket science.
      My Computer


  2. Posts : 68
    Windows 7 Ultimate 64 Bit
    Thread Starter
       #12

    As gladson1976 said, maybe u got me and him, so now the question is : is it possible?
      My Computer


  3. Posts : 10,485
    W7 Pro SP1 64bit
       #13

    SirDarknight said:
    Is it possible that when I'll open a folder a program or file will open automatically??

    Example : I open Program Files and Windows Media Player starts automatically!
    Sure - that is possible... but you might have to change some settings to make it reliable.

    I'm going to assume that you are "opening" Program Files using Windows (file) Explorer. Can you live with the Windows Classic theme? Because in that theme, you can set Windows (file) Explorer to display the full path to the folder that was opened. In this case, C:\Program Files

    If you use a tool like AutoIt, you can have a script that just waits around until it "sees" a window with that title. Once such a window appears, the script can launch Windows Media Player.Let me know if you want know more.

    Edit: I might be able to make it work with other themes - I just use Classic for its speed.

    (You might want to watch the video in the full screen mode and at 720p resolution.)
    Last edited by UsernameIssues; 24 Sep 2013 at 05:11.
      My Computer


  4. Posts : 68
    Windows 7 Ultimate 64 Bit
    Thread Starter
       #14

    UsernameIssues said:
    SirDarknight said:
    Is it possible that when I'll open a folder a program or file will open automatically??

    Example : I open Program Files and Windows Media Player starts automatically!
    Sure - that is possible... but you might have to change some settings to make it reliable.

    I'm going to assume that you are "opening" Program Files using Windows (file) Explorer. Can you live with the Windows Classic theme? Because in that theme, you can set Windows (file) Explorer to display the full path to the folder that was opened. In this case, C:\Program Files

    If you use a tool like AutoIt, you can have a script that just waits around until it "sees" a window with that title. Once such a window appears, the script can launch Windows Media Player.Let me know if you want know more.

    Edit: I might be able to make it work with other themes - I just use Classic for its speed.

    (You might want to watch the video in the full screen mode and at 720p resolution.)
    Thanks a lot to everyone and specially to UsernameIssues. Now I know what's the difference between a normal programmer like me and a pro programmer. I know Autoit,C#,Java but I still didn't find out how to do that.So thanks again to everyone.
      My Computer


  5. Posts : 10,485
    W7 Pro SP1 64bit
       #15

    Your are too kind. A professional programmer would laugh at my code. I am but a hobbyist with no formal training. But I've seen enough professional coding to know what I typically leave out - namely, error checking and error handling.

    The code for that post was just to show proof of concept. I would probably use it just as you see it with only a few small additions. But if I were to write it for others to use, I would need some error checking and error handling. As written, it can just hang in an infinite loop. I would know how/when to kill the script if it hung. Others should not have to do that.

    Infinite loops are a usually bad thing when they have no error checking/handling - and the code above has two such loops. That said, if you keep the Opt line of code that enables AutoIt's tray icon mouse-over tool-tip debugging, then you will know when/where the script failed/hung and you can take action as needed/desired.

    -enjoy
      My Computer


 
Page 2 of 2 FirstFirst 12

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 16:04.
Find Us