Background Process - Forum

Forum Navigation
You need to log in to create posts and topics.

Background Process

Anyone know how to make a compiled app run as a background process?

@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.

Hello,

What do you mean with backgroud process?

Invisible? As a service?

What do you want to do?

Regards

Hans-Peter

@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.

 

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

luishp and mishem have reacted to this post.
luishpmishem

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.

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.

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.

Can't that "protection" be in the cloud?

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.

@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.

Quote from PaulJonestindall on November 24, 2021, 1:49 pm

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.

Maybe you can run your USB app from within stream - tmStorage plugin  from Alberto ?

 

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.

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

@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.

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.

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.

@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 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.

Vadim has reacted to this post.
Vadim