Hey guys, is there a way to make a JASS script that uses press/release events for any key on the keyboard.
Read this code (Press UP event):
See the 'KEYEVENTKEY_UP'? Could there be a JASS name for another key on the keyboard. Of course 'KEYEVENTKEY_A' didn't work.
Has anyone ever worked with VisualBasic? There is a press/release function for any key where for example the A-key is like vb_50 (I know its not that or even like that, but the important thing is it's got a code). JASS should have sumthing like that, no?
Read this code (Press UP event):
Code:
function InitTrig_B0_Copy takes nothing returns nothing
set gg_trg_B0 = CreateTrigger( )
call DisableTrigger( gg_trg_B0 )
call TriggerRegisterPlayerKeyEventBJ( gg_trg_B0, Player(0), bj_KEYEVENTTYPE_DEPRESS, bj_KEYEVENTKEY_UP )
call TriggerAddAction( gg_trg_B0, function Trig_B0_Actions )
endfunction
See the 'KEYEVENTKEY_UP'? Could there be a JASS name for another key on the keyboard. Of course 'KEYEVENTKEY_A' didn't work.
Has anyone ever worked with VisualBasic? There is a press/release function for any key where for example the A-key is like vb_50 (I know its not that or even like that, but the important thing is it's got a code). JASS should have sumthing like that, no?