How to fix the windows security problem on GUI interaction through my service? - service

Here I have build my application using javafx(GUI interaction).In linux and mac os using .sh it works fine.In windows also it works fine with .bat . But When it comes to java wrapper service the GUI window doesn't show up.
I have tried with setting these two property.
wrapper.ntservice.hide_console=true
wrapper.ntservice.interactive=true
The message window showed up was "a program running on this computer is trying to display a message " .When I click "view the message" It takes me to console on session 0 where I can't do anything.
wrapper.ntservice.hide_console=true
wrapper.ntservice.interactive=true
Here I expect to show the GUI through windows service.Please help with it

Finally ,I have found out that there is no way to run the GUI Application as the Windows Service . If anyone want run theirs as the service seperate the GUI code and Make them Communicate it.orelse don't use service as your choice.
-Thanks StackOverFlow,

Related

MobaXterm stuck at a "progress information" window

I am using MobaXterm Personal Edition v21.2 Build 4642 to access a remote workbench for educational purposes. The workbench has a Linux machine, and I run STM32CubeIDE to program a development board connected to the remote machine. When I create a new project, the wizard works OK, until it tries to open the ".ioc" file. A "progress information" (thi sis the window bar title) shows up, saying "Initializing Device Configuration Tool...". The progress bar keeps moving back and forth, but then the program looks like if it is stuck at this point.
If I kill the process and restart the IDE, I can see that the ".ioc" file is created. It means that the wizard is working. Then, if I try to open this file, I get stuck in the same way.
When I logged in locally at the workbench machine and used the IDE, it worked without problems. I also connected remotely to the workbench using another linux machine and "pure" (command prompt) ssh. The IDE also worked nicely, which gives me a hint that the problem happens when MobaXterm has to close that "progress information" window and open the "Device configuration tool" window.
Any hints on how to fix this problem?
Thanks in advance.
EDIT: I forgot to mention, the remote machine runs Linux Ubuntu 20.04 with Gnome GUI.

phaser on vscode launch

I've created a simple game using Phaser on vscode.
I read that i need to run it locally in order to run it on chrome and i can't manage to do so using vscode's F5.
when im on "index.html" and pressing F5 it pops out an alert box that says "cannot find progrem to debug".
pressing F5 while im on any other file causes a error in the debugger "window is not defined"(when im on phanser.js)/"Phaser is not defined"(when im on any other file)
how can i start this program correctlly ? sorry for the basic question .
http-server works just fine. But if you want to debug the game easily. You might want to follow the steps in this post: https://divillysausages.com/2015/06/09/using-phaser-with-visual-studio-code/
It is an instruction for setting up Typescript phaser development in vscode, but the steps that teach you how to set up node server also applies to a javascript usage case. If you want to make it easy to debug(pause code executing while game running, etc.) Try to set it up in that way.
Had to install http-server from npm and run it in terminal.
tried it before, but accidently installed it not globaly.
now it works. thanks!

Why is my command prompt freezing on Windows 10?

I'm adding this question after spending an entire day wrestling with this incredibly frustrating feature of the Windows 10 command prompt which made me think there was something wrong with my console application code. I hope it will help someone.
Issue: My console application seems to randomly stop running. What is going on?
The issue ended up being a new feature of the windows 10 console. Under the default config, whenever you click on a command window in windows 10, it immediately halts the application process when it attempts to write to the console. When this happens, the command window has gone into "selection" mode.
You can tell it has happened because it will prefix the title bar of the command window with the word "Select" :
To get your program running again, you have to press escape or click somewhere else.
To get rid of this strange behavior, you can disable QuickEdit mode:
What I'd like to add here to Shaun Rowan's answer is that for it to work in all console windows you have to click "Defaults", instead of "Properties" and make your changes there, as described in this post.
I faced this problem very recently where one of the users (who had Quickedit configured on his Command Prompt) was using a tool I developed in Java, and was getting the tool frozen while running it from command prompt.
Finally what solved the problem was to redirect the logging inside the batch script to a file as shown below:
#echo off
...
java.exe -jar mytool.jar
needed to be updated to
java.exe -jar mytool.jar > log.txt

PowerShell open remote GUI session for UIAutomation

I'm currently working on automatic installation of GUI application using library UIAutomation PS Extensions (https://uiautomation.codeplex.com/). It works pretty well in cases, when I run it against existing Windows user session. I run my PS script, it opens a window and I can click on buttons and so on ..
However, problem raises when this library is called from remote machine. I call my script (which should open a GUI window and start controlling it) via PsExec from remote machine. This causes that script is not able to open GUI window on remote machine and starts to produce various exceptions.
As workaround for this, I can make PsExec to connect to specific existing session on remote host, but unfortunatelly this is not stable as I can't guarantee session's existence.
Does enyone know whether it's possible to force PowerShell to open new session (interactive GUI) through which I would be able to call UIAutomation commands?
Thank in advance
Matthew
I'm not clear on whether it's feasible to remotely open a new interactive desktop session in which to run GUI tests that require one. I'd be interested to find out if it's doable, since problems like this frequently come up when folks try to set up CI tests of Windows GUI apps.
Alternatively, I'd propose solving this by configuring the machine where your tests run to log in as a user at boot. Then you can remotely launch your tests as that user, and make use of their open session. That's worked in the past for me when I've run into similar issues.

Run Tomcat within Eclipse as a different user

I am running Eclipse Indigo EE on Windows 7, logged in as me.. I have Tomcat running within eclipse right now (under Servers view) but it's running under my user. I'd like to run it as a different user. How do I go about achieving that? I don't want to run it as a Windows service or outside of Eclipse, I want to continue to manage it through Eclipse which makes debugging, shutting down, starting up a lot simpler for me.
Any ideas how to go about setting that up or if it's even possible?
Thanks
I could not find a way to start the Tomcat server as a different user. Whereas you can achieve this by opening eclipse as a different user. Following are the steps for the same
Open command prompt.
Run following command with intended user name and eclipse exe's location
runas /user:domainName\userName C:\eclipse-jee-mars-R-win32-x86_64\eclipse\eclipse.exe
Thanks,
Sabeer