shell32.dll c# example

66

shell32.dll c# example -

 private static void advanceBackgroundSlider()
 {
     //Display the Desktop via the COM component Shell32.dll
     Shell32.Shell objShell = new Shell32.Shell();
     objShell.ToggleDesktop();
     // Simulate Ctrl + Space to deselect anything that may be selected
     SendKeys.SendWait("^( )");
     // Simulate pressing Shift + F10 to open Desktop context menu
     SendKeys.SendWait("+{F10}");
     // Simulate pressing N to execute the “Next desktop background” command
     SendKeys.SendWait("{N}");
 }

shell32.dll c# example -

        private void buttonRecord_Click(object sender, EventArgs e)
        {
            Shell32.Shell shell = new Shell32.Shell();
            shell.MinimizeAll();

            macro.Events.Clear();
            lastTimeRecorded = Environment.TickCount;

            keyboardHook.Start();
            mouseHook.Start();
        }

shell32.dll c# example -

        public static void ZipFile(string Input, string Filename)
        {
            Shell32.Shell Shell = new Shell32.Shell();

            //Create our Zip File
            CreateZipFile(Filename);

            //Copy the file or folder to it
            Shell.NameSpace(Filename).CopyHere(Input, 0);

            //If you can write the code to wait for the code to finish, please let me know
            System.Threading.Thread.Sleep(1000);
        }

Comments

Submit
0 Comments