Skip Menu |

This queue is for tickets about the Win32-GuiTest CPAN distribution.

Report information
The Basics
Id: 16497
Status: resolved
Priority: 0/
Queue: Win32-GuiTest

People
Owner: Nobody in particular
Requestors: perl [...] intertivityNOSP4M.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in:
  • 0.3
  • 0.4
  • 0.5
  • 0.6
  • 0.7
  • 0.8
  • 0.9
  • 1.0
  • 1.1
  • 1.2
  • 1.3
  • 1.50.1-ad
  • 1.50.2-ad
  • 1.50.3-ad
Fixed in: (no value)



Subject: IsKeyPressed file (guitest.xs)
Hi, I noticed that IsKeyPressed does not use the full power of the GetAsyncKeyState function, so i propose this patch. Here the patch for guitest.xs (i attached my version of the file to this mail) 441a442,453 Show quoted text
> BOOL IsDigitString(const char *s) > { > if(s == NULL || *s == 0) > return FALSE; > > while(*s && isdigit(*s)) { > s++; > } > > return *s == 0 ? TRUE : FALSE; > } >
1503,1504c1515,1516 < if (len >= 3) < name[3]=NUL; --- Show quoted text
> /*if (len >= 3) > name[3]=NUL;*/
1508a1521,1523 Show quoted text
> } else if (IsDigitString(name)) { > OutputDebugString("Trying integer\n"); > RETVAL = GetAsyncKeyState(atoi(name));
HTH --esskar (esskar@cpan.org) Perl: This is perl, v5.8.7 built for MSWin32-x86-multi-thread OS: WindowsNT SK 1 5 x86

Message body is not shown because it is too large.

The functionlity added in 1.52. Now, not only IsKeyPressed can treat integers as VK scancodes, but SendKeys also, using "{}" semantics.
resolved