Simulate A Gamepad Input With C# [closed] - c#

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I'll simplify the situation to get rid of confusion.
I want to make a program that only has 1 button in the program. Upon clicking the button, the program will simulate a generic gamepad button. I'm sure when the program starts, it will have to somehow emulate a gamepad. The gamepad that is being emulated should be visible in the Control Panel. (joy.cpl to be more specific)
I have to do this without making a driver or relying on a 3rd party library/API- I know it can be done this way since I've seen some programs that actually do this already but my program will have a completely different use than those. I cannot find any good information on where to start, so pushing me in the right direction would be nice or showing me some code in C# would be cool, too!
Thanks, guys!

Related

How to show a WPF Window in front of a UWP app in fullscreen mode? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I'm looking for a way to make a WPF window stay on top of a fullscreen UWP app. I found numerous mentions of Window.Topmost, but it only works with a windowed app.
For a little bit of context, the idea is to create a virtual keyboard that I could launch from the app (with a brokered runtime component). I do know that there are some keyboard implementations, but they don't do the trick since they basically edit the textboxes themselves (and I need it to be able to also interact with WebViews).
Thanks :)

C# Application to launch a Steam game [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I'm new to C#.
I am thinking as a little practice project in Visual Studio i am going to make a little application that launches a game (Counter Strike: Global Offensive) when you click a button.
Just a couple of Points:
Is this a bit too much as a first project?
Would i need it so when you click the button it would just have to
look for the launch.exe for that game?
Is this a bit too much as a first project?
Not at all. It is pretty much starting application with some command line parameters.
Would i need it so when you click the button it would just have to
look for the launch.exe for that game?
Steam games are launched by steam:// uri scheme which maps to steam.exe executable. So you pretty much need to start steam.exe process passing uri like steam://rungameid/game_id where game_id is numerical id of that game.

New button on top corner of any Windows App C# [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
Somebody know how to add a button on top right corner of any windows app loaded?, and manage a controller to interacting with them.
Really what I want is a method to set the property "Always on top" of any form.
I appreciate any help to do this posible... :)
(my programing language is c#)
It is possible to do so but prepare yourself to get dirty. Really dirty.
See this CodeProject article: Add Your Control On Top Another Application. Basically that guy is drawing a kind of custom control into another app's title bar.
In addition to this, this article about global system hooks might get handy for you as well.

Winform app with loaded DB connection [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I have a question regarding problem i am solving. I am editing an old Winform app; currently the only part I need does not take input from the user(automated program). However the form contains database connection settings that program uses. Currently the program needs the user to press a button to start the process (code is associated with the button). Do i need to convert whole app to Console App or is there an easier way to automate this process without messing with the database connection settings.
Right now, you have a WinForm that runs code on a button press. You need to turn this into a "headless" or automatic process. Here is what I think based on your description would be the best things to do:
Remove the button, and have the code that was being ran by the button be called by a more "automatic" process, such as "Form_Load" or a timer.
Take the code and move it into a console app. As long as you don't ask for user input within the logic, it will run and close itself when it's done.
However, this is just some broad and generic suggestions. You need to look at your code and decide for yourself what to do.

displaying images and playing sound in C# [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am learning C# and I want to create a countdown timer application that displays the time in a digital format on an image of a stopwatch and gives verbal time updates at certain times.
How do I go about displaying images to the screen and playing sound? I have used pygame in python to achieve this so basically I am looking for suggestions for something similar in C#.
I hope this makes sense! Thanks.
The best technology to use for that would probably be Windows Presentation Foundation (WPF).
Here's an example of an application made in WPF similar to what you want to do:
http://www.codeproject.com/Articles/20048/Immerse-Yourself-in-WPF-A-quot-World-Clocks-quot-A

Categories