Quote from PaulJonestindall on November 23, 2021, 9:43 pmAnyone know how to make a compiled app run as a background process?
Anyone know how to make a compiled app run as a background process?

Quote from Vadim on November 23, 2021, 10:04 pm@pauljonestindall
There are plugins, but I haven't tried them:
rtFileSystemMgt 1.4.3b (Ron Marie Services) = rtApplicationHide = Hide current application.
tmCanvas (Alberto Meyer, TechMedia) = tmStealthOn = Hide Application.
tmCanvas (Alberto Meyer, TechMedia) = tmNotShowOnTaskBar = Hide window from taskbar.ajgAppControl 1.1 (Francisco Aaryn) = ajgAC_HideApp = Hide window
NeoHideWindow (Alex Rothschild) = NeoNBVisibility = Hide/Show your application window and/or its button on the taskbar.
RacAutoIt3x 1.0 (Roman Avalos Castillo) = RAC_WinSetState = Reveal, hide, minimize, maximize and other window-related operations.
rlFunctions 2.6s (Reynold E. Lariza) = rlHideWindow = Hide window. Returns the descriptor (HWND) of the window, otherwise 0.
There are plugins, but I haven't tried them:
rtFileSystemMgt 1.4.3b (Ron Marie Services) = rtApplicationHide = Hide current application.
tmCanvas (Alberto Meyer, TechMedia) = tmStealthOn = Hide Application.
tmCanvas (Alberto Meyer, TechMedia) = tmNotShowOnTaskBar = Hide window from taskbar.
ajgAppControl 1.1 (Francisco Aaryn) = ajgAC_HideApp = Hide window
NeoHideWindow (Alex Rothschild) = NeoNBVisibility = Hide/Show your application window and/or its button on the taskbar.
RacAutoIt3x 1.0 (Roman Avalos Castillo) = RAC_WinSetState = Reveal, hide, minimize, maximize and other window-related operations.
rlFunctions 2.6s (Reynold E. Lariza) = rlHideWindow = Hide window. Returns the descriptor (HWND) of the window, otherwise 0.

Quote from HPW on November 23, 2021, 10:04 pmHello,
What do you mean with backgroud process?
Invisible? As a service?
What do you want to do?
Regards
Hans-Peter
Hello,
What do you mean with backgroud process?
Invisible? As a service?
What do you want to do?
Regards
Hans-Peter
Quote from PaulJonestindall on November 23, 2021, 10:17 pm@vadim @hpw
This might need to be in the plugins section, but as Vadim and I had chatted earlier about creating a USB "key", the program I want to run at startup to detect the key, I don't want to be obvious in the task manager as a running app. Can it run as a background process or perhaps as a service? I can hide the tray icon and I can make it invisible. But anyone can easily stop it in Task Manager.
This might need to be in the plugins section, but as Vadim and I had chatted earlier about creating a USB "key", the program I want to run at startup to detect the key, I don't want to be obvious in the task manager as a running app. Can it run as a background process or perhaps as a service? I can hide the tray icon and I can make it invisible. But anyone can easily stop it in Task Manager.

Quote from HPW on November 23, 2021, 11:45 pmHello,
VisialNeoWin is not a general purpose development tool as the delphi compiler.
So no, you can not compile as a service.
And it produce standard windows apps which are visible in the taskmanager.
And MS does not allow to make apps invisible in the taskmanager.
You would be able to produce malware.
Regards
Hans-Peter
Hello,
VisialNeoWin is not a general purpose development tool as the delphi compiler.
So no, you can not compile as a service.
And it produce standard windows apps which are visible in the taskmanager.
And MS does not allow to make apps invisible in the taskmanager.
You would be able to produce malware.
Regards
Hans-Peter
Quote from mishem on November 24, 2021, 12:21 pmBut anyone can easily stop it in Task Manager.
Anyone should be the master of their computer, not just a user. How this is trying to be implemented on new systems. Recently I received a message from the system "We have stopped such an application on your computer. Contact your system administrator." Who am I? Without me, I'm getting married.
But anyone can easily stop it in Task Manager.
Anyone should be the master of their computer, not just a user. How this is trying to be implemented on new systems. Recently I received a message from the system "We have stopped such an application on your computer. Contact your system administrator." Who am I? Without me, I'm getting married.
Quote from PaulJonestindall on November 24, 2021, 1:49 pmI don't want to make it invisible. Just not obvious. My idea is: I have multiple users and a limited number of Surface tablets. Some users will share tablets. I'm thinking that rather than issue a $1000 tablet to each user, I could issue a $10 USB "thumb" drive as a sort of "ID card" that when inserted the tablet can identify the user and their appropriate access level to the data we use. The thumb drive can store all of their work files, log time stamps, etc... And here's the thing, I know some users are smarter than others who try to take, shall we say, shortcuts. And while I know I can't hide the USB device detection program I at least want to make it less obvious. But then maybe I'm thinking too much about this.
I think in my situation that this could be a workable concept. If I have a certain number of tablets, all set up the same, the user can plug in their USB device in any one of them and it can identify them.
I don't want to make it invisible. Just not obvious. My idea is: I have multiple users and a limited number of Surface tablets. Some users will share tablets. I'm thinking that rather than issue a $1000 tablet to each user, I could issue a $10 USB "thumb" drive as a sort of "ID card" that when inserted the tablet can identify the user and their appropriate access level to the data we use. The thumb drive can store all of their work files, log time stamps, etc... And here's the thing, I know some users are smarter than others who try to take, shall we say, shortcuts. And while I know I can't hide the USB device detection program I at least want to make it less obvious. But then maybe I'm thinking too much about this.
I think in my situation that this could be a workable concept. If I have a certain number of tablets, all set up the same, the user can plug in their USB device in any one of them and it can identify them.
Quote from mishem on November 24, 2021, 2:07 pmYou can install an app on the USB that will disconnect that USB from the tablet when you close the app. And you don't have to hide anything.
You can install an app on the USB that will disconnect that USB from the tablet when you close the app. And you don't have to hide anything.

Quote from albertomeyer on November 24, 2021, 3:05 pmCan't that "protection" be in the cloud?
Can't that "protection" be in the cloud?
Quote from PaulJonestindall on November 24, 2021, 3:17 pmYeah, I think I'd have to take the approach that there should be two programs running, one on the tablet and one on the USB. If one of them stops for whatever reason, the other shuts it down.
And by the way, @vadim and @hpw, I am having an issue where one of my programs seemingly shuts down just fine. It's set to not allow more than one instance at a time. However, sometimes when you try to run it again, the splash screen comes up and then the program shuts down. I discovered there is an instance of it still running in the background processes section of the Task Manager. Rather than having my users enter Task Manager to end the process to correct this, I created a small utility using NeoDouble to kill the process. I've seen this happen across several computers.
Yeah, I think I'd have to take the approach that there should be two programs running, one on the tablet and one on the USB. If one of them stops for whatever reason, the other shuts it down.
And by the way, @vadim and @hpw, I am having an issue where one of my programs seemingly shuts down just fine. It's set to not allow more than one instance at a time. However, sometimes when you try to run it again, the splash screen comes up and then the program shuts down. I discovered there is an instance of it still running in the background processes section of the Task Manager. Rather than having my users enter Task Manager to end the process to correct this, I created a small utility using NeoDouble to kill the process. I've seen this happen across several computers.
Quote from PaulJonestindall on November 24, 2021, 3:26 pm@albertomeyer
Well, one of our issues is Wi-Fi reliability and availability in certain parts of our plants. We have five rather large plants, concrete and steel, and signal strength is a problem in certain areas. For the software on the tablets, I've developed it to be as independent of a signal as possible.
Well, one of our issues is Wi-Fi reliability and availability in certain parts of our plants. We have five rather large plants, concrete and steel, and signal strength is a problem in certain areas. For the software on the tablets, I've developed it to be as independent of a signal as possible.

Quote from dglojnar on November 24, 2021, 3:30 pmQuote from PaulJonestindall on November 24, 2021, 1:49 pmI don't want to make it invisible. Just not obvious. My idea is: I have multiple users and a limited number of Surface tablets. Some users will share tablets. I'm thinking that rather than issue a $1000 tablet to each user, I could issue a $10 USB "thumb" drive as a sort of "ID card" that when inserted the tablet can identify the user and their appropriate access level to the data we use. The thumb drive can store all of their work files, log time stamps, etc... And here's the thing, I know some users are smarter than others who try to take, shall we say, shortcuts. And while I know I can't hide the USB device detection program I at least want to make it less obvious. But then maybe I'm thinking too much about this.
I think in my situation that this could be a workable concept. If I have a certain number of tablets, all set up the same, the user can plug in their USB device in any one of them and it can identify them.
Maybe you can run your USB app from within stream - tmStorage plugin from Alberto ?
Quote from PaulJonestindall on November 24, 2021, 1:49 pmI don't want to make it invisible. Just not obvious. My idea is: I have multiple users and a limited number of Surface tablets. Some users will share tablets. I'm thinking that rather than issue a $1000 tablet to each user, I could issue a $10 USB "thumb" drive as a sort of "ID card" that when inserted the tablet can identify the user and their appropriate access level to the data we use. The thumb drive can store all of their work files, log time stamps, etc... And here's the thing, I know some users are smarter than others who try to take, shall we say, shortcuts. And while I know I can't hide the USB device detection program I at least want to make it less obvious. But then maybe I'm thinking too much about this.
I think in my situation that this could be a workable concept. If I have a certain number of tablets, all set up the same, the user can plug in their USB device in any one of them and it can identify them.
Maybe you can run your USB app from within stream - tmStorage plugin from Alberto ?

Quote from albertomeyer on November 24, 2021, 3:50 pmSure. It is one of the main functions of it.
if i understand, you need to check if the pendrive user is registered or not. Each pendrive has a different ID, you could have a database in your software and simply check if the pendrive's ID is valid.
Sure. It is one of the main functions of it.
if i understand, you need to check if the pendrive user is registered or not. Each pendrive has a different ID, you could have a database in your software and simply check if the pendrive's ID is valid.

Quote from HPW on November 24, 2021, 4:07 pmHello,
I discovered there is an instance of it still running in the background processes section of the Task Manager.
Such problems are difficult to debug.
Is there any code in shutdown action? Debug with Alertboxes step by step.
Which plugins are used? Plugins are DLL's which gets unloaded at shutdown. If this process fails the exe can hang.
Regards
Hans-Peter
Hello,
I discovered there is an instance of it still running in the background processes section of the Task Manager.
Such problems are difficult to debug.
Is there any code in shutdown action? Debug with Alertboxes step by step.
Which plugins are used? Plugins are DLL's which gets unloaded at shutdown. If this process fails the exe can hang.
Regards
Hans-Peter
Quote from PaulJonestindall on November 24, 2021, 5:44 pm@hpw
Yes, as a matter of fact, at the time I wrote this VNW didn't exist. In the shutdown I'm using hpwIniKeyDel. hpwUtility 2.45
I suppose I can change that now. But really, it only started happening in recent months. I do keep updating the program and it's turned into quite a monster now. The program has really evolved over the past dozen years.
@albertomeyer
There are several ways I can go about this. Actually the pendrive could verify itself in this type of system. It would be issued to the specific user. Therefore, any copy would be invalid. If the data on the pendrive doesn't match the pendrive ID, it wouldn't work. Encrypting a file or a string in a file could be one action used.
Yes, as a matter of fact, at the time I wrote this VNW didn't exist. In the shutdown I'm using hpwIniKeyDel. hpwUtility 2.45
I suppose I can change that now. But really, it only started happening in recent months. I do keep updating the program and it's turned into quite a monster now. The program has really evolved over the past dozen years.
There are several ways I can go about this. Actually the pendrive could verify itself in this type of system. It would be issued to the specific user. Therefore, any copy would be invalid. If the data on the pendrive doesn't match the pendrive ID, it wouldn't work. Encrypting a file or a string in a file could be one action used.

Quote from albertomeyer on November 24, 2021, 10:03 pmwhat i meant was the pendrive serial itself. It doesn't need to have any data inside, if it's just to verify that the user is valid.
what i meant was the pendrive serial itself. It doesn't need to have any data inside, if it's just to verify that the user is valid.
Quote from PaulJonestindall on November 29, 2021, 12:26 pmBasically yes, and potentially any USB device could be used to check validity. I'm thinking of various ways such a system can be utilized and customized to the user.
Basically yes, and potentially any USB device could be used to check validity. I'm thinking of various ways such a system can be utilized and customized to the user.
Quote from Gaev on November 30, 2021, 2:14 am@pauljonestindall
A bit late to the discussion ... but now that I know your objective ...
I have multiple users and a limited number of Surface tablets. Some users will share tablets. I'm thinking that rather than issue a $1000 tablet to each user, I could issue a $10 USB "thumb" drive as a sort of "ID card" that when inserted the tablet can identify the user and their appropriate access level to the data we use. The thumb drive can store all of their work files, log time stamps, etc...
... I might be missing something, but why not load/run the program from the USB disk ?
If there is an issue with inconsistent drive letters assigned to the USB drive, you could have a dummy (starter) program on the tablet (laptop?) that will find the drive with the program (or a uniquely specified file like qwerty555.txt) on it ... when found, it will ...
- issue the Run command for the program on the USB drive, with the LoadComplete option (i.e. Suspend VisualNEO Win until the application has finished loading)
- then close itselfIf you can wait a short while, Luis's latest creation (neoCms) ... https://visualneo.com/forum/topic/neocms-coming-soon ... which will be accessible from VisualNEOWin programs (using InternetGet/InternetPost) ... would be an ideal solution ... your program resides on the tablets/laptops ... requires users to Login ... and can keep each user's data separate from the other users.
A bit late to the discussion ... but now that I know your objective ...
I have multiple users and a limited number of Surface tablets. Some users will share tablets. I'm thinking that rather than issue a $1000 tablet to each user, I could issue a $10 USB "thumb" drive as a sort of "ID card" that when inserted the tablet can identify the user and their appropriate access level to the data we use. The thumb drive can store all of their work files, log time stamps, etc...
... I might be missing something, but why not load/run the program from the USB disk ?
If there is an issue with inconsistent drive letters assigned to the USB drive, you could have a dummy (starter) program on the tablet (laptop?) that will find the drive with the program (or a uniquely specified file like qwerty555.txt) on it ... when found, it will ...
- issue the Run command for the program on the USB drive, with the LoadComplete option (i.e. Suspend VisualNEO Win until the application has finished loading)
- then close itself
If you can wait a short while, Luis's latest creation (neoCms) ... https://visualneo.com/forum/topic/neocms-coming-soon ... which will be accessible from VisualNEOWin programs (using InternetGet/InternetPost) ... would be an ideal solution ... your program resides on the tablets/laptops ... requires users to Login ... and can keep each user's data separate from the other users.