Custom font in batch file [closed] - batch-file

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I am currently making a Text user interface/TUI in batch. I want the font in the command prompt (console) to be exactly the same as the default Windows font, and I wish to do it without making registry changes. Is this possible?
(I can't give debug details right now, sorry about that.)

According to this website the default Windows 10 font is Segeo UI. I couldn't find a way to set this as the font used in the basic command prompt, as it seems to be restricted to a set amount of fonts, however the new Windows Terminal which can be downloaded from the Windows Store allows you to.
You simply press ctrl + , to open settings, go down to the Command Prompt profile on the left hand side, then go to appearance, and click show all fonts
Once you've clicked that, open the fonts dropdown and you'll find Segeo UI in the menu
Then just click save, and job done!

Related

How to create Background Process Application in Windows? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I developed one chat-based Application like Skype. Once I opened that application I get to receive the message after I closed that application I can't get messages. So I Move on Background Process on my Application when system startup it also runs behind.
Guide me it Possible?
Regards
Dinesh D
One simple way is using tray icon application and timer that will check your messages every X minutes.
So the application won't be closed but only tray icon will be shown only in a tray area (application windows should be hidden - it needs to implement it on close button instead of exit from application, for example). And timer will work and receive messages while the application is not closed from the tray.
To implement tray icon in WPF you can use Hardcodet.NotifyIcon.Wpf and Hardcodet.Wpf.TaskbarNotification packages from nuget. You also can show popups from tray using this packages.

WPF application - create custom hyperlinks [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 4 years ago.
Improve this question
We are developing a WPF application and we have a requirement that a user can open certain screen and they need an option to create link and then paste them outside of the application like outlook or Skype etc... Once they paste it should appear as a link and when they click on the link it should open the application and navigate to the screen for which the link was created.
To achieve this we are trying to create a custom links like appname://, and on clicking we are trying to open the application and pass the guid as parameter.
Can you point us on how to create custom links and map them to navigate to particular exe on clicking?
You'll have to register your own URI Scheme in the registry and link it to your application executable path
HKEY_CLASSES_ROOT
alert
(Default) = "URL:Alert Protocol"
URL Protocol = ""
DefaultIcon
(Default) = "alert.exe,1"
shell
open
command
(Default) = "C:\Program Files\Alert\alert.exe" "%1"
You can read more on it here

How to find the bug line/file in Angular 2 [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 am following the hero tutorial on Angular's page. I have come to Routing step so far. Now my script does not work. I see only "Loading..." text as default template. There is an error in some file. But I cannot see where the script stops flowing.
I need to be warned/informed that the computer should tell me "there is an error in file 'somefile.js' at line 99".
I do not know how to find the line to be corrected. And I want to see where the app halts. Is there a way to find it on console or firebug or something else?
This is important when I start to develop my own scripts.
Can you have the web dev tools stop on exception?
with Chrome
open developer tools
open sources tab
click stop icon with || inside it (top right of dev tools above call stack)
This will cause your app to pause on all exceptions.

CanĀ“t run .bat file under windows 10 [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
The community reviewed whether to reopen this question 9 months ago and left it closed:
Original close reason(s) were not resolved
Improve this question
I have few .bat files that I used under Windows XP. Now I want to use them under Windows 10, but when I run one of the files (even as administrator) it shows the command prompt screen for 1 second and nothing happens.
Can someone help me please?
There is no inherent reason that a simple batch file would run in XP but not Windows 10. It is possible you are referencing a command or a 3rd party utility that no longer exists. To know more about what is actually happening, you will need to do one of the following:
Add a pause to the batch file so that you can see what is happening before it exits.
Right click on one of the .bat files and select "edit". This will open the file in notepad.
Go to the very end of the file and add a new line by pressing "enter".
type pause.
Save the file.
Run the file again using the same method you did before.
- OR -
Run the batch file from a static command prompt so the window does not close.
In the folder where the .bat files are located, hold down the "shift" key and right click in the white space.
Select "Open Command Window Here".
You will now see a new command prompt. Type in the name of the batch file and press enter.
Once you have done this, I recommend creating a new question with the output you see after using one of the methods above.

How to bind a key in batch? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I wanted to know if it was possible to bind key to execute a command but while the .bat file is minimized.
Any ideas?
I have searched everywhere but I have found nothing, the only thing I found was "choice" which is something I am not trying to do.
I know that this is possible because I have a file that does it, sadly it is not mine and it was converted to a .exe file so I don't know how to convert it back to a .bat file to be able to look into the code and find my answer.
There are two types of hotkeys in Windows. One to activate an open window (set when window is created) and one that sends a message key pressed to a window (set by a program anytime).
On Windows shortcuts (ie lnk files not keyboard shortcuts) there is an option to set a hotkey. If the program is not running then windows' explorer registers it to itself and starts the program in the shortcut, if the program is running activates the window.

Resources