|  | 主题:  help me! | 
            
                        
                
                    |  bigbird5d
 职务:普通成员
 等级:1
 金币:0.0
 发贴:15
 注册:2000/10/23 15:49:33
 
 | 
                            
                            #12000/12/28 15:21:48 
                                請問高手鋪捉到ctr+g鍵,我寫的是on keyup
 if the contordown and the key="g" then
 do somthing
 end if
 end
 但是當只按“g"鍵put the key ---"g"
 可是按ctr+g 則put the key --最後一次只按一個鍵的鍵名
 即:上一次按的是“c“再按ctr+g 此時put the key  ---"c"
 不知如何解決?望賜教!!謝謝!!急!!!!
 
 | 
                        
                
                    |  D计划-混沌
 职务:管理员
 等级:6
 金币:15.2
 发贴:3528
 注册:2007/4/9 9:48:37
 
 | 
                            
                            #22000/12/28 19:43:21 
                                on keyupif the controlDown then
 if the key="g" then
 do something
 else
 nothing
 end if
 end if
 end
 | 
                        
                
                    |  jiesun
 职务:普通成员
 等级:1
 金币:1.0
 发贴:182
 注册:2000/12/13 9:54:52
 
 | 
                            
                            #32000/12/28 21:52:51 
                                特别奇怪的一个问题,我使用了: on keyup   if the controldown then     if the keycode = 5 then       alert "hehehe"     end if   end if end 在director环境下运行不是很稳定,有时候可以,有时候就是不行,但是生成.exe之后就没有问题了,很郁闷的说   | 
                        
                
                    |  mmzr
 职务:普通成员
 等级:1
 金币:0.0
 发贴:87
 注册:2000/10/31 19:46:45
 
 | 
                            
                            #42000/12/28 22:01:12 
                                在director环境下热键当然有冲突呀!
                                
                                
                                
                             |