Jump to content
Sign in to follow this  

Program not opening

Recommended Posts


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

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

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

While 1=1

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

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

It works well for me.

AutoIt X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

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