12-13-2007, 04:28 AM
Hi Gintaras, I used your multi-thread trigger ideas from this post
http://www.quickmacros.com/forum/showthr...p?tid=2085
to create this macro:
MultiThreadWait
Function WaitForKey
Function WaitforMouse
I would like to mes the actual key instead of the int vk
I have seen how to go the other way from this post:
http://www.quickmacros.com/forum/showthr...65#pid9065
But I couldn't figure out how to go from ascii to character. Something about Chr(..) or format fields. Couldn't get anything to work...
Any ideas?
Thanks,
Stuart
http://www.quickmacros.com/forum/showthr...p?tid=2085
to create this macro:
MultiThreadWait
int+ g_stopwait=0
int+ vm=0
int+ vk=0
mac "WaitForMouse"
mac "WaitForKey"
wait 3 V g_stopwait
err
,mes "timeout"
,ret
sel g_stopwait
,case 1
,,mes "mouse click"
,,sel vm
,,,case 1 mes "Left Click"
,,,case 2 mes "Right Click"
,,,case 4 mes "Middle Click"
,case 2
,,mes "keystroke"
,,out vk
Function WaitForKey
Function WaitforMouse
I would like to mes the actual key instead of the int vk
I have seen how to go the other way from this post:
http://www.quickmacros.com/forum/showthr...65#pid9065
But I couldn't figure out how to go from ascii to character. Something about Chr(..) or format fields. Couldn't get anything to work...
Any ideas?
Thanks,
Stuart