❔ need help opening sites
how do i make visual studio open a site and then press on a bar to type something
35 Replies
You don't make visual studio do anything, what do you mean?
visual studio is an IDE
i just managed visual studio to open a website
it makes writing code easier
is it possible to make it type something on that website
the language youre writing is C#, its compiled by roslyn and run on the .NET runtime
Do you mean you created a program that opens the website? Visual Studio has nothing to do with that
can i do that on visual studio?
maybe the question is wrong inputted
Can you please just tell us what you're referring to?
i want to make a program that opens google and then presses on the search bar and then types what i input
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
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
honestly for something like this id use python
What's your end goal?
for it to search something that is basically it hahaha
and then from there press on stuff
idk, look for one
is python better?
I mean this sounds like it might have malicious intent
lmao no
You could certainly destroy someone's computer with this
how ??
lol
sounds to me like a beginner wanting to make something cool
Have it download malicious software?
wdym how
wtf no
not asking for it to download stuff
asking how to open google and then search on something on google
for simple automation scripts, yes imo
is it hard to learn ?
never tried pytho
n
and what ide should i use?
not really
i use vscode (not really an ide)
It very much is an IDE
pycharm is a popular ide for python tho
PyCharm is paid though?
community version is free iirc
gonna try vs code
tried a bit in python
and it is really hard lmao
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
its a pain in the ass because windows has weird rules
use pyautogui
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.