15,887,083 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 Python 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 john1990_1 (Top 200 by date)
john1990_1
4-Nov-21 5:34am
View
I'm thinking of making when arriving to the lowest point possible to add a button saying: "Show more" and then remove all PictureBoxes and show more pics from the beginning in the same panel.
EDIT: I did the above.
john1990_1
3-Nov-21 17:05pm
View
Thx, it only seems like logging "All Done", but it's not all done, all the pics below (under in view) 32,767 pixels I think would be stuck there one over the other.
john1990_1
3-Nov-21 16:50pm
View
I make PictureBoxes, and put each new one below or on the right of the one before it, if its Bounds intersect with any of the previous ones, it goes down, but it hangs on 32,767 because when I put the new pic below the one before it, it doesn't go below it because of the limit, so it's an infinite loop. I added code to the question.
john1990_1
3-Nov-21 16:37pm
View
But the gifs stop going down at 32,767 as tested by me and realizing that this is the limit.
john1990_1
12-Oct-21 14:01pm
View
I think it's severely hard for me to do the mouse click transparency now, from easy to hard, how to disable keyboard focus plz?
john1990_1
12-Oct-21 13:54pm
View
Thx, what about the form not getting keyboard focus?
john1990_1
12-Oct-21 13:34pm
View
Thx but this is in VB and I want C# and it seems so much beyond my ability, would you please make it simpler? and another problem I detected now is that I don't want the keyboard focus to go to it so do you know how to do this plz?
john1990_1
12-Oct-21 13:04pm
View
I now just need a way to: If the user pressed on the "pic form" by mistake that appears on the desktop as a topmost window to show him pics fast for his subliminal brain, I want my form to get closed immediately (which I know how to do) and pass the mouse click to the form just below it, with a mouse click order, which I know how to do but not if the screen display scale is not 100% (125% or 150% or 175%...), I don't know how to locate the mouse press if the scale is not 100% and how to order a mouse click just where it was.
john1990_1
12-Oct-21 12:59pm
View
Dave would you please explain?
john1990_1
12-Oct-21 11:22am
View
I added to the question.
john1990_1
12-Oct-21 11:16am
View
Thx, all this I already did, I put the images in "Image" not "Bitmap" one file each time and show the form only on LoadComplete of the pictrurebox, so it's the same, the only problem is that if the user presses with a mouse and the form appears so he presses on the form by mistake the click gets eaten, I think in that case I would close the form and order a mouse click on that exact location, how can this be done with taking into account display zoom scale ratio?
john1990_1
11-Oct-21 19:04pm
View
No, I need the pic to be drawn on the screen efficiently and not be drawn slowly from top to bottom, I made a borderless form which is another solution but it takes keyboard focus and consumes mouse clicks, is there a way to make a borderless form that can't get focus and doesn't "eat" mouse clicks and lets them go to the window just below it?
john1990_1
22-Aug-21 12:41pm
View
You mean it's better that I switch to:
"System.Speech.Synthesis speechsynthesizer"
instead of:
"Speechlib SpVoice",
Will I have to change a lot in my program or it's basically the same code?
john1990_1
21-Aug-21 13:12pm
View
Thx but this is for:
System.Speech.Synthesis speechsynthesizer
Not for
Speechlib SpVoice
I would have to change all of my program, is there an easier way for me?
john1990_1
23-Jun-21 15:45pm
View
Thx a lot, this is not a straightforward way and makes use of clipboard which would be problematic for clipboard history programs and programs that speak text when clipboard is changed for example, why doesn't Windows make something like xsel that is in Linux there must be a reason do you know?
john1990_1
8-Jun-21 16:33pm
View
I'm sorry for bothering you! have a nice day/night!
john1990_1
8-Jun-21 13:18pm
View
You mean you provided an XML code that makes a bug and I should use my own XML?
If yes then when I learn XML and how to do this I would get to it, I was just testing...
john1990_1
8-Jun-21 12:58pm
View
https://prnt.sc/14qiotw
john1990_1
8-Jun-21 12:19pm
View
I used the exact code you provided.
john1990_1
7-Jun-21 10:16am
View
Thx, but I'm having a bug:
System.FormatException
HResult=0x80131537
Message=XML content not valid.
Source=System.Speech
StackTrace:
at System.Speech.Internal.Synthesis.VoiceSynthesis.Speak(Prompt prompt)
at System.Speech.Synthesis.SpeechSynthesizer.Speak(Prompt prompt)
at System.Speech.Synthesis.SpeechSynthesizer.SpeakSsml(String textToSpeak)
at AppTestSpeechEmotions.Form1..ctor() in C:\Users\roberto\source\repos\AppTestSpeechEmotions\AppTestSpeechEmotions\Form1.cs:line 30
at AppTestSpeechEmotions.Program.Main() in C:\Users\roberto\source\repos\AppTestSpeechEmotions\AppTestSpeechEmotions\Program.cs:line 19
This exception was originally thrown at this call stack:
System.Xml.XmlTextReaderImpl.Throw(System.Exception)
System.Xml.XmlTextReaderImpl.Throw(string, string[])
System.Xml.XmlTextReaderImpl.ParseQName(bool, int, out int)
System.Xml.XmlTextReaderImpl.ParseAttributes()
System.Xml.XmlTextReaderImpl.ParseElement()
System.Xml.XmlTextReaderImpl.ParseDocumentContent()
System.Xml.XmlTextReaderImpl.Read()
System.Xml.XmlTextReader.Read()
System.Speech.Internal.Synthesis.SsmlParser.Parse(System.Xml.XmlReader, System.Speech.Internal.Synthesis.ISsmlParser, object)
Inner Exception 1:
XmlException: Name cannot begin with the '/' character, hexadecimal value 0x2F. Line 1, position 30.
john1990_1
6-Jun-21 12:18pm
View
I don't even know where to write the XML code and how... if you would recommend a video I would be happy otherwise I would just try to search on my own.
john1990_1
6-Jun-21 11:39am
View
Please submit as an answer, please also recommend a video teaching how to deal with XML to make voice, when I know only C# .NET WinForms and Console.
john1990_1
5-Jun-21 15:55pm
View
I found this:
https://archive.org/details/TTSVoices/%21SAPI4.png
They say it has 75 voices, I'm downloading it without Balabolka as I would use my program.
john1990_1
5-Jun-21 15:47pm
View
The funny voices (zero2000.com) worked in XP Service Pack 3 in VMware, I like them for fun and would like them in my program (at least the ones installed in an exe file that is an addition to those in their software), do you know how my program could detect them?
john1990_1
5-Jun-21 14:36pm
View
The free funny ones work in their program only in making an mp3 file of the sound, the sound doesn't get played, I will try on Windows 7 in a VMware machine.
john1990_1
5-Jun-21 14:31pm
View
Oh forget about the funny free ones they don't even work in their program called: "2nd Speech Center" they're buggy.
john1990_1
5-Jun-21 14:27pm
View
I also installed the funny free ones from here (only SAPI4 for Windows 10 I'm using) and I don't see them in my program and not in Control Panel:
http://www.zero2000.com/free-text-to-speech-natural-voices.html
john1990_1
5-Jun-21 14:15pm
View
I activated "Eva Mobile Voice" with a .reg file in Windows and it appears in the control panel as in this link:
https://windowsreport.com/unlock-new-text-to-speech-voice-windows-10/
But not in my program with my code, what to do please?
john1990_1
5-Jun-21 14:02pm
View
I looked here, it seems that Aria isn't available easily for Windows 10:
https://support.microsoft.com/en-us/topic/download-voices-for-immersive-reader-read-mode-and-read-aloud-4c83a8d8-7486-42f7-8e46-2b0fdf753130
john1990_1
5-Jun-21 5:03am
View
I found 2 .reg files that do the job and enable Cortana:
youtu.be/eNotWXTcBOM
What about Microsoft Aria?
john1990_1
5-Jun-21 4:26am
View
And why doesn't Microsoft enable it by default?
john1990_1
5-Jun-21 4:26am
View
What about this solution from: Cynthia Fridsma
https://www.quora.com/How-can-I-use-Cortana-for-text-to-speech
john1990_1
5-Jun-21 4:19am
View
Thx, isn't there something simpler?
john1990_1
28-May-21 21:25pm
View
Thanks a lot.
I understood only 60%, I will watch what seems to be a decent 35 hours playlist of C# and then take another look.
youtube.com/playlist?list=PLLWMQd6PeGY12yNE714jffLFnMVZCwvvZ
john1990_1
28-May-21 20:45pm
View
Sorry, I don't understand what you mean by "game loop".
john1990_1
28-May-21 19:18pm
View
The drawing happens only in:
Timer_Tick()
Adding to a list of threads and then running the threads from Timer_Tick() and joining each thread with the main thread till it finishes, would you please tell me what I should do? I need to draw pixel fires like this:
int times=0;
DrawPixelFire(int x, y)
{
g.DrawPixel(x,y,Color.Orange);
Sleep(100);
times++;
if(times==100) return;
DrawPixelFire(x - 5 + Random.Next(0,11),
y - 5 + Random.Next(0,11));
}
And the code above must run without the program being frozen and nonresponsive so this must be in a background thread.
And I must use drawing at the same time, would you guys try and help me instead of just rebuking me? I'm a hobbyist and don't work for money by the way.
john1990_1
28-May-21 14:54pm
View
I edited the code, is it good now?
john1990_1
28-May-21 14:32pm
View
Please see other comments.
john1990_1
28-May-21 14:28pm
View
You told me to make *one* timer and run all actions in it, that's what I did, now I have to create instances of:
new pen()
How to dispose of them? and why doesn't VS dispose of them by itself? why is GC inefficient?
john1990_1
28-May-21 13:58pm
View
What can I do about that?
john1990_1
28-May-21 13:23pm
View
You mean RAM? where does it not dispose itself and how to make it dispose itself?
Another question: Why doesn't Visual Studio free up resources when their scope ends when not in use (like after leaving a curly brackets) with the garbage collector in a maximum of 2 mins (as the garbage collector fires)?
john1990_1
28-May-21 13:04pm
View
I apologize, I learned C# by trial and error and I'm not a professional, and my code works in drawing on the form random fire pixels at the same time and make them move on the form in a recursive method, my code was tested and works, would you please explain like I'm 5 years old why my code is bad?
john1990_1
28-May-21 12:42pm
View
Why? maybe I made it.
I edited the code in the question.
john1990_1
28-May-21 1:07am
View
Thx but I know about the mouse move and how to make the fire pixels initially, but I want a way to draw them all each in a different thread and an instance of a method at the same time and animate it down and to the sides randomly (each fire pixel) by itself, what I mean is the drawing with a "Graphics g;" at the same time, is there a better way to do what is in my code that I have supplied to this question?
john1990_1
27-May-21 12:50pm
View
Sometimes I need to draw on the form fire where the mouse is when the mouse is moving and remove the random points (pixels) near the mouse after 0.1 second (to remove the random points I would draw only the table squares affected by the fire pixels), would someone please help me in how to draw on a form simultaneously yet? OnPaint gets fired rarely and doesn't animate the form well, I would save the location of the fire pixels and draw them on OnPaint but I need a way to draw at the same time on the form please!
john1990_1
27-May-21 3:47am
View
I want different methods to order maybe at the same time drawing of stuff on the form to add them, how?
I would work on them being drawn on OnPaint too but OnPaint doesn't happen every millisecond, should I use something other than WinForms? how to have many timers and backgroundworkers order drawing on the form with Graphics g object maybe at the same time?
john1990_1
23-May-21 23:16pm
View
Why doesn't the program automatically dispose or leave for garbage collector by stopping the reference of:
{
Pen pen= new Pen();
}
after its scope ends? is it because it's a GDI? so GDI objects don't get disposed alone?
john1990_1
23-May-21 22:59pm
View
I really need that, should I emigrate from WinForms?
john1990_1
23-May-21 22:44pm
View
Can I create a new g (Graphics) for each thread and use them at the same time?
john1990_1
23-May-21 22:36pm
View
Thx, solution accepted.
john1990_1
23-May-21 22:24pm
View
Exception thrown: 'System.InvalidOperationException' in System.Drawing.dll
I'm getting one of the above for each additional square each time more than one Bgw_DoWork is fired in a foreach loop at the same time, in addition to only one coordinates (x,y) being printed in Debug.WriteLine as shown in my edited code.
john1990_1
23-May-21 19:45pm
View
So would you please tell me what to change in my code so all the DoWork and RunWorkerCompleted fire and not only of the last bgw? how to make multiple bgw in the same foreach loop without them all being overwritten by the last bgw?
john1990_1
22-May-21 18:50pm
View
Do you mean only one timer to keep ticking every 100ms and checking for signals in variables from my program to draw and hide some stuff to animate the squares?
Would you please provide me with an answer to the question with an example of how this can be done with a single timer because it seems very complicated to me and in terms of programming: very inefficient to type...
john1990_1
22-May-21 14:26pm
View
You don't realize how hard it would be to implement it with timers, like first I create and run a timer, and then I check which time the timer is ticking, and if it's the first time then draw, and then make "NumberOfTimesTimerTicked++" and a switch(NumberOfTimesTimerTicked) statement and make:
case 0: draw() timer1.Interval=300; timer1.Start();
case 1: hideDrawing(); timer1.Stop(); timer1.Dispose();
And also this way I may also access "g" for drawing more than once simultaneously and get an error.
john1990_1
22-May-21 14:10pm
View
I can make a point:
repeat:
try
{ g.DrawXYZ();}
catch
{ if(e.CancelPending) return; goto repeat;}
And in the very improbable possibility that more than one thread is gonna access the Graphics then repeat is gonna fire, I know that's not a professional code but I'm a hobbyist and this isn't very much inefficient, do you know of any video that teaches how to do this job easily and professionally? also I think the threads don't mean that if I have 500 threads open only 2 is gonna work in DualCore and 1 in SingleCore and 498-499 are gonna wait 5 seconds for the first 1-2 to finish if the first thread has Sleep(5000), the cores are gonna exchange work on the threads I believe.
I'm creating a foreach loop and my problem is that in my code only the last square in the foreach loop gets animated, and if I make a wait in the foreach loop of 2,000 ms, then the squares get animated one by one from beginning to end, my question is why in my loop when many are made and added to a global list, only one of them which is the last fires? the last bgw is somehow killing the one before it and that the one before it and on... and only the last fires, how to make all bgws in the foreach loop in my code fire into dowork() and RunWorkerCompleted().
john1990_1
22-May-21 10:52am
View
This works, I'm anyway interested in knowing if it's possible to make many BackGroundWorkers in a for loop as this would change my life... the way you described is a little resource inefficient and not very professional code, with RunWorkerComplete I can do some stuff and timers are going to be very problematic as RunWorkerComplete doesn't exist in timers, I want to change my C# life with learnig threads, how to make each thread stand by itself and not have only the last one alive?
john1990_1
22-May-21 6:18am
View
I edited the code in this question to fix the Pen issue.
john1990_1
22-May-21 6:09am
View
I'm sorry, you got the code wrong, I'm running a: System.Threading.Thread.Sleep(300); and it would freeze my program and my program's window woldn't be able to move if it's not another task, I wouldn't have used BackGroundWorkers if I didn't need them, I will make the use of "Pen pen" for all in the same instance, would there be a problem of accessing "g" at the same time if the program is used for a long time? How to make many simultaneous async threads that animate the squares on board without having the window freeze for 300 ms?
john1990_1
10-May-21 13:35pm
View
I edited the question, plz see if my second code would work.
john1990_1
10-May-21 12:49pm
View
Do you know how to allow my program to fill all RAM and then use the 490 GB that are free in my SSD as RAM?
john1990_1
10-May-21 9:56am
View
3-> This is what I'm asking, with the lack of DownloadFileCompleted event how do I know when to dispose the WebClient, I use "using" which is supposed to free up the memory when not used right?
john1990_1
10-May-21 9:55am
View
2-> I try to download the file again as when downloading again the download might succeed.
john1990_1
10-May-21 9:53am
View
1-> Well it's a simplified version of my code, I will edit it to make it include "m".
john1990_1
10-May-21 9:51am
View
4-> DownloadFileCompleted event handler isn't firing, it's a Microsoft problem as I understood from a Google search.
john1990_1
10-May-21 1:46am
View
I updated the question with the filled catch statement, in fact I have another catch in it and so on around 5 times...
john1990_1
10-May-21 1:12am
View
The catch block retries to download async again, but I removed this for simplicity and didn't realize that it's useless here, I get 30 matches and wait 2.15 seconds for the next page, the pics get downloaded, DownloadFileCompleted event isn't firing so I know how many are getting downloaded and a Google search showed it's a Microsoft problem or something, but the pics get downloaded so I know there aren't that much active downloads.
john1990_1
3-Apr-21 18:46pm
View
Yes, sorry, my mistake.
john1990_1
3-Apr-21 18:39pm
View
On the global keyboard hook of keydown on F1-F12 I make e.Handled=true; if WinKey was as the user choose (pressed/not pressed) and my form opened. So I don't get a help window open on F1 for example.
john1990_1
3-Apr-21 18:23pm
View
Please see my code in my answer...
john1990_1
3-Apr-21 18:20pm
View
Deleted
Done, I updated the question check it please.
john1990_1
3-Apr-21 18:14pm
View
Thanks, I used to do this way but maybe it wasn't working well, like sometimes the global keyboard hook doesn't successfully register a keydown or keyup of Ctrl for example and I had issues with it when the form opened when I didn't want it to open (Ctrl was registered as down as keyup wasn't run for it). Anyway I will give you 4 stars and accept the answer.
john1990_1
3-Apr-21 15:01pm
View
I can use global for example WinKey+F1 to open my winform.
john1990_1
3-Apr-21 14:58pm
View
Ok, thx, I still want my users to be able and have the option like in Ditto and some programs, to use WinKey in their hotkey, would you please tell me how to do it?
john1990_1
3-Apr-21 9:17am
View
Also the code you provided seems to be about F5 and not WinKey.
john1990_1
3-Apr-21 8:34am
View
Thx, I'm sorry I know only C# (and HTML) in WinForms and Console.
john1990_1
3-Apr-21 8:13am
View
Thx, you are right, but still I want this option in settings of my program as I have seen it in Ditto program as in this screenshot:
https://prnt.sc/11346r5
john1990_1
3-Apr-21 7:47am
View
Many programs use the Win key, for example I know of Ditto.
john1990_1
3-Apr-21 7:45am
View
My apologizes, I updated the question now, please check it.
john1990_1
3-Apr-21 7:31am
View
My apologizes, I updated the question now, please check it.
john1990_1
13-Dec-20 13:19pm
View
I almost did it all, check my answer and see if you can provide me with the event IDs please...
john1990_1
16-Nov-20 13:23pm
View
Thx, for future readers: this worked for me:
static void HandleSessionSwitch(object sender, Microsoft.Win32.SessionSwitchEventArgs e)
{
if (e.Reason == Microsoft.Win32.SessionSwitchReason.SessionUnlock)
{
MessageBox.Show("Screen unlocked");
}
}
private void FormMain_Load(object sender, EventArgs e)
{
Microsoft.Win32.SystemEvents.SessionSwitch += HandleSessionSwitch;
john1990_1
16-Nov-20 1:56am
View
I changed to:
void FormMain_Shown(object sender, EventArgs e)
{
SessionSwitch += SystemEvents_SessionSwitch;
}
And put it all in FormMain which is called from Run in Main(), maybe I should run another form and close it in Main() so this starts firing?
john1990_1
15-Nov-20 23:33pm
View
I'm running it in Windows Forms app, maybe I should move it to FormMain's class not in Program class and Main()?
john1990_1
15-Nov-20 17:55pm
View
Thx, I added in Main() this:
SessionSwitch += SystemEvents_SessionSwitch;
And still the event doesn't fire (not even to the breakpoint on the "if").
john1990_1
15-Nov-20 16:17pm
View
I was expecting some help as what I'm finding in Google isn't working.
john1990_1
15-Nov-20 14:09pm
View
Or I can make my program look in Even Viewer with a timer every 100 milliseconds and check if there was an unlock in the past 150 milliseconds and then if yes not do the action again for 400 milliseconds...
john1990_1
13-Nov-20 9:41am
View
Deleted
I did everything as described, I also downloaded the source code and added the if(e.Modifiers==Keys.Control) {;} and it returned: "None".
john1990_1
13-Nov-20 9:39am
View
Deleted
Why have the comments disappeared?
john1990_1
13-Nov-20 9:37am
View
I did everything as described, I even used the source code you linked to and when I added:
if (e.Modifiers == Keys.Control) {;}
It never got inside the brackets and even while I'm still holding LCtrl it the Modifiers said: "None"
john1990_1
13-Nov-20 8:05am
View
Thx but sorry even when I press Left or Right Ctrl it still gives me:
Modifiers as "None".
john1990_1
10-Nov-20 8:20am
View
Yes.
I got this as a "Warning" in VS:
Severity Code Description Project File Line Suppression State
Warning The referenced component 'C:\Users\[name]\Dropbox\My C# Apps\translate\BombaTranslateSourceV38\packages\Microsoft.Web.WebView2.1.0.674-prerelease\build\..\..\lib\uap10.0\Microsoft.Web.WebView2.Core.winmd' could not be found. BombaTranslate
john1990_1
10-Nov-20 7:37am
View
https://docs.microsoft.com/en-us/microsoft-edge/webview2/gettingstarted/winforms
I installed the Nugget and can't find WebView2 in my controls when I open design view of my WinForm.
john1990_1
10-Nov-20 6:28am
View
Can this Javascrpit execution do these in the website:
1- Submit a textbox.
2- Set text in a textbox.
3- Get text from a textbox.
4- Select a textbox (set input focus on it).
If yes, how?
john1990_1
10-Nov-20 5:49am
View
If I use Edge as you suggested and I saw that it's easy: "Install a Nugget and add a browser to the winform", can I still access its document the same way as a normal webbrowser control as I do now accessing this HTMLElement?
john1990_1
7-Nov-20 12:01pm
View
I've been with this program for a long time and Google doesn't change the Translate page a lot, every time it does I make an update to my program. I'm a hobbyist and this program is for me and some friends.
john1990_1
6-Nov-20 8:33am
View
I had this problem before and I fixed it as I used a code that makes my program use the latest version of IE available, for now it works, when it stops working I'm going to work on that, I'm a hobbyist and couldn't study at a university and my knowledge in programming is very limited.
john1990_1
6-Nov-20 6:49am
View
When Ctrl+C is pressed 3 times fast anywhere in Windows it opens the winform with the webbrowser control in it and pastes what is in clipboard in the textarea for even faster and easier translating from anywhere in Windows, then pressing "Esc" minimizes the winform.
john1990_1
6-Nov-20 6:33am
View
I found how to access the Element, it's just that I'm a hobbyist and couldn't study formally and learned it all by trial and error, the program is for me and a couple of my friends, so do you think I should create a whole Google Translate website? I don't think this usage of the source text area is prohibited!
john1990_1
6-Nov-20 5:07am
View
I tried looking for the ID of the element in Inspect in Chrome but I can't find it, and yes, every ~ 4-5 years I'm gonna change the ID of the element, this time I can't find the ID, can anyone help me please to tell me how to access the HTMLElement? as I said I'm just putting a website in a webbrowser in my program, I just want to make it easier for the user by putting what is in his clipboard into the textbox, my program is for me and my friends with no payments and no donations accepted. how to get to the HTMLElement from class name?
john1990_1
5-Nov-20 14:23pm
View
I'm just putting a website in a webbrowser in my program, I just want to make it easier for the user by putting what is in his clipboard into the textbox.
john1990_1
5-Nov-20 13:36pm
View
Thx but I want a robust Google Translate website with all its features and visual elements, I implemented the API long ago and it wasn't good enough.
john1990_1
24-Oct-20 13:32pm
View
I thought the link is usually the same for everybody except for switching 32 bit and 64 bit maybe.
john1990_1
24-Oct-20 12:56pm
View
Right, I found it with a search in my PC using Everything program, I would accept your solution so please submit it. In fact I tried before but using an other path that was wrong.
john1990_1
24-Oct-20 12:47pm
View
Sorry, the answer is not there unless I read whole Microsoft websites or something, I updated how I open a link in Chrome in my question, please check it out and give me a path to a file where MS Edge Beta is in and I can put it in Process.Start() and it would launch Edge Beta with the given URL...
john1990_1
24-Oct-20 12:35pm
View
The answer is not there, what you linked is for "Edge" not "Edge Beta" version.
john1990_1
24-Oct-20 12:31pm
View
In my "What I have tried" the first line of code runs Edge not Edge-Beta, the second line doesn't run anything and is only imaginary to explain what I want to do, I want a substitute for the second line, forget everything and plz provide me with a code in C# .NET that launches Edge-Beta with a link like http://www.outlook.com and not "normal Edge", I want the the link to open in Edge Beta version.
john1990_1
24-Oct-20 11:23am
View
I want plz a C# code that opens www.outlook.com in Edge Beta browser.
john1990_1
24-Oct-20 10:46am
View
This doesn't work: System.Diagnostics.Process.Start(@"microsoft-edge-beta:http://www.outlook.com", "http://www.outlook.com"); I want something else that works plz.
john1990_1
18-Apr-20 8:25am
View
I would guess there's a more efficient way right?
john1990_1
17-Apr-20 15:33pm
View
Thx, done.
john1990_1
17-Apr-20 15:10pm
View
https://en.wikipedia.org/wiki/Monty_Hall_problem
https://www.youtube.com/watch?v=4Lb-6rxZxx0
john1990_1
17-Apr-20 14:00pm
View
So the voices work only when I'm connected to the internet and my texts get uploaded and the audios are downloaded? first 12 months for free and then payment based on letters and audio length?
john1990_1
13-Apr-20 7:14am
View
It says in your link:
"It’s also worth noting that these voices have been exposed to developers through the JavaScript SpeechSynthesis API. This means that any web-based text to speech application can leverage them to create more configurable and human sounding experiences in the new version of Microsoft Edge!"
Can I add them to a not web based app (WinForms.NET C#)?
john1990_1
13-Apr-20 4:25am
View
They work in the new Edge.
john1990_1
29-Mar-20 13:57pm
View
I want the current window of my program that orders the click, I want the program that orders the click to click on itself, when the user presses F1 in Windows globally my program opens a window form and in it there's a web browser control with Google Translate page navigated to in it, I want to simulate a mouse click on the program that simulated it (my program (app)), I want to simulate the mouse click in order to select input focus on the textbox of "source" in Google Translate because wb.Document.GetElementById("Soucre").Focus() doesn't always work.
john1990_1
29-Mar-20 13:18pm
View
I just was making the text bold as I don't know how to do it here, I wasn't shouting, I want to make the important points bold, yes I saw what you referenced to, it is not what I want, I want to make sure my window is open and displayed on the display and when the mouse click that my program does on the window of my program it goes to my program and not to something else if my window didn't open fast and lagged. I want to check a point on the screens and make sure it's on my form and my form is displayed!
john1990_1
29-Mar-20 13:03pm
View
The window is *my program's window*, my program wants to order a mouse click on MY OWN WINDOW THE SAME PROGRAM THAT ORDERS THE CLICK IS THE SAME PROGRAM THAT RECEIVES THE CLICK, this is because wb.Document.GetElementById("source").Focus() is not working, I want to order a mouse click on my program's window to select focus of input on it, this is used when F1 is pressed and my program opens its window for the user to start typing in the source textbox is the "web browser control" in my program's window, my program is to translate, I want to make sure the window is open because when my Winfors.Net app orders Windows to simulate a mouse click on the same app's window I don't want this mouse simulated click to go somewhere other than my program's window. I think it's pretty much clear!!!
john1990_1
29-Mar-20 8:34am
View
I want to make sure formMain is actually shown on the display and there's no lag preventing it from being shown on the display, so I made 3x3 square of colors and this way there's a tiny chance that the pixel colors aren't from my form, because I want my program to order Windows to fake a mouse click on my program (form) in order to select the form in my Google Translate page in my web browser control in my form! I tried everything to select the form like formMain.webBrowser.Document.GetElementByID("source").Focus(); and stuff like that and none of them is always successful so I make a mouse click that always works but I dont want it to click something else I want to make sure the click is on my program (my form).
john1990_1
28-Mar-20 17:12pm
View
Thx, didn't work for me:
I edited my question with 2 new blocks of code, plz see them.
john1990_1
28-Mar-20 13:45pm
View
I know only C# from school and I'm a hobbyist, I study biology, would you please help me fix the risk in my program of making sure none of my friends who use my program and me end up with a random mouse click in Facebook?
john1990_1
28-Mar-20 13:21pm
View
This is all I could come up with:
HtmlElement textArea1 = formMain.webBrowserGoogleTranslate.Document.GetElementById("source");
if (textArea1 != null)
{
formMain.webBrowserGoogleTranslate.Document.InvokeScript("'click'", new object[] { textArea1 });
}
john1990_1
28-Mar-20 12:46pm
View
I will try to publish the program to my hard drive for testing, would you please tell me all methodnames in "InvokeMember" or things I can ask my program to do on the web browser so the source textbox gets selected? For example maybe "InvokeScript" does a better work to select the source textbox?
john1990_1
28-Mar-20 11:07am
View
I did this a zillion times, I call wb.Focus(); and wb.Document.GetElementByID("source").InvokeMember("focus"); and many things like these. It gets selected only sometimes, and I realized this can't be done this way, if you can fix it like this then awesome! otherwise plz help me make sure the fake mouse click doesn't go to something else on that point in the display.
john1990_1
28-Mar-20 10:37am
View
You don't understand, I have a Windows Forms program, in this program there's a web browser control, in this web browser control Google Translate is sometimes navigated to, I want to focus on the "source" textbox in the web browser control, I tried many way and I didn't find a way that always does select the input on the source textbox, I fake a mouse click from my program on my program, on an empty place in my program (not on the browser control), I want this click from my program to my program, I want to make sure that my program is shown on the display and isn't lagging to open, because if my program thinks my program is shown on the display and it does a click thinking my program is there to catch the click, the click my be clicked on "Like" on FB if my window of my program wasn't shown on the display!
john1990_1
28-Mar-20 10:07am
View
I want to invoke a mouse click on an empty point on the form to select input to Google Translate's source textbox, I want to make sure the form is shown, I want to checks colors on the display that are in the form, so the click doesn't go to liking a post on FB or something, how do I make sure the window is not in lag and its colors are actually on the display? does the method you're suggesting make sure the click doesn't go to another window if my program is in lag for being displayed on the display?
john1990_1
28-Mar-20 8:28am
View
Does this way make sure the window isn't in lag and is in fact shown on the screen with colors? I mean is this the same as if one called GetPixel on the display it detects the colors shown on the window and it isn't opening or in lag?
john1990_1
27-Mar-20 12:49pm
View
I want to set focus input on the source textbox in the web browser control in the form when the form opens or F1 is pressed, I tried for a really long time but no way worked flawlessly except invoking a mouse click on an empty pixel on the form.
john1990_1
27-Mar-20 12:47pm
View
The colors are the exact same, it's just that I can't get to their true location as one way is giving me the location at 100% zoom and one at 150% zoom, I tested it and I saw it gets the image not in the right location, but when I made the zoom at 100% in all screens, I got the true pic of the form (when I sent the coordinates of the form and size at new Size(200,200)).
john1990_1
27-Mar-20 12:21pm
View
It's about Windows desktop screens zoom being at 150%, it worked when I made the zoom 100%, how to fix that (make the program take zooming in consideration)?
john1990_1
27-Mar-20 12:19pm
View
I debugged for a long time and reached a dead end, what if it's about Windows screens zoom?
john1990_1
27-Mar-20 12:02pm
View
I added my method of "GetPixel", check it out plz.
john1990_1
27-Mar-20 9:59am
View
What if the windows is on 2 or more monitors at the same time?
john1990_1
27-Mar-20 9:50am
View
I think the problem is because I have 4 screens, how to tell GetPixel to look for the point in 4 screens coordinates. (e.g. 3 on the table and one above)
john1990_1
27-Mar-20 8:32am
View
No problem, any guess as why this isn't working?
john1990_1
27-Mar-20 6:42am
View
When I invoke a mouse move to the location of PointToScreen it goes to the middle of my 3x3 square. Would you want to see the full VS source code? how can I share this?
john1990_1
27-Mar-20 6:01am
View
I need to be sure, so I give up if that's true, how can we know for sure whether this is the problem?
john1990_1
27-Mar-20 5:54am
View
Putting the pixels at location Y=20,21,22 didn't work.
john1990_1
27-Mar-20 5:50am
View
I made a Color c=GetColor(); of the first address and it returned a random and unnamed color (as "Named color" was false), however when I do a mouse click on the first location it presses correctly on the location of the drawn pixels... maybe it's because of blurr from the bar of the form (window) and I should get the pixels a little down to run away from the blurr.
john1990_1
27-Mar-20 0:38am
View
I want to set and get pixels with System.Drawing.Graphics not Bitmap, to set and get the colors of individual pixels on my form, I used it now and it works awesomely!!! EDIT: Found a better way and added it to the answer.
john1990_1
12-Feb-20 11:02am
View
This was an issue before and I asked and they told me how to make the program use the newest version of IE, now the website (page) opens, but it takes 7-15 seconds for text in source textbox when changed to be translated (for the translation to appear in the translation textbox)... I think the "submit" command on the source textbox have solved it but I haven't given it enough testing so I'm not sure..
john1990_1
9-Feb-20 16:20pm
View
In fact it translates, it just takes sometimes 7-10 secs and sometimes instantly.
john1990_1
9-Feb-20 16:20pm
View
In fact it translates, it just takes sometimes 7-10 secs and sometimes instantly.
john1990_1
9-Feb-20 16:19pm
View
I asked in Google community, there are no answers yet!
john1990_1
9-Feb-20 11:47am
View
It used to work awesomely and suddenly it happened and also another problem that when I navigate other webbrowsers to Wikipedia and Google Images for example the site takes some 10 secs to load!
john1990_1
9-Feb-20 11:33am
View
It is supposed to be something like submitting the text in the textbox for the page to know it should translate it, I do a lot of "focus" and "select" commands on it maybe they're the reason, you mean in Google community, I will try?
john1990_1
9-Feb-20 11:32am
View
No it sometimes works and sometimes doesn't.
john1990_1
7-Dec-19 14:07pm
View
Thx a lot.
john1990_1
7-Dec-19 8:38am
View
I'm more familiar with WinForms... also I don't want a console window. Also I need the key to be detected globally and not only on the console window. can I make: "while (true) Thread.Sleep(2000);" in void Main() ?
john1990_1
7-Dec-19 8:33am
View
I know global mouse and keyboard hooks, but how to leave my exe running till a keyboard key is pressed?
john1990_1
7-Dec-19 7:46am
View
By the power button. No in fact I would need another way since the PC doesn't sleep. Dunno, so we need to disable only the mouse.
john1990_1
28-Jun-19 10:38am
View
I'm just learning and practicing as a hobby.
john1990_1
28-Jun-19 9:26am
View
I know, but it's not useful for me, I'm terribly strict on time and I need a simple way to enter IPs and connect to them and exchange Unicode strings among them...
john1990_1
27-Jun-19 15:05pm
View
That's too complicated, would you please provide a link to a video?
john1990_1
24-Jun-19 10:12am
View
That's too complicated, would you please provide a link to a video?
john1990_1
24-Jun-19 8:17am
View
So please direct me to a link on how to do it for more than one peer...
john1990_1
23-Jun-19 17:07pm
View
I know only C# Winforms.Net, is this one in the following video good?
youtube.com/watch?v=BDVfpPq3weo
john1990_1
23-Jun-19 12:58pm
View
This one?
youtube.com/watch?v=BDVfpPq3weo
john1990_1
18-Jun-19 11:23am
View
Thanks, I'm clueless on what to do.
john1990_1
18-Jun-19 10:50am
View
Please see the new problem in the other comments of this answer.
john1990_1
14-Jun-19 12:52pm
View
I have a problem, when I use the code that solved the previous problem I get in the address bar about:blank and not empty and focused for search.
john1990_1
13-Jun-19 11:43am
View
This worked, thanks!
System.Diagnostics.Process.Start("chrome.exe", "about:blank --d");
john1990_1
13-Jun-19 11:33am
View
I found it, it's "-d", how to apply it when running it from an exe made in Visual Studio C# Winforms as shown in the question?
john1990_1
13-Jun-19 8:27am
View
In Edge it's fine, but in Chrome it opens a new windows not new tab in the existing window.
john1990_1
22-May-19 13:52pm
View
Thanks, please see updated question.
john1990_1
22-May-19 13:52pm
View
Thanks, please see updated question.
john1990_1
22-May-19 13:52pm
View
Thanks, please see updated question.
john1990_1
22-May-19 13:43pm
View
What class or reference or Nugget should I use to generate an audio?
john1990_1
21-May-19 12:06pm
View
I knew about the monkey thing before, but how is this related to the second link? also, any info about how to generate audio?
john1990_1
9-May-19 12:00pm
View
Maybe I make a borderless form with "TopMost=true;", with TransparentKey to the same as its Backolor, but I'm afraid the user would lose mouse presses if he presses on the line/form?
john1990_1
8-May-19 21:51pm
View
Thx a lot, this is problematic because what was behind the drawn line may change, and drawing the drawing of the saved snapshot is slow in C# .Net VS 2017 for a 50X50 pixels I think.
john1990_1
8-May-19 20:15pm
View
Thx, but I only understand C#, I didn't understand the link at all!
john1990_1
19-Jan-19 0:26am
View
Could the "program-id" or something have changed by an act of copying or publishing or changing something in the source code?
john1990_1
18-Jan-19 23:40pm
View
I'm not familiar with how it was before the update and tried VS 19 and 17, I used the default settings and have not much info on publishing or installing.
john1990_1
18-Jan-19 23:34pm
View
I will check, anyway it used to work with the default settings. EDIT: Nothing found.
john1990_1
18-Jan-19 23:30pm
View
What do you mean by "missed a setting"?
john1990_1
18-Jan-19 23:25pm
View
I don't know much, I just click "Build->Publish SpeakTextApp", and choose a location on my hard drive like "D:\SpeakTextV7.9\".
Then double click Setup.exe and a window called "Application install - security warning" opens with a button called "Install" and it gets installed in one click then.
john1990_1
18-Jan-19 20:02pm
View
Thx a lot.
john1990_1
18-Jan-19 18:47pm
View
Thx a lot, will it increase published program size if the referenced DLL is built in in Windows?
john1990_1
18-Jan-19 16:29pm
View
Do I have to re-publish it after removing PresentationCore 4.0 reference in VS in the solution? (to make the program smaller and/or with better performance).
john1990_1
18-Jan-19 16:27pm
View
I can see PresentationCore 4.0 in my references inside my VS when the solution is open, but my question is if I don't use one or more of the references at all that are added inside VS in references section, do they still take size when the program is published (inside the Windows File Explorer folder where it's published and can be installed into Apps & Features), what if the reference is built in in Windows (I didn't make it nor copy it from somewhere), does it still take size in my Windows File Explorer folder of the source code of the project? I think I'm clear.
john1990_1
18-Jan-19 16:02pm
View
Thx, I don't find the name "presentation" in the Windows File Explorer folder of my program (source code) (with PresentationCore 4.0 referenced), it's built in in Windows I think so it doesn't take up space in the published program nor Windows File Explorer soure code folder other than the sentence in which it says it's referenced, maybe VS detects that this dll is not used (there are lines using it but these lines cannot possibly run) and doesn't care to load it from Windows or even removes the sentence that links it to it from the published program.
john1990_1
14-Jan-19 8:00am
View
That's not a repost, in the past question I asked how to make Windows TTS detect all installed voices in Windows, after giving up, here I'm asking how to use the online TTS of Google.
john1990_1
10-Jan-19 8:23am
View
How do I do the instructions in here?
https://stackoverflow.com/questions/19864385/detecting-all-installed-sapi-voices
john1990_1
10-Jan-19 7:57am
View
Thx, ok, voice is not a language, there's a problem in synthesizer.GetVoices() which is it doesn't detect voices whose language is other than English, I want please this bug to be solved, someone told me long ago it's about 32-64 bit processors and how the voices are built, if that helps...
john1990_1
10-Jan-19 7:41am
View
I want it to work with any language chosen by the user in the combobox and for any text in his clipboard.
john1990_1
10-Jan-19 7:27am
View
When the user changes the text in the combobox, the SpeechLib.SpObjectToken which exists in SP.GetVoices() is done with SP.Voice=v;. I just want SP.GetVoices() to get non English voices too in Windows Forms App C#.
john1990_1
9-Jan-19 10:30am
View
This isn't what I'm looking for, my Windows Forms App program detects the presses Ctrl+C twice fast and speaks text in clipboard when they're pressed, it currently works only in English, I want the user to choose a language from the combobox (each language that its text-to-speech is installed in Windows), when the user chooses a language and a name of a person (for example "Microsoft Asaf" for Hebrew), the voice property of the SpeechLib.SpVoice gets changed, and speech is done in this language for the text in clipboard, the problem is that SP.GetVoices() should detect also non English language!
john1990_1
8-Jan-19 3:27am
View
I understand from you that when the heap is getting full the garbage collector kicks in and releases the cache of webbrowser controls (after webbrowser1.Dispose() has been called), and I don't need to worry about my users' RAM getting full?
john1990_1
8-Jan-19 2:04am
View
Thanks, this is so complicated, any simple way to sum it up to add lines of code to my program?
john1990_1
8-Jan-19 1:55am
View
Ok, sorry.
john1990_1
2-Jan-19 15:42pm
View
https://www.codeproject.com/Questions/1272986/How-to-make-new-Google-translate-website-work-in-w
john1990_1
2-Jan-19 12:07pm
View
It's English.
Still null...
john1990_1
2-Jan-19 11:41am
View
Yes
john1990_1
2-Jan-19 11:36am
View
Sorry still 0.
john1990_1
2-Jan-19 11:31am
View
listenButtons remains an empty list...
john1990_1
30-Dec-18 19:37pm
View
My program and the source code are available here:
https://sites.google.com/site/workofmylife1234/
under "TranslateProgram".
A program that when F1 is clicked anywhere in Windows it brings to front a web browser with Google Translate page in it in a winform with a textbox for URL, when Escape is pressed the winform gets minimized.
john1990_1
30-Dec-18 16:09pm
View
Yes.
john1990_1
30-Dec-18 14:49pm
View
My program is a full web browser that opens a website that's all!
john1990_1
30-Dec-18 12:50pm
View
The program is not commercial, and I open Google Translate page in a web browser just like Edge or Firefox, it's just that the browser is brought to front when the user presses F1.
john1990_1
30-Dec-18 12:35pm
View
My program works awesomely now with Google Translate page, thank you for trying to help, I've seen a program of API and it's nothing like Google Translate page, also one can log in with his Google account and save history of translations and can also star translations, I'm good, in the first place I would have to pay for a Google's API don't I?
Show More