Calling a function in Remote Thread menu

User Tag List

Results 1 to 5 of 5
  1. #1
    saimoth's Avatar Member
    Reputation
    1
    Join Date
    Oct 2013
    Posts
    6
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Calling a function in Remote Thread

    Hey guys,

    I have been trying to find a guide that explains how I can call a function within a RemoteThread, well call it properly I mean. I have written a LUA Unlocker and use Macro's to automate the game but I'm assigning a macro to a button, changing the macro "string" on the fly and pressing the button the run it. This works fine but its obviously very lame spamming button clicks and I would rather call the RunMacro function internally instead. I have no problem creating a remote thread and writing the ASM, etc, I'm just struggling to find the proper RunMacro(args??) function in the info dump, unsure about what arguments I'd need to pass, and also not 100% on how to deal with the function returning to my remote thread. I have been away from programming for a little while and probably just being a noob. Can anyone share some advice or point me to a guide that can offer me some help without sucking eggs.

    I'm playing 3.3.5 release

    Thanks, Wes

    Calling a function in Remote Thread
  2. #2
    saimoth's Avatar Member
    Reputation
    1
    Join Date
    Oct 2013
    Posts
    6
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    After a bit of reversing, it's DoString() that I'm trying to call. I have tried a lot but can't seem to get it to work with a RemoteThread. Does it have to be called from the main thread?

  3. #3
    drassian's Avatar Member
    Reputation
    1
    Join Date
    May 2012
    Posts
    15
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah it does, you CAN call it from other threads but you will get really unreliable crash behaviour because LUA is not thread safe

  4. #4
    saimoth's Avatar Member
    Reputation
    1
    Join Date
    Oct 2013
    Posts
    6
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    All sorted, Casting away just nicely from the main thread. It does seem very weird to see actions happening without any input at all. Simple things please simple minds, huh! Thanks

  5. #5
    Jadd's Avatar 🐸 Premium Seller
    Reputation
    1515
    Join Date
    May 2008
    Posts
    2,433
    Thanks G/R
    81/336
    Trade Feedback
    1 (100%)
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by drassian View Post
    Yeah it does, you CAN call it from other threads but you will get really unreliable crash behaviour because LUA is not thread safe
    Lua is thread-safe, the C functions registered by WoW on the other hand, may not be. And there's quite a difference in that so just remember it.

Similar Threads

  1. Problems calling VMT Function 47
    By djvoid in forum WoW Memory Editing
    Replies: 16
    Last Post: 01-14-2009, 08:22 AM
  2. Calling LUA Functions
    By cloud_wizard in forum WoW Memory Editing
    Replies: 7
    Last Post: 01-04-2009, 08:24 AM
  3. Call lua function and get result
    By starfish99 in forum WoW Memory Editing
    Replies: 4
    Last Post: 12-26-2008, 05:15 AM
  4. Replies: 1
    Last Post: 08-26-2008, 10:49 PM
All times are GMT -5. The time now is 07:54 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search