Home > Software engineering >  [for] a few questions, we give some ideas
[for] a few questions, we give some ideas

Time:10-08

1, to achieve such effect: click on the "desktop" button, put the rest of the window is minimized, leaving only the program itself
Now I can only use CreateObject (" Shell. Application "). ToggleDesktop to display the desktop, do not know how to put his own program opens at the window,
Is there any way to share, too complicated words thoughts can also

2, and hope to be able to achieve a specified page to download pictures from the functional,
Now have URLDownloadToFile implementation, but this method is apparently only accept specific images [address],
If you know a specified [url], and know the page there are 3 pictures, is there any way I can put a picture down,
If you have, must use the webbrowser control this way? (because what do you want to be behind a program without form, hope you can a visual control)

3, to realize the function of every 10 minutes to change the wallpaper,
Vb in addition to the timer control and other methods can achieve delay? Best not to control

4, to open a designated folder
Now have the Shell "explorer. Exe c: " this way, but this method seems to be calling the other processes, security software prompts,
I ask you is there a way to open the other folder,
(I have all kinds of baidu, but said the most is not the method that is to say open [the browse folders dialog], ah)

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
The above is what I want to ask a few questions, hope to have a friend know to say hello,
Have any idea or speculation can also, I will try it,
Thank you for the first

CodePudding user response:

Words are Posting the first time, the [question] is a what things?

CodePudding user response:

Click on the "desktop" button, put the rest of the window is minimized, leaving only the program itself
Use the API, traverse the window (FindWindow), then minimize the ShowWindow ()

If you know a specified [url], and know the page there are 3 pictures, is there any way I can put a picture down,
Download the address first, get the HTML file (equivalent to a text file), read and get the pictures inside address (such as & lt; Img SRC="https://bbs.csdn.net/topics/" address/& gt;) Such as, and then download the real picture

To realize the function of every 10 minutes to change the wallpaper,
Timer control with a variable timing is one of the best (interval timer control itself only to the biggest 65535, equivalent to about 65 seconds)
Can also use plan task to make your program run 10 minutes, and each time you run your application in a

Open a specified folder
Do you want to be in your program, we can realize the function of similar resource manager, the simplest is to use ShellListView and ShellTreeView, in my upload resources have a control package there

[problem] is what things?
If you think I answer some help, some knot, give to me

CodePudding user response:

refer to the original poster mzliaolan response:
1, to achieve the effect: click on the "desktop" button, put the rest of the window is minimized, leaving only the program itself
Now I can only use CreateObject (" Shell. Application "). ToggleDesktop to display the desktop, do not know how to put his own program opens at the window,
Is there any way to share, too complicated words thoughts can also


Can display the desktop first, and then Me. SetFocus or Me. Show

CodePudding user response:

The
refer to the original poster mzliaolan response:
4, open a specified folder
Now have the Shell "explorer. Exe c: " this way, but this method seems to be calling the other processes, security software prompts,
I ask you is there a way to open the other folder,


Dim objShell as object
The set objShell=CreateObject (" Shell. Application ")
ObjShell. Open c: \ ""

CodePudding user response:

reference 5 floor me4405801 reply:
can Show desktop first, and then Me. SetFocus or Me. Show


Early tried, no good

CodePudding user response:

refer to 6th floor me4405801 response:
dim objShell as object
The set objShell=CreateObject (" Shell. Application ")
ObjShell. Open "c: "


Well, could you tell me have you ever tried, this will prompt ah, I don't xp system security software test

CodePudding user response:

Agree to all points to the third floor,
  • Related