- Видео 223
- Просмотров 3 126 403
SimplyCoded
США
Добавлен 21 окт 2012
FormatString Class | VBScript Tutorials
Strings in VBScript can be annoying. Here's a little class I made to make things easier.
| Language
VBScript (.vbs)
| Code Example
gist.github.com/codeartery/8bed157ff8ede837ee423c9ab3ce9562
| Language
VBScript (.vbs)
| Code Example
gist.github.com/codeartery/8bed157ff8ede837ee423c9ab3ce9562
Просмотров: 6 803
Видео
Run as Admin ( without constant UAC prompt ) | VBScript Tutorials
Просмотров 20 тыс.6 лет назад
A script that uses Task Scheduler to run itself as an administrator without having to go through User Account Control (UAC) every time you run it. | Language VBScript (.vbs) | RunAsAdmin gist.github.com/simply-coded/cf08a34ad3d9f5fd04e57683cf76aafc | RunAsAdminNoUAC gist.github.com/simply-coded/a89cc21b69bba3666e260292b7522071 | Schtasks.exe msdn.microsoft.com/en-us/library/windows/desktop/bb73...
39 - Classes ( intro; self; __init__ ) | Python Tutorials
Просмотров 18 тыс.7 лет назад
Let's create some objects; to do so we need a blueprint for our objects called a class. This video goes over classes, instances and instance variables, methods, and the constructor called init_(). | Language Python (.py) | Code Example github.com/simply-coded/python-tutorials
38 - @Decorators ( name binding ) | Python Tutorials
Просмотров 1,5 тыс.7 лет назад
Learn how function decorators work; these are useful when you have a factory function that wraps another function with more code. This video also recaps inner functions and showcases how multiple names can be bounded to the same object and how that affects our program. | Language Python (.py) | Code Example github.com/simply-coded/python-tutorials
37 - Inner / Nested Functions ( challenge answer ) | Python Tutorials
Просмотров 4,7 тыс.7 лет назад
Tells what and why you would want to use an inner or nested function. This video goes over: some encapsulation, factory functions, and wrapper functions. | Language Python (.py) | Code Example github.com/simply-coded/python-tutorials
36 - Scope ( access; nonlocal; global ) | Python Tutorials
Просмотров 8137 лет назад
Learn what scope is. How it affects access to methods and variables, and how you can change this access with the global, and nonlocal keywords. | Language Python (.py) | Code Example github.com/simply-coded/python-tutorials
35 - Random Module & Challenge ( randint; randrange; choice; sample ) | Python Tutorials
Просмотров 2,2 тыс.7 лет назад
Learn how to generate pseudo-random numbers with the random module in a cool little restaurant example. | Language Python (.py) | Code Example github.com/simply-coded/python-tutorials | More Info (random module docs) docs.python.org/3/library/random.html
33 - Generator Functions ( yield; next ) | Python Tutorials
Просмотров 7 тыс.7 лет назад
Learn how to use generators. Generators are iterators that calculate and return a value and then wait for you to call them again with the next() function. | Language Python (.py) | Code Example github.com/simply-coded/python-tutorials
34 - Lambda ( pass to func; no params; calling ) | Python Tutorials
Просмотров 1,4 тыс.7 лет назад
Learn how to use lambdas, with varying amounts of parameters including no parameters, and how to pass them into another function, and call them with or without assigning them to a name. | Language Python (.py) | Code Example github.com/simply-coded/python-tutorials
32 - Functions ( arg types; positional; keyword; optional; arbitrary ) | Python Tutorials
Просмотров 1,2 тыс.7 лет назад
Learn about the different type of arguments you can enter into a function like positional, keyword, arbitrary, optional, and how to unpack arguments with the asterisk/star operator ( *args args ). Additionally, this video will show you how to make a message box in Python using ctypes.windll.user32.MessageBoxW, use the help() function and create and access docstrings for functions. | Language Py...
31 - Functions ( return; exit a function; return multiple values ) | Python Tutorials
Просмотров 7 тыс.7 лет назад
Learn how to return items from a function, return different items from a function depending on the situation, exit a function at any point, or return multiple values from a function. | Language Python (.py) | Code Example github.com/simply-coded/python-tutorials
30 - Functions ( why avoid globals ) | Python Tutorials
Просмотров 2,8 тыс.7 лет назад
A tutorial about why you should avoid globals in functions if you can, and what to do instead. | Language Python (.py) | Code Example github.com/simply-coded/python-tutorials
29 - Functions ( pass; global ) | Python Tutorials
Просмотров 9987 лет назад
Learn how to define and use functions/methods in python, and the effects of their scope on other variables. | Language Python (.py) | Code Example github.com/simply-coded/python-tutorials
28 - Command Line Arguments ( sys.argv ) | Python Tutorials
Просмотров 28 тыс.7 лет назад
Use sys to get command line arguments from the user. Shows how to use a generator expression to sum up all the arguments provided in the terminal. | Language Python (.py) | Code Example github.com/simply-coded/python-tutorials | More Info (argparse) docs.python.org/3/library/argparse.html
53 - Lambdas ( arrow operator ) | Java Tutorials
Просмотров 3 тыс.7 лет назад
Learn how to use lambdas in Java 8. This video also shares a way to replicate the behavior of lambdas using anonymous classes if you have an older version of Java. | Language Java (.java /.class) | Code Example github.com/simply-coded/java-tutorials
27 - Generator Expressions ( iterable vs iterator ) | Python Tutorials
Просмотров 1,5 тыс.7 лет назад
27 - Generator Expressions ( iterable vs iterator ) | Python Tutorials
52 - Anonymous Classes ( effectively final ) | Java Tutorials
Просмотров 2 тыс.7 лет назад
52 - Anonymous Classes ( effectively final ) | Java Tutorials
26 - Comprehension & Nested Loops ( list; set; dict ) | Python Tutorials
Просмотров 7 тыс.7 лет назад
26 - Comprehension & Nested Loops ( list; set; dict ) | Python Tutorials
25 - Iterative Loops ( for; else; break; continue; zip ) | Python Tutorials
Просмотров 1,1 тыс.7 лет назад
25 - Iterative Loops ( for; else; break; continue; zip ) | Python Tutorials
24 - Conditional Loops ( loop; do while; break; continue ) | Python Tutorials
Просмотров 1,1 тыс.7 лет назад
24 - Conditional Loops ( loop; do while; break; continue ) | Python Tutorials
ArrayList ( methods & properties ) | VBScript Examples
Просмотров 4,4 тыс.7 лет назад
ArrayList ( methods & properties ) | VBScript Examples
23 - User Input ( input; getpass; isdigit ) | Python Tutorials
Просмотров 6 тыс.7 лет назад
23 - User Input ( input; getpass; isdigit ) | Python Tutorials
22 - Ternary Operator ( A if CONDITION else B ) | Python Tutorials
Просмотров 2,8 тыс.7 лет назад
22 - Ternary Operator ( A if CONDITION else B ) | Python Tutorials
21 - If Statements ( if; elif; else; nested ) | Python Tutorials
Просмотров 9917 лет назад
21 - If Statements ( if; elif; else; nested ) | Python Tutorials
Environment Variables ( add; change; remove ) | VBScript Examples
Просмотров 4,1 тыс.7 лет назад
Environment Variables ( add; change; remove ) | VBScript Examples
20 - Logical Operators ( and; or; not ) | Python Tutorials
Просмотров 4,4 тыс.7 лет назад
20 - Logical Operators ( and; or; not ) | Python Tutorials
19 - Membership & Identity Operators ( is; not; in ) | Python Tutorials
Просмотров 2,6 тыс.7 лет назад
19 - Membership & Identity Operators ( is; not; in ) | Python Tutorials
18 - Comparison Operators ( == != less than; greater than ) | Python Tutorials
Просмотров 6 тыс.7 лет назад
18 - Comparison Operators ( != less than; greater than ) | Python Tutorials
17 - Assignment Operators ( = += -= *= /= %= **= //= ) | Python Tutorials
Просмотров 11 тыс.7 лет назад
17 - Assignment Operators ( = = -= *= /= %= = //= ) | Python Tutorials
16 - Bitwise Operators ( shifts & | ~ ) | Python Tutorials
Просмотров 8 тыс.7 лет назад
16 - Bitwise Operators ( shifts & | ~ ) | Python Tutorials
blue color fonts are annoying to our eyes. Please use only white color fonts
Didn't understand this Navigate2 and 2048 & 4096. could someone explain me in detail?
Now internet explorer is retired so can we automate Microsoft Edge browser using VbScript?
Vbscript is also pretty much retired. And no, I don't believe edge has an automation API, you'd have to use software like AutoIt and such
its 20244444444444444444444444444
sendkey”taskkill if /im “explorer.exe”” Not workings, How to enter (“) in sendkey as it already contains semicolons
Imma trick my teacher using this 🤣🏆☠
Execute rvBFIL.ReadAll() no longer works 😮💨
very good but we need txt copy of the path file
the vbs chart in the description looks nothing like the one you have
That's because the one I had in the video was a custom one I had made that I no longer have. I also highly don't recommend using it because the way better way is to use the constants rather than the numbers behind the constants. Watch the second video for more information. It makes it way easier to read and understand when you don't use the numbers.
@@SimplyCoded ok
Thank you, Is it possible to get Data info from .mp3 files ?
I just want to let you know that i am dumbfounded for the amount of dedication you put in this series. 4 whole years?! thats crazy dude, props.
I wonder whats the career of this RUclipsr now. He might know a lot of programming languages
The different types of logging in Java include FileHandler and ConsoleHandler. FileHandler is used to capture logging output in a rotating set of files, while ConsoleHandler is used to print log messages to the console. These logging mechanisms can be used to troubleshoot issues at different stages of development by providing detailed information about the application's behavior and errors encountered.
Is there a way to add a prompt to save the speech as mp3?
Not that I know of. Seems like it would have to be recorded to do that as it's a realtime speech not a generated one
the inputbox just closes after around 4 seconds and im not sure why the entire program actully closes after 5 seconds for somereason
Type wscript.exe in your start menu or in a command line and launch it. It will launch the settings. From there do you have the checkbox selected that says to only let scripts run for so many seconds enabled? If so uncheck it
finally... good coding tutorials, thank you so much i subbed :)
Honestly this saved my life because i checked all over the internet and did not find an answer that would work, thank you so much and keep up the good work!!!
Very helpful and informative video.thanks for sharing. I was wondering if there's any key parameter for selecting context key ( the menu key which resides next to rightside control key). Alternative ways to mimic right click such as shift f10 or sending appskey or ascii 93 parameters are tried but not helping. If any suggestions on this please assist.thanks
Hi, i'm searching how to detect the status of computer something like the position of the cursor or whether the keyboard be pressed using VBscript. do you have any idea about this?
very easy, thanks!
Thank you😊
cool
What about the Wisper
How to write the file again it says it is closed
Can you please tell me how to open notepad+
Dim objShell Set objShell = WScript.CreateObject("WScript.Shell") ' Replace the file path with the location of Notepad++ on your system Dim notepadPPPath notepadPPPath = "C:\Program Files\Notepad++ otepad++.exe" ' Open Notepad++ objShell.Run """" & notepadPPPath & """", 1, False Set objShell = Nothing
if you want to print another message like "SUM = (Var)" do "SUM = " & var it works for me
hello , can you please tell me how to change the text color in this task ?
My script does if the file already exist it creates a folder with the new file Set fso=CreateObject("Scripting.FileSystemObject") if fso.FileExists("G:\NOAH\vbs\test.txt") then a=msgbox("The file already exists. do you want to create a folder with the new file?",vbYesNo) if a=vbYes then fso.CreateFolder "G:\NOAH\vbs\test" fso.CreateTextFile "G:\NOAH\vbs\test\test.txt" Else wscript.quit End if Else fso.CreateTextFile "G:\NOAH\vbs\test.txt" End if
song name
Something I made in GarageBand. Don't think I even have it anymore
@@SimplyCoded oops
@@SimplyCoded i commented the wrong video
@@SimplyCoded sorry Wrong vvideo
Thanks for sharing this. Great job!
Who is watching 2024
adamsın abi
Easy coding like Autohotkey. Simple is better. We can't remember everything. If it's simple, you never forget.
You saved my job, thank u
Hallo SimplyCoded.. I use multimonitor, could you share how to show MsgBox at used monitor ?
That's a Microsoft thing. As far as I know it will always open on the main monitor. Sometimes MS Windows opens windows on the window they were closed at but I don't believe msgbox does. You may be able to find a third-party program that can move things to certain windows and then automate the movement to that window.
How do you check two parameters in a folder such as size, name? Thank you
not blaming you, but i used the loop code to repeatedly run calculator, i couldn't find my vbscript so i had to restart my computer
lol been there before. Sometimes I can throw up a powershell terminal in time to run something like 'gps wscript | spps -force' to find and kill any vbscript processes, but In cases like yours where there's a gui that's constantly getting in the way a good ol' restart is the easiest.
where can i get the vbscript msgbox chart number
I don't have it anymore but my highest recommendation for yourself and the sake of any programmer that has to read your code is to not use it and watch the second video about using constants instead
NOW 2023 BUT AM STILL LEARNING FORM HIM
Same
didnt know u could put 20 for critical and yes no, until now i entered 16+4 😅
How do I add multiple places to input?
No function (3 space + 1 space): Dim fso set fso = CreateObject("Scripting.FileSystemObject") fso.MoveFile """C:\Users\admin\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\AquaSnap""", """C:\Users\admin\AppData\Roaming\Microsoft\Internet Explorer\AquaSnap"""
So I eventually found the solution myself, by trial and error. In doing so, I was shocked twice! First: even though the file is named: AquaSnap - it's actually a .lnk file type (shortcut) and it has to be mentioned! Second: even though I have a lot of spaces in the path, I must not do the expected solution with 3 quotes on each side ("""xxxxx""), but just single quotes! I don't understand why, but that's just how it works. So 2 shocks :) A working solution: Dim fso set fso = CreateObject("Scripting.FileSystemObject") fso.MoveFile "C:\Users\admin\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\AquaSnap.lnk", "C:\Users\admin\AppData\Roaming\Microsoft\Internet Explorer\AquaSnap.lnk"
Hello Jeremy. Love your videos and I wouldn't have gotten here with programming without them! But I have a problem that I run into every now and then. I want to place the Sub and Function names of an Executed File in the output window or create a List as in lets say the FileSystem Object. This actually also applies to the names of the variables that appear in the Executed File. After sometimes a day of trying with "stdout", "stdin", "objects" etc. I gave up the battle again. (I work with VbsEdit). Can you make a video about this? Thank you in advance. 😉 (This text has been translated from Dutch with a translation program)
Thank you! This helped with a project.
Jupiter Notebook or Google collab
Thank you. I readly need it.
At 8:47, you showed me a smart way to use a function in VBScript. *Thank you very much!* You're the best person at RUclips who can help others learn VBScript.
Thank for another amazing video. There's a difference between: (1) do until a = 5 ... loop and (2) do ... loop until a = 5 We use (2) when we'd like to have the lines of code executed once or more (1 >= x). But for (1), we use it when we'd like to have the lines of code executed zero or more times (0 >= x). The same thing applies to: do while a < 6 ... loop and do ... loop while a < 6. Regards,
bro this was so clear compared to any other internet source. Thank you so much!
Thank for the boundary explanation now i understands this is simple