Calling Dll's with lua. menu

Shout-Out

User Tag List

Results 1 to 6 of 6
  1. #1
    vondarkness's Avatar Private
    Reputation
    1
    Join Date
    Jul 2010
    Posts
    2
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Calling Dll's with lua.

    Hi everyone,
    so like it's said in the title, I want to call a dll (C) with my addon.
    I've found a way to do it using Alien lib, wich allows me to call win32 functions. It works but as soon as I try it with my addon, it doesn't work anymore.

    It seems that the lua "require" doesn't work with addons.
    Code:
    require "alien" 
    		local fw = alien.User32.FindWindowA
    		fw:types{ret="long",abi="stdcall","string","string"}
    I know that wow's lua engine is "sandboxed" but is there a way to make it work ?
    (sorry for my english and I hope I didn't post it in the wrong section)

    Calling Dll's with lua.
  2. #2
    Cypher's Avatar Kynox's Sister's Pimp
    Reputation
    1356
    Join Date
    Apr 2006
    Posts
    5,368
    Thanks G/R
    0/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Afaik what you're trying to do is not possible without modifying/hooking WoW. Are you willing to do that? If not, then this thread doesn't even belong in this section.

  3. #3
    caytchen's Avatar Contributor
    Reputation
    138
    Join Date
    Apr 2007
    Posts
    162
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If I was a Blizzard employee responsible for the addon interface in WoW, and if I had spent countless hours on safeproofing it from ever calling anything native or even respective LUA wrappers, this thread would make me *sigh*

  4. #4
    Cypher's Avatar Kynox's Sister's Pimp
    Reputation
    1356
    Join Date
    Apr 2006
    Posts
    5,368
    Thanks G/R
    0/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by caytchen View Post
    If I was a Blizzard employee responsible for the addon interface in WoW, and if I had spent countless hours on safeproofing it from ever calling anything native or even respective LUA wrappers, this thread would make me *sigh*
    Haha. If I were a Blizzard employee this entire forum section would probably make me *sigh*.

  5. #5
    vondarkness's Avatar Private
    Reputation
    1
    Join Date
    Jul 2010
    Posts
    2
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I didn't expect it to work, ofc blizzard doesn't want us to do this but thanks for answering.
    @Cypher That's what I want to do (and i know how to do it), the only thing is , I just don't know which function hook.
    w/e , I think I'm not going to do it, because the program which will hook could also be the one that calls the functions (in this case).
    Anyways, thanks for answering me.

  6. #6
    zys924's Avatar Active Member
    Reputation
    20
    Join Date
    Nov 2009
    Posts
    113
    Thanks G/R
    0/7
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The easiest way to achieve this is to inject a dll and register an "interface" LUA function through which communications between LUA and your dll are established.

Similar Threads

  1. [Request] I need some help with lua script (boss on death)
    By Ellenor in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 03-03-2008, 03:47 PM
  2. [Help] With Lua ...(where to attach it?)
    By Ellenor in forum World of Warcraft Emulator Servers
    Replies: 13
    Last Post: 02-15-2008, 05:50 PM
  3. After a boss dies, dropping a wall with LUA?
    By C-Death in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 01-29-2008, 09:42 PM
  4. How to make game objects teleport with LUA!
    By Le Froid in forum WoW EMU Guides & Tutorials
    Replies: 4
    Last Post: 01-02-2008, 06:59 PM
  5. [Request] Ascent Revision with LUA scripts enabled
    By Greatdrak in forum World of Warcraft Emulator Servers
    Replies: 12
    Last Post: 12-30-2007, 06:04 PM
All times are GMT -5. The time now is 05:41 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search