#1 2011-07-03 11:54:12

New member
Registered: 2011-07-03
Posts: 2

Windows 7 x64 SP1 open with workaround

On my installation of GCstar the application would not open when double-clicking a .gcs file.
I wrote a small AutoIt3 [1] script to fix this problem (there might be other ways).
To use the script you have to compile it and place the resulting executable in the root directory of your GCstar installation. Afterwards you can tell Windows to use this executable to open your .gcs files. Unfortunately I had to use FileTypesMan [2] to change the association (might be prevented if the generated executable is named differently e. g. GCstar-win.exe)


Opt("TrayAutoPause", 0)

EnvSet("PATH", @ScriptDir & "\usr\bin;" & @ScriptDir & "\usr\lib;" & EnvGet("PATH"))
EnvSet("LANG", "EN")

If $CmdLine[0] > 0 Then
$Command = @ScriptDir & "/bin/gcstar.exe " & $CmdLineRaw
$Command = @ScriptDir & "/bin/gcstar.exe"

Run($Command, @MyDocumentsDir, @SW_MAXIMIZE)

[1] http://www.autoitscript.com/site/autoit/
[2] http://www.nirsoft.net/utils/file_types_manager.html

Edit: Updated script to not pause when tray icon is clicked during application startup.

Last edited by HugoH (2011-07-03 20:32:07)

Attachment Icon GCstar.au3, Size: 308 bytes, Downloads: 526



Should you have a problem using GCstar, you can open a bug report or request some support on GCstar forums.