Thread Win32::GuiTest: IsKeyPressed(shift strg...) (12 answers)
Opened by landogar at 2005-12-13 16:53

esskar
 2005-12-15 02:29
#60882 #60882
User since
2003-08-04
7321 Artikel
ModeratorIn

user image
hab ihm mal folgenden Patch für sein xs-file geschickt
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
441a442,453
> 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;
---
>     /*if (len >= 3)
>         name[3]=NUL;*/
1508a1521,1523
>     } else if (IsDigitString(name)) {
>       OutputDebugString("Trying integer\n");
>       RETVAL = GetAsyncKeyState(atoi(name));


abwarten und tee trinken.\n\n

<!--EDIT|esskar|1134606708-->

View full thread Win32::GuiTest: IsKeyPressed(shift strg...)