16,022,238 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Pada Temp (Top 19 by date)
Pada Temp
20-Aug-24 10:24am
View
Yep running into a roadblock here too. Thank you for sharing your experience.
Pada Temp
20-Aug-24 9:41am
View
Good to know. I guess I can just have the DLLs then. I guess I initially thought it might be possible to bundle everything as one executable (even the DLLs).
Pada Temp
20-Aug-24 9:24am
View
Yes, DLL libraries are targeted and they should be included in the executable. I am using a Visual Studio, but is there another Microsoft tool that should be used?
Pada Temp
20-Aug-24 9:12am
View
I should have included the following detail in the post, but I have tried what you are suggesting, i.e. using Build and the executable file produced. The issue I confronted was that it creates files in addition to the executable (e.g. dll's, etc). I am looking for a way to have everything in just one (presumably larger sized) executable without any additional files/dll's. Thank you!
Pada Temp
20-Aug-24 3:15am
View
Ah thank you. It works better, but I get a new error MSB4062: The "Microsoft.Build.Tasks.RequiresFramework35SP1Assembly" task could not be loaded from the assembly Microsoft.Build.Tasks.Core
Pada Temp
19-Aug-24 19:09pm
View
Deleted
Relatedly what is the bare minimum a .exe needs to run. I noticed if I keep the Release folder it will run but if I delete certain files, it may not.
Pada Temp
15-Mar-24 9:20am
View
small methods. however the main method is somewhat large.
if it takes entire books to explain wouldnt that be violating your keep it simple and small principle?
Pada Temp
15-Mar-24 9:19am
View
I already use multiple methods that each have very specific purposes.
Pada Temp
14-Mar-24 22:19pm
View
why? and how?
Pada Temp
14-Mar-24 8:27am
View
the reason is i have long blocks of code and it takes time to scroll up and down to find boundaries
Pada Temp
21-Apr-23 13:22pm
View
This looks interesting. Thank you!
Pada Temp
21-Apr-23 8:35am
View
I am trying to automate a weather data app so as to read data from it. I want to enter username and password, press OK button, then after log in read values such as day, temperature, and also be able to navigate the app programmatically. I want to be able to snag whatever it is the app is doing internally, such as reading values, etc. I realize that app updates is an issue, but if there is a way to get at the classes, buttons, variables, fields, etc that the app uses, that would be ideal.
I get the sense that this is asking too much out of the way Windows does forms and GUI apps....
Pada Temp
21-Apr-23 8:25am
View
You are the man. Thank u!
Pada Temp
20-Apr-23 11:28am
View
would be most appreciated if you remember to get around to it. you have been already so helpful and i have a good point of reference for further research! cheers!
Pada Temp
20-Apr-23 10:26am
View
ah sorry what i meant is that C# code from which this is occuring is a console app. i want to have the console app open a GUI app, which now I can do with OriginalGriff's code. then i want the console app to at, the minimum, simulate pressing enter key, so as to have the GUI app log in with pre-populated info on the splash screen....ideally, i would want the console app to do more complex stuff with the GUI app, such as perhaps enter a username and password, prior to simulating a keystroke enter, and then maybe do stuff in the GUI app that a user might do.
Pada Temp
20-Apr-23 7:48am
View
another update: was able to use SendKeys (Actually SendWait because of weird windows thing) to get the thing to type text in the application after opening....however this needs to use Windows.Forms which seems to be a less sophisticated, worse way than using Streamwriter?
Pada Temp
20-Apr-23 7:04am
View
also update: had to include a psi.UseShellExecute = false; line per an error message.
Pada Temp
20-Apr-23 7:03am
View
update: works with flying colors except that when i do sw.WriteLine("\n") or anything else in the writelines, such as "username" i am not seeing any corresponding action on screen in the app. the app is able to open though using the process stuff, thanks to you! any suggestions? probably i'm doing something wrong, as usual :))
Pada Temp
20-Apr-23 5:37am
View
This is super useful. Thank ye :)
As this is an app wih graphical gui with a login and password, would there be arguments to start it with in the line
psi.Arguments = $"List of arguments to start it with"; ?
I also want the C# code to return control to itself after performing actions. the sw.Close() alone does this or would I also maybe add psi.RedirectStandardInput = false; and psi.RedirectStandardOutput = false; ?
Show More