PDA

View Full Version : Gir.sendkeys



yonu
October 9th, 2013, 12:32 PM
hey I feel feel stupid I am trying to output a hotkey patterne that I can change which is shift then the letter

Here is what I have
newchar = ^.. Char
print("Output:",newchar)
osd.StatusMessage ('OSD',Char)
gir.SendKeys(nil, newchar)

Is there a better way to get this output as I am not getting what I need

Thanks,
Yonu

Ron
October 9th, 2013, 12:37 PM
what is this line supposed to do?

newchar = ^.. Char

I don't recognize that. Does it compile?

yonu
October 9th, 2013, 12:44 PM
hey I figured it out I was looking at the code totally wrong for what I wanted it to do this works

--Outputs Char
osd.StatusMessage ('OSD',Char)
gir.SendKeys(nil, '<SHIFT_DOWN>'.. Char.. '<SHIFT_UP>')

Ron
October 9th, 2013, 12:47 PM
Excellent!

yonu
October 9th, 2013, 01:06 PM
I guess I was wrong it worked a couple times then started crashing girder everytime it is called.

Any ideas,
yonu

yonu
October 9th, 2013, 01:45 PM
thanks I tried the one you posted (I hadn't refreshed the page so I didn't know you had replied) that worked one i put ^ as '^' it is a mod I made to the Alphanumeric script on the forums to jump through the XBMC lists and it requires shift + the letter