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