my @windows = FindWindowLike(0, "^Microsoft Excel", "^XLMAIN\$");
how should I mention access instead of excel?(this piece of code is from the synopsis of the website you mentioned)
Rather than make a guess you could read the documentation for this method. Read the documentation, read the tutorial which teaches you how to use this, read Win32::GuiTest::Examples (note spy--.pl & spy.pl).