Sign in to follow this  
Followers 0
aebstract

Having An Error Trying To Run .exe

5 posts in this topic

The full error I am getting is:

Line 0 (File "C\WINDOWS\Desktop\macro\DAMacroCombo.exe"):

TraySetState()

^ERROR

Error: Unknown function name.

I recieve this error after I have compiled the .exe and try to run it.

Also, I get the exact same error when I try to run the AU3 file, though it says it is on line 14 when I run the AU3, rather than .exe

Here is the code for the files compiled:

DAMacroCombo.ini

[Hotkey Settings]
Pramhed={END}
NotPramhed={PGDN}
CrasherOnly={PGUP}
TimedMacro={HOME}


[Macro Settings]
[code]Pramhed=s83a1s9+s12s71206
NotPramhed=+s2s127063a1s9+s1
CrasherOnly=+s12s763

DAMacroCombo.AU3

Opt("SendKeyDelay", 1)

Dim $isActive

HotKeySet(IniRead("DAMacroCombo.ini", "Hotkey Settings", "Pramhed", "{END}"), "_Pramhed")
HotKeySet(IniRead("DAMacroCombo.ini", "Hotkey Settings", "NotPramhed", "{PGDN}"), "_NotPramhed")
HotKeySet(IniRead("DAMacroCombo.ini", "Hotkey Settings", "CrasherOnly", "{PGUP}"), "_CrasherOnly")
HotKeySet(IniRead("DAMacroCombo.ini", "Hotkey Settings", "TimedMacro", "{HOME}"), "_TimedMacro")

$strPramhed = IniRead("DAMacroCombo.ini", "Macro Settings", "Pramhed", "Please set your macros.")
$strNotPramhed = IniRead("DAMacroCombo.ini", "Macro Settings", "NotPramhed", "Please set your macros.")
$strCrasherOnly = IniRead("DAMacroCombo.ini", "Macro Settings", "CrasherOnly", "Please set your macros.")

TraySetState()
TraySetToolTip("DA Macro Combo")

;--MAIN LOOP--
While 1
    $isActive = WinActive("Darkages")
    Sleep(100)
WEnd
;--MAIN LOOP--

Func _Pramhed()
    If $isActive Then Send($strPramhed)
EndFunc
    
Func _NotPramhed()
    If $isActive Then Send($strNotPramhed)
EndFunc

Func _CrasherOnly()
    If $isActive Then Send($strCrasherOnly)
EndFunc

Func _TimedMacro()
    Local $macrodelay = IniRead("DAMacroCombo.ini", "Settings", "TimedMacroDelay", 18500)
    Local $count = 1, $seconds = 0
    Do
        Sleep(100)
        $count = $count + 1
        If Mod($count, 10) = 0 Then
            $seconds = $seconds + 1
        EndIf
        ToolTip("Timed Macro: " & $seconds, 0, 0)
    Until $count >= ($macrodelay / 100)
    ToolTip("")
    _Pramhed()
EndFunc

Thanks in advance!

Share this post


Link to post
Share on other sites



Thanks, that worked.. now next problem:

The macros wont work in the game they are made for. For example; the timer, it works when I hit the hot key at desktop and stuff, but when in game, it doesn't do a thing. Any ideas?

Share this post


Link to post
Share on other sites

Thanks, that worked.. now next problem:

The macros wont work in the game they are made for. For example; the timer, it works when I hit the hot key at desktop and stuff, but when in game, it doesn't do a thing. Any ideas?

If it's full screen autoit may be unable to simulate keystrokes and mouseclicks. I have no solution.

Share this post


Link to post
Share on other sites

It is full screen, though that shouldn't stop it.. should it? Does anyone else know how to get it to work in the full screen game?

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  
Followers 0