repo.or.cz
/
rofl0r-libxauto.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
added a Makefile to use it as a C library. no python dependencies. added 2 example...
[rofl0r-libxauto.git]
/
src
/
test_findwindow.c
blob
7189de40010977b992c6b15a926348e19bee1a87
1
#include
"xaut.h"
2
#include <stdio.h>
3
4
int
main
(
int
argc
,
char
**
argv
) {
5
if
(
argc
<
2
)
return
1
;
6
7
char
*
title
;
8
if
(
strcmp
(
argv
[
1
],
"--v"
) ==
0
) {
9
if
(
argc
<
3
)
return
1
;
10
extra_verbose
(
1
);
11
title
=
argv
[
2
];
12
}
else
title
=
argv
[
1
];
13
14
Window ret
=
find_window
(
title
);
15
printf
(
"%lu
\n
"
, *(
unsigned long
*)&
ret
);
16
return
0
;
17
}