The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: gavin on September 26, 2005, 11:01:45 AM

Title: VK_OEM_PLUS?
Post by: gavin on September 26, 2005, 11:01:45 AM

    invoke keybd_event,10,0,KEYEVENTF_KEYUP,0     ;shift
    invoke keybd_event,VK_OEM_PLUS,0,KEYEVENTF_KEYUP,0    ;+


Getting

D:\masm32\code\bot\bot.asm(98) : error A2006: undefined symbol : BBh
D:\masm32\code\bot\bot.asm(98) : error A2114: INVOKE argument type mismatch : ar
gument : 1

I'm using regional settings english[ireland]

I'm trying to simulate a + press all the others work except this one.
Checked it in the windows.inc file and it looks fine.

Any ideas lads?

Thanks.
Title: Re: VK_OEM_PLUS?
Post by: Tedd on September 26, 2005, 11:35:23 AM
D:\masm32\code\bot\bot.asm(98) : error A2006: undefined symbol : BBh

Try defining it as "0BBh" :toothy
(hex numbers that start with an alphabetic character need to be prefixed with a zero)
Title: Re: VK_OEM_PLUS?
Post by: gavin on September 26, 2005, 12:10:47 PM
Omg  :lol
How stupid i feel now hehe.
Thanks Ted