Jump to content
Sign in to follow this  
TheRauchster101

Program not opening

Recommended Posts

TheRauchster101

I've spent the last 2 weeks creating a program for my place of business, so to automate an installation script with a single hotkey press. After finishing it and compiling it, it works beautifully on 6 of the computers here. But the last one refuses to run it properly.

The tray icon appears, as if it's running, but the hotkey press never does anything.

The first thing that's supposed to happen once the hotkey is pressed, is to produce a tooltip. The user reports that there is no tooltip. I can verify that he is launching the program correctly, using all appropriate permissions. And that the program works as intended on every other computer.

dim $Exit, $Start, $Pause, $IniFile, $CurrentDir
SetButtons()

Global $Paused
HotKeySet($Pause, "TogglePause")
HotKeySet($Start, "Start")
HotKeySet($Exit, "Exit")

$CurrentDir=@WorkingDir & "\"
$IniFile=$CurrentDir & "Settings.ini"

While 1=1
    Sleep(500)
    WEnd

Func SetButtons()
    If FileExists ( $IniFile ) Then
        $Start=IniRead ( $IniFile, "Hotkeys", "start", "{INS}" )
                $Pause=IniRead ( $IniFile, "Hotkeys", "pause", "{Pause}" )
        $Exit=IniRead ( $IniFile, "Hotkeys", "exit", "{END}")
        Else
        $Start="{INS}"
        $Pause="{Pause}"
        $Exit="{END}"
        EndIf
EndFunc

Func Start()
    ToolTip("Automation has started. Please press the Pause/Break button to pause, and End to exit.", 50, 50)

From there the code just goes through the automation process.

I cannot for the life of me figure out why the program launches for him, but the hotkey press never activates the script.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.