Home > Software engineering >  Notepad to write a VBS bounced
Notepad to write a VBS bounced

Time:11-16

Do
Msgbox (" doesn't shut off me ")
Loop

Can inquire to press a button out of circulation

CodePudding user response:

VBS not directly implement "key test"...


Need to call the API, but VBS does not support the API calls,
If you want to "simple", you can have two ways to go:
1) msgbox () is actually returns a value, you can decide whether to jump out of the loop, according to the return value
(2) you can write a ActiveX DLL, in the "object" function, use the API to finish button detection,
DLL is, of course, need to register, otherwise unable to create the corresponding object in the VBS,

CodePudding user response:

Press any key, task manager know,

CodePudding user response:

refer to the second floor caozhy response:
press any key, task manager know,

Do you use violence to solve the problem of,

CodePudding user response:

This wacky things to write out, also want to leave the back door is too not professional,
To make a thorough, carefully think again, how to let him destroy both the task manager is not off.

CodePudding user response:

Want to be a XX and to make arch

CodePudding user response:

To switch to inputbox!

CodePudding user response:

refer to 6th floor sysdzw response:
convert inputbox.

You this play, I really didn't expect,

However, the original poster is application scenario for the "display", you change to "input", this I'm afraid it is not appropriate,
MsgBox () of the second parameter don't omit, just "as needed" to select the button,
And then press return value judgment processing line,


By the way: the text to speech, baidu "link" address is fixed?

CodePudding user response:

From the voice interface is my baidu dictionary page steak, with many estimates that baidu has changed, use caution,

CodePudding user response:

refer to 7th floor Chen8013 response:
Quote: refer to the sixth floor sysdzw response:

To switch to inputbox.

You this play, I really didn't expect,

However, the original poster is application scenario for the "display", you change to "input", this I'm afraid it is not appropriate,
MsgBox () of the second parameter don't omit, just "as needed" to select the button,
And then press return value judgment processing line,


By the way: the text to speech, baidu "link" address is fixed?
is fixed, so long as change in Chinese, the meaning of the parameter, several other parameters, the composite interface is baidu specially set up for their own products, said the change can change, not an interface, normal use may apply to the key, obtain authorization, 30 days to update, more troublesome,

CodePudding user response:

Use some unprofessional language
MsgBox some attribute of the VBS can is no popup Windows, MsgBox have attributes can also return click is still negative, whether can make it according to certain operation click to exit, such as click
Whether is whether whether
To jump out of the loop
  • Related