hello!
im back to programming from a long rest and im having trouble in a routine,
maybe someone can give me a tip on how to achieve my goal.
i have a program that executes a procedure inside a TThread.ExecuteInThread(myProcedure);
the problem is that in myProcedure i have a KeyInput.Press(VK_SPACE); which brings up CheckSynchronize break in gtk2widgetset.inc
i tried setting up a boolean flag, and instead of executing KeyInput in threat, i change boolean flag,
then have a repeat..until infinite loop just monitoring the boolean flag and pressing space, but this locks my main form.. which brings me back to main problem..
any ideas how to achieve a key press from a background thread???