heil satan and welcome.
a suspicious exe file appears.
knorke uses double click.
knorke enters "bldfba" for spring path and clicks start.
suspicious exe file uses "impossible to close, not even clicking x works"
=help iam under attack by viruz.
Controlling other programs via simulated mouseclicks/keypresses is usually not a good idea:
eg spring.exe takes
startscripts as parameter that you can use to directly launch a game, without the menu coming up first.
To decide where to click to position the camera(?), you use
Code: Select all
$maxX = @DesktopWidth
$maxY = @DesktopHeight
$spawnPositionOneX = $maxX / 16.07
$spawnPositionOneY = $maxY / 7.60
but what if game resolution is not the same as desktop resolution or spring runs in windowed mode?
Or if the minimap is in a different position/size?
Code: Select all
$infolog = FileOpen($path & "\infolog.txt")
google says FileOpen returns -1 if opening the file failed (most languages do something similiar) so check for that.
When used "correctly" the program works but like Beherith I think keybinds are probally easier to use or even a lua widget:
Spring.SendCommands ("cheats")
Spring.SendCommands ("give unitname")
(and you could also use Spring.Rehost to restart from within game)
So while looking forward to more satanic software my rating for this is:
