I've been trying to get an isigraph to move to a certain location when the user presses the up arrow key. I figured out how to get it to move based on any key:
test_pic_char =: 3 : 0 wd 'setxywh pic 0 0 150 150' ) But I'm unsure how to detect the up key. Based on the isigraph events page (http://www.jsoftware.com/help/user/isigraph_events.htm), I figured sysdata would be 21 when the user presses the up key: test_pic_char =: 3 : 0 if. sysdata = 21 do. wd 'setxywh pic 0 0 150 150' end. ) However, this did nothing. After looking at http://www.jsoftware.com/help/jforc/graphics.htm I tried adding 128 to the value I was testing for: test_pic_char =: 3 : 0 if. sysdata = (128+21) do. wd 'setxywh pic 0 0 150 150' end. ) Still nothing. I tried putting the value of sysdata into a global variable to see what it's value was after pressing the arrow key, but instead of a number, it was the character ┤ I'm kind of stuck at this point. Can anyone help? -- <a href="http://www.spreadfirefox.com/?q=affiliates&id=153516&t=1"><textarea rows="3" cols="40">Get Firefox!</a>
---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
