C
C#2y ago
Squirtle

❔ need help opening sites

how do i make visual studio open a site and then press on a bar to type something
35 Replies
ero
ero2y ago
You don't make visual studio do anything, what do you mean?
sibber
sibber2y ago
visual studio is an IDE
Squirtle
SquirtleOP2y ago
i just managed visual studio to open a website
sibber
sibber2y ago
it makes writing code easier
Squirtle
SquirtleOP2y ago
is it possible to make it type something on that website
sibber
sibber2y ago
the language youre writing is C#, its compiled by roslyn and run on the .NET runtime
ero
ero2y ago
Do you mean you created a program that opens the website? Visual Studio has nothing to do with that
Squirtle
SquirtleOP2y ago
can i do that on visual studio? maybe the question is wrong inputted
ero
ero2y ago
Can you please just tell us what you're referring to?
Squirtle
SquirtleOP2y ago
i want to make a program that opens google and then presses on the search bar and then types what i input
sibber
sibber2y ago
now to simulate input, you either look for a library that does that, or shave a couple of years off your life and do it yourself via directly pinvoking win32 SendInput
Squirtle
SquirtleOP2y ago
is that possible? what library can do that System.Diagnostics.Process.Start(new ProcessStartInfo { FileName = "https://www.google.com/", UseShellExecute = true }); used this to open google now i want it to press on the search bar and then search for something i input
sibber
sibber2y ago
honestly for something like this id use python
ero
ero2y ago
What's your end goal?
Squirtle
SquirtleOP2y ago
for it to search something that is basically it hahaha and then from there press on stuff
sibber
sibber2y ago
idk, look for one
Squirtle
SquirtleOP2y ago
is python better?
ero
ero2y ago
I mean this sounds like it might have malicious intent
Squirtle
SquirtleOP2y ago
lmao no
ero
ero2y ago
You could certainly destroy someone's computer with this
Squirtle
SquirtleOP2y ago
how ?? lol
sibber
sibber2y ago
sounds to me like a beginner wanting to make something cool
ero
ero2y ago
Have it download malicious software? wdym how
Squirtle
SquirtleOP2y ago
wtf no not asking for it to download stuff asking how to open google and then search on something on google
sibber
sibber2y ago
for simple automation scripts, yes imo
Squirtle
SquirtleOP2y ago
is it hard to learn ? never tried pytho n and what ide should i use?
sibber
sibber2y ago
not really i use vscode (not really an ide)
ero
ero2y ago
It very much is an IDE
sibber
sibber2y ago
pycharm is a popular ide for python tho
ero
ero2y ago
PyCharm is paid though?
sibber
sibber2y ago
community version is free iirc
Squirtle
SquirtleOP2y ago
gonna try vs code tried a bit in python and it is really hard lmao
ero
ero2y ago
You'll hate python if you like c# Though you can at least somewhat do the same things. Classes, functions, and types still exist That said, anything you can do in Python you should absolutely be able to do in C# Wrapping SendInput shouldn't be too hard
sibber
sibber2y ago
its a pain in the ass because windows has weird rules use pyautogui
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server