Scubar Posted June 30, 2005 Share Posted June 30, 2005 (edited) Hi im making a RunOnce menu for 2003 that includes the guide to convert it to a workstation.Pic 1Ive taken out a few things like the patched Uxtheme part as that will already be done using nlite. ive linked most of the buttons to the correct places but i am having some trouble trying to link buttons to certain places, the folder options menu seems to be the only one i cant work out at the moment.Pic 2 i know that its in the Shell32.dll and is dialog 29960i was wondering if anyone knows a way i could do this. i have tried using shell32.dll,29960 and shell32.dll /29960 neither of which have workedi am using Autoplay Menu Builder 5. todo itmany thanks in advance Edited June 30, 2005 by ScubaSteve Link to comment Share on other sites More sharing options...
tridgely Posted June 30, 2005 Share Posted June 30, 2005 Well, I don't have 2003 handy, and this might not be what you want at all, but in XP you can open that dialogue by using:rundll32 shell32.dll,Options_RunDLL 0Hope that helps,Tim Link to comment Share on other sites More sharing options...
Scubar Posted June 30, 2005 Author Share Posted June 30, 2005 ty that did do the trick. the only problem is that it doesnt seem to show ontop of the menu which is kind of a pain. is there anyway i could make it show ontop as all the other windows will display ontop apart from that one. Link to comment Share on other sites More sharing options...
tridgely Posted June 30, 2005 Share Posted June 30, 2005 (edited) I would try autoit:Run("rundll32 shell32.dll,Options_RunDLL 0")WinActivate("Folder Options") Edited June 30, 2005 by tridgely Link to comment Share on other sites More sharing options...
Scubar Posted June 30, 2005 Author Share Posted June 30, 2005 wondering if theres any other ways todo it as i have never used AutoIt before and am not too good at writing the old scripts out. Link to comment Share on other sites More sharing options...
Achdine Posted July 1, 2005 Share Posted July 1, 2005 ;Call this from a batch file to force the window to be on topNirCMDc.exe win settopmost title "Folder Options" 1;And this if you want to make it act regularly againNirCMDc.exe win settopmost title "Folder Options" 0You can find NirCMD here. Link to comment Share on other sites More sharing options...
MHz Posted July 1, 2005 Share Posted July 1, 2005 Ensure that in AMS5, that the Project window settings, are not set at Always On Top. Link to comment Share on other sites More sharing options...
Scubar Posted July 1, 2005 Author Share Posted July 1, 2005 (edited) ok i managed to get it to work using a batch but i get the nasty cmd window popup first which i would like to get rid of. i have cmdow placed in the system32 folder too but not sure if i could do it with that somehow.at the moment im just using these two lines in my batch file.RUNDLL32 SHELL32.DLL,Options_RunDLL 0NIRCMDC win settopmost title "Folder Options" 1 Edited July 1, 2005 by ScubaSteve Link to comment Share on other sites More sharing options...
Scubar Posted July 3, 2005 Author Share Posted July 3, 2005 (edited) just wondering how easy would it be to make an autoit script todo what i want becoz ive tried using cmdow aswell and its still not working i keep getting nasty cmd windows popup first.ive tried a batch file and used cmdow @ /HID@Echo OFFRundll32 shell32.dll,Options_RunDLL 0NirCMDc.exe win settopmost title "Folder Options" 1Exitand still getting evil window popping up.i was reading the Cmdow help and it said u can call batch files and make them hidden but i didnt understand the way it did it.cmdow /run /hid mybat arg1 "arg 2" not entire sure how i would do that from the autoplay menui was thinking cmdow.exe /run /hid folderops.batbut that didnt seem to do anything. Edited July 3, 2005 by ScubaSteve Link to comment Share on other sites More sharing options...
Achdine Posted July 3, 2005 Share Posted July 3, 2005 CMDow isn't that great; it doesn't prevent a cmd.exe window from opening, it only closes it really fast when it does open. Since you are already using NirCMD (hurray!), you may as well use it to prevent the window from opening as well.If you would like to keep the seperate batch file, just call it withNirCMDc.exe Exec Hide <batchfilename>.batHowever, since you only have two lines in the batch file, I would recommend integrating it into your program by adding these two lines instead of calling the batch fileNirCMDc.exe ExeCMD Rundll32 shell32.dll,Options_RunDLL 0NirCMDc.exe win settopmost title "Folder Options" 1ExeCMD "Executes a command of Command-Prompt (Console Window) without displaying anything on the screen" (from the excellent helpfile). The second line doesn't need any extra parameters or changes, NirCMD commands avoid opening the command windows by default. You can use it anywhere on your CD to prevent those darn windows from popping up Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now