@botman, I think what sven said is enough already. Just create something that calls the 'sendmessage' from windows. then also get the ser handle, and send the WM_USER + xx = 1042. I think that's self-explanatory
Here is an example batch file for use in Windows. Make sure nircmd is in the same directory as the batch file. Copy and paste this and save as restart_gsa.bat
ECHO.
ECHO Attempting to close GSA SER gracefully...
nircmd closeprocess Search_Engine_Ranker.exe
nircmd wait 20000
ECHO.
ECHO 2000 milliseconds waited...
ECHO.
taskkill /F /IM Search_Engine_Ranker.exe /T
nircmd wait 20000
ECHO.
ECHO 2000 milliseconds waited...
cd "C:\Program Files (x86)\GSA Search Engine Ranker\"
Hello @Sven - sorry to revive such an old thread. I'm using Python's win32api to refresh the SER project list after externally generating a new .prj file:
win32api.SendMessage(hwnd, 1042, 0, 0)
Works to refresh the project list, but this causes all the running GSA projects to come to a stop. Can I start GSA again without closing/reopening the executable - or even better check the current state of "Start" or "Stop" first so that I can set it back to the original state?
why stop? Any change of a project will result in a reload of it.
I just tried setting last status=64 in the project file and am waiting for it to stop. I’m wondering why last status= appears three times in the project file?
why stop? Any change of a project will result in a reload of it.
I just tried setting last status=64 in the project file and am waiting for it to stop. I’m wondering why last status= appears three times in the project file?
Well the project did not automatically reload and did not stop.
yea thats a bug from previous version, the first entry has to be changed, rest can be ignored. However, a change on the status is not really doing any difference. It will reload the project when it is running, but not change the status. This is just saved to be able to set a project to the same status on the restart of the program.
Comments
https://forum.gsa-online.de/discussion/8464/project-file-generation
[options]
last status=...
If anyone or @Sven knows, please let me know too :-)
Thank you for the support.
last status=64
in the project file and am waiting for it to stop. I’m wondering whylast status=
appears three times in the project file?