Prev Previous Post   Next Post Next
Old 10-15-2018, 09:37 AM   #1
mespotine
Human being with feelings
 
mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig, Germany
Posts: 513
Default gfx.getchar() - Bugs (FIXED)

I've found some issues with gfx.getchar.

When hitting F10, it will return the code twice, unlike all other keys, where it returns the code once, waits a moment before returning the second keystroke.
The following code reproduces it on Reaper 5.941 and Reaper 5.96 sucessfully.

I'm using Windows 7Pro, with a naked Reaper 5.96 and SWS installed.

Code:
gfx.init()
function main()
  A=gfx.getchar()
  if A>=1 then reaper.ShowConsoleMsg(A.."\n") end
  if A~=-1 then reaper.defer(main) end
end

main()

There's also an issue with the Euro-currency symbol €
This returns two codes, 261 and 128. Is this intentional? Are there other characters that can be returned that way?
__________________
Reaper Fun Fact of the week: Font in the IDE is too small?
Change Config-variable edit_fontsize or the reaper.ini entry [REAPER]->edit_fontsize to the fontsize you need.
mespotine is offline   Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 02:13 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.