Windows 10: vb

Discus and support vb in Windows 10 Software and Apps to solve the problem; vbgvhj https://answers.microsoft.com/en-us/windows/forum/all/vb/83613166-f6f4-4339-851e-a5f28a93c197 Discussion in 'Windows 10 Software and Apps' started by محسن الحامد1, Apr 16, 2023.

  1. vb


    vbgvhj

    :)
     
    محسن الحامد1, Apr 16, 2023
    #1

  2. VBS Msgbox

    Denis,

    • I was too lazy to compute the size programmatically. And, it the 2005 version the message box always came up hidden, so I always used 0 for the top. It's also part of my OCD to be able to control everything.
    • I personally don't need it to timeout. I used this in vbs files to ask to continue to the next step, skip the next step or cancel the vbs. BTW, I added the code back in but keep it assign it to 0.
    • Sound was calling Windows Media Player: WshShell.Run "C:\Users\donast\desktop\sndrec32.lnk",7,false the lnk is a shortcut on my old desktop that had: "C:\Program Files (x86)\Windows Media Player\wmplayer.exe"
      "C:\Users\Public\Music\Wavefiles\Twilight.wav"
    • Yes. The value is the number of the button in the order specified when calling it.
    • Never really thought about it as all my VBS/VBA code is relatively simple and I add comments in the file as necessary to remind me what is going on. I don't usually have anyone to share my code.
    FYI I use a VBS to call it. Here's a line from a test vbs I use to run your version:

    choice=Wshshell.run("custommsgbox.vbs " & wscript.scriptname & " ""CopyFiles.vbs done. Continue with UnArchVista.vbs?"" ""White"" ""Black"" 40 ""Yes"" ""No"" ""Cancel""",1,true)

    Copy it to a text editor to see all the spaces, etc. Took me a while back the to figure it out.

    Don
     
    DRARetired, Apr 16, 2023
    #2
  3. Unable to disable Hyper-V/VBS in Win11

    Can you try another browser?

    Try these other steps for disabling VBS:

    https://nerdschalk.com/how-to-disable-vbs-on-wi...

    How to Disable VBS to Increase Performance in Windows 11?

    (Avoid ad links which intrude into editorial copy, especially DO NOT INSTALL Restoro, PC Repair Tool and Reimage ads)

    https://learn.microsoft.com/en-us/answers/quest...

    https://techyorker.com/how-to-disable-virtualiz...

    https://www.thewindowsclub.com/disable-vbs-windows

    (Avoid ad links which intrude into editorial copy, especially DO NOT INSTALL Restoro, PC Repair Tool and Reimage ads)

    Feel free to ask back any questions. Based on detailed results you post back I will have other suggestions if necessary.

    ______________________________________________

    Standard Disclaimer: There are links to non-Microsoft websites. The pages appear to be providing accurate, safe information. Watch out for ads on the sites that may advertise products frequently classified as a PUP (Potentially Unwanted Products). Thoroughly research any product advertised on the sites before you decide to download and install it.
     
    Greg Carmack, Apr 16, 2023
    #3
  4. Jake104E Win User

    vb

    Find Task list entries with VBS

    Thank you.

    I fail to make it work though...

    I can see how the

    "cmd /c tasklist.exe"

    works when run from a cmd prompt. And that the Shell-command then can execute it.

    My goal is to know if a specific app is running. With the SQL I could then ask specifically for that App - provided I know how it shows up in the list. Hence the first try on making a list of active apps.

    In the Task Manager I only have 5 Apps. The "cmd /c tasklist.exe" shows some 160 entries - and none of them appear to be any of the Apps in the Task Manager - and not the particular one I am looking for.

    Any suggestions on how to detect (from VBS) if a specific App is running?
     
    Jake104E, Apr 16, 2023
    #4
Thema:

vb