Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Converting ASCII codes to actual characters
#1
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

Code:
Copy      Help
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
Code:
Copy      Help
int+ vk=wait(0 K)
g_stopwait=2

Function WaitforMouse
Code:
Copy      Help
int+ vk=wait(0 K)
g_stopwait=2

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


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)