mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
SysInfo_demo_console: Added by default NO_XTEST flag to avoid problems with old CentOS version
git-svn-id: svn://ultimatepp.org/upp/trunk@8850 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
076f398a41
commit
45fccc4849
2 changed files with 5 additions and 2 deletions
|
|
@ -8,5 +8,6 @@ file
|
|||
main.cpp;
|
||||
|
||||
mainconfig
|
||||
"" = "NO_XTEST",
|
||||
"" = "";
|
||||
|
||||
|
|
|
|||
|
|
@ -131,7 +131,7 @@ void Test()
|
|||
Puts("\nPress enter to continue..."); TestGetchar();
|
||||
|
||||
Puts("\nDrives list:");
|
||||
Array<String> drives;
|
||||
Vector<String> drives;
|
||||
drives = GetDriveList();
|
||||
for (int i = 0; i < drives.GetCount(); ++i) {
|
||||
Puts(Format("Drive path:'%s'", drives[i]));
|
||||
|
|
@ -193,12 +193,14 @@ void Test()
|
|||
Mouse_GetPos(x, y);
|
||||
Puts(Format("Mouse pos is %d, %d", (int)x, (int)y));
|
||||
Mouse_SetPos(200, 200, windowId);
|
||||
|
||||
|
||||
#if defined(PLATFORM_WIN32) || !defined(flagNO_XTEST)
|
||||
Mouse_LeftClick();
|
||||
Keyb_SendKeys("{HOME}This text is added by Keyb_SendKeys.\n");
|
||||
Keyb_SendKeys("And the window resized and moved by Window_SetRect.\n", 0, 0);
|
||||
Keyb_SendKeys("And a window capture in c:\\Windowgrab.bmp.\n", 0, 0);
|
||||
Keyb_SendKeys("Some chars just for test: \\/:;,.ºª^[]{}´?¿~#@!¡\n", 0, 0);
|
||||
#endif
|
||||
#if defined(PLATFORM_WIN32)
|
||||
Window_SetRect(windowId, 10, 10, 800, 400);
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue