in reply to using the send_im function in Net::OSCAR in Tk outside of a Net::OSCAR callback
So you need to setup a design where you create the aimbot thread BEFORE you start writing any Tk code. Then you can use shared-variables to communicate between the main Tk thread, and the aimbot running in the thread. Additionally, you will probably need a timer in the main Tk thread to constantly read the shared variables to see if they have changed.... Tk will NOT be auto-notified if something in the aimbot-thread changes, so you need a timer to constantly scan the shared variables.
So, it probably can be done, with a well thought out combination of shared-variables, timers, threads, and Tk, but it is sure to be a bit of work. My first prototype would be to create the thread first, and put it into a "sleep loop" waiting for a shared variable from main to start it. Then set up the Tk stuff, with buttons to signal the thread. Then in the thread, when you get a signal to start, create your aimbot, and read/write the shared variables. Then in the Tk main thread, display the reads, and send to the aimbot thread thru shared variables.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Hrm
by fridayjones85 (Novice) on Jun 27, 2006 at 15:34 UTC | |
by fridayjones85 (Novice) on Jun 27, 2006 at 18:44 UTC | |
by zentara (Cardinal) on Jun 28, 2006 at 11:15 UTC |