Click here to Skip to main content
15,891,204 members
Home / Discussions / C#
   

C#

 
AnswerRe: traversing two lists simultaneously Pin
OriginalGriff9-Apr-20 9:29
mveOriginalGriff9-Apr-20 9:29 
AnswerRe: traversing two lists simultaneously Pin
Dave Kreskowiak9-Apr-20 9:31
mveDave Kreskowiak9-Apr-20 9:31 
AnswerRe: traversing two lists simultaneously Pin
Gerry Schmitz9-Apr-20 10:57
mveGerry Schmitz9-Apr-20 10:57 
AnswerRe: traversing two lists simultaneously Pin
James Curran13-Apr-20 1:14
James Curran13-Apr-20 1:14 
Question2 Async/Await Questions Pin
Kevin Marois8-Apr-20 18:10
professionalKevin Marois8-Apr-20 18:10 
AnswerRe: 2 Async/Await Questions Pin
Richard Deeming9-Apr-20 0:16
mveRichard Deeming9-Apr-20 0:16 
GeneralRe: 2 Async/Await Questions Pin
Kevin Marois9-Apr-20 6:22
professionalKevin Marois9-Apr-20 6:22 
QuestionGetting Text From External Application Pin
KiriGaya-Rye8-Apr-20 13:09
KiriGaya-Rye8-Apr-20 13:09 
I am trying to make a bot for an external application, in first i used to sendkeys (^a ^c) To the application window after clicking In middle of chat , then get the text from my clipboard And store it in file then read it and answer by sendkeys , and i do all of That under timer control I do all these tasks every 1 second , recently i was searching on another way to do it Because using Sendkeys is taking my processor and pc is going to be more slow further I can't use my pc when my bot is working , after long Search i have found UI automation Which i can access control's another application and get/set text I have found way how to Do it with a notepad , but i don't know or it didn't work for my application I used the below code to get the text from a notepad ,i Want to know the changes I have to do in the code to work in my application , i have downloaded Autoit and spy++

<pre>private void btn_getText_Click(object sender, EventArgs e)
{
PropertyCondition idCond = new PropertyCondition(AutomationElement.AutomationIdProperty,"15");
AutomationElement nameTxt = mainWnd.FindFirst(TreeScope.Descendants, idCond);
if (nameTxt != null)
{
TextPattern txtPattern = nameTxt.GetCurrentPattern(TextPattern.Pattern) as TextPattern;
txt_output.Text = txtPattern.DocumentRange.GetText(-1);
}
}</pre>
I have found , if the application does not support ui textpatteren , it won't work but i don't know how to know that , i don't know The platform of the application made from.

The application i was trying to get text from it www.RankedGaming.Com

Here is a screen shot of the application https://prnt.sc/ruxo2m We type the textbot down and the messages are going to be shown In the top of chat , even i don't know what is that tool Its not going to be written inside its just for read.
QuestionHow to read/load a certificate stored in a JKS (Java key stores) file format, in .NET (C#) Pin
yuvraj vichare8-Apr-20 5:20
yuvraj vichare8-Apr-20 5:20 
AnswerRe: How to read/load a certificate stored in a JKS (Java key stores) file format, in .NET (C#) Pin
jkirkerx8-Apr-20 9:38
professionaljkirkerx8-Apr-20 9:38 
QuestionBackground Data Tables In C# Pin
Member 133258467-Apr-20 0:21
Member 133258467-Apr-20 0:21 
AnswerRe: Background Data Tables In C# Pin
Gerry Schmitz7-Apr-20 6:52
mveGerry Schmitz7-Apr-20 6:52 
AnswerRe: Background Data Tables In C# Pin
Mycroft Holmes7-Apr-20 11:11
professionalMycroft Holmes7-Apr-20 11:11 
AnswerRe: Background Data Tables In C# Pin
#realJSOP8-Apr-20 5:45
mve#realJSOP8-Apr-20 5:45 
GeneralRe: Background Data Tables In C# Pin
Mycroft Holmes8-Apr-20 13:15
professionalMycroft Holmes8-Apr-20 13:15 
GeneralRe: Background Data Tables In C# Pin
#realJSOP9-Apr-20 3:37
mve#realJSOP9-Apr-20 3:37 
QuestionNeed some tips... Sharing a collection of classes for display in a listbox? Pin
DaveHopeDev14-Apr-20 10:58
DaveHopeDev14-Apr-20 10:58 
AnswerRe: Need some tips... Sharing a collection of classes for display in a listbox? Pin
Luc Pattyn4-Apr-20 11:57
sitebuilderLuc Pattyn4-Apr-20 11:57 
GeneralRe: Need some tips... Sharing a collection of classes for display in a listbox? Pin
DaveHopeDev14-Apr-20 22:45
DaveHopeDev14-Apr-20 22:45 
GeneralRe: Need some tips... Sharing a collection of classes for display in a listbox? Pin
Luc Pattyn5-Apr-20 2:11
sitebuilderLuc Pattyn5-Apr-20 2:11 
GeneralRe: Need some tips... Sharing a collection of classes for display in a listbox? Pin
DaveHopeDev15-Apr-20 6:18
DaveHopeDev15-Apr-20 6:18 
GeneralRe: Need some tips... Sharing a collection of classes for display in a listbox? Pin
Luc Pattyn5-Apr-20 6:21
sitebuilderLuc Pattyn5-Apr-20 6:21 
AnswerRe: Need some tips... Sharing a collection of classes for display in a listbox? Pin
Mycroft Holmes4-Apr-20 12:41
professionalMycroft Holmes4-Apr-20 12:41 
AnswerRe: Need some tips... Sharing a collection of classes for display in a listbox? Pin
Gerry Schmitz5-Apr-20 11:03
mveGerry Schmitz5-Apr-20 11:03 
AnswerRe: Need some tips... Sharing a collection of classes for display in a listbox? Pin
BillWoodruff7-Apr-20 0:11
professionalBillWoodruff7-Apr-20 0:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.