EDIT: Got around it, so its on low priority now
I'm having problems with input (yet again)
I don't want the script to halt while it waits for input, but stay in a loop while it waits.
The problem is that MSG_ID becomes numeric when using IQPeekMsgID
Here's a sample test script:
CODE |
BeginDraw UseCurrent Messagebox "Press Any Key Now" Enddraw
:TOP SETFUNC MSG_ID1 IQPeekMsgID IF %MSG_ID1% GOTO BLAH GOTO TOP
:BLAH SETFUNC MSG_ID2 IQGetMsgID ANY BeginDraw UseCurrent Messagebox "Func IQGetMsgID gives ... %MSG_ID2%" Enddraw Delay 4
BeginDraw UseCurrent Messagebox "Just MSG_ID ... %MSG_ID% ... this is blank" Enddraw Delay 4
QUIT |
Edit: MXM returns a number for functions IQGetMsgID/IQPeekMsgID, while I want it to return "UI_BLAH"
Solution: Just put in a "IQWaitMsg ANY" before checking %MSG_ID%. It doesn't wait, but assigns a value to %MSG_ID%
This post has been edited by geniusalz: Dec 30 2003, 05:22 AM