Skip to content

Simple API Interface

empteeemptee http://prjacker.com
Hi Sven,

Any chance of a simple API for GSA? Eg. SendMessage based with calls like...

Load Project (Load a .prj from %APPDATA%\GSA Search Engine Ranker\projects)
Reload Project (Refresh project from .prj file, could be just Unload/Load)
Unload Project (Remove a project)
Start Project
Stop Project
Get Project Info (Active/Stopped/Searching/etc.., Submitted, Verified)
Flush Project (Force write to disk for project files)

Cheers,
Michael

Comments

  • SvenSven www.GSA-Online.de

    Load Project (Load a .prj from %APPDATA%\GSA Search Engine Ranker\projects)

    You simply put them in the project folder and do a sendmessage(handle,1042,0,0);

    Reload Project (Refresh project from .prj file, could be just Unload/Load)

    A change is detected automatically and reloaded

    Unload Project (Remove a project)

    just delete it from folder and do a 
    sendmessage(handle,1042,0,0);

    Start Project

    sendmessage(handle,1069,1,0);

    Stop Project


    sendmessage(handle,1069,0,0);

    Restart (stop/start)

     sendmessage(handle,1069,2,0); 

    Get Project Info (Active/Stopped/Searching/etc.., Submitted, Verified)

    read project files (*.success /*.verify...)

    Flush Project (Force write to disk for project files)

    done automatically each 5 minutes.

  • empteeemptee http://prjacker.com
    Somehow I missed your reply - excellent, thanks Sven!
  • donaldbeckdonaldbeck Advanced SER Videos -> http://bit.ly/1ySrbwu | Learn SER For Free Step By Step -> http://sertips.com
    @Sven

    Is it possible to get a list of all messages that SER accepts? There's all these programs out there, spy++, winspector, probably others, but they don't seem to work on SER. They probably just don't work well on delphi programs in general.

    Is there any way to get those message ID's? Or is it only possible through asking you directly?
  • SvenSven www.GSA-Online.de
    the above list is all there is. All other internal messagees can not be used externally as you would need pointers and stuff to memory that you can not access from outside.
  • empteeemptee http://prjacker.com
    Actually @sven, one last thing.. as far as reading project files (*.success) is concerned.. What's the recommended way of opening the files? In other words - will SER happily read/write files that are opened somewhere else using FILE_SHARE_READ | FILE_SHARE_WRITE?
  • SvenSven www.GSA-Online.de
    it read once when started and then only write to it.
Sign In or Register to comment.