Search Results


Tuesday, August 23, 2016

Automatic java mouse mover

There are many solutions to moving mouse automatically to keep the screen active in windows.

For java programmers, simple solution is to write a java program to move the mouse automatically.


package movemouse;

import java.awt.MouseInfo;
import java.awt.PointerInfo;
import java.awt.Robot;

import java.util.Random;

public class moveMouse {
    public moveMouse() {
        super();
    }

    public static final int WAIT = 60 * 1000; // SECONDS
    public static final int OFFSET = 3;

    public static void main(String... args) throws Exception {
        int x, y;
        Robot robot = new Robot();
        Random random = new Random();
        PointerInfo a;

        while (true) {

            a = MouseInfo.getPointerInfo();
            x = (int) a.getLocation().getX();
            y = (int) a.getLocation().getY();
            robot.mouseMove(+ OFFSET, y + OFFSET);
            Thread.sleep(WAIT);

            a = MouseInfo.getPointerInfo();
            x = (int) a.getLocation().getX();
            y = (int) a.getLocation().getY();
            robot.mouseMove(- OFFSET, y - OFFSET);
            Thread.sleep(WAIT);
        }
    }
}



Compile and Enjoy!

If you don't have jdk use this jar file (moused.jarred). Open the link and clikc on Download button to download the file and then rename it to jar. Use the following command to execute it.

java -jar moused.jar

Thursday, August 18, 2016

Some Useful FNDLOAD commands

Following are some of the useful commands to migrate WEBADI, Concurrent programs and request set link in EBS R12.

WEB ADI or Oracle Data Integrator


FNDLOAD apps/apps 0 Y DOWNLOAD $BNE_TOP/patch/115/import/bneintegrator.lct ldt_file_xintg.ldt BNE_INTEGRATORS INTEGRATOR_ASN="XXC" INTEGRATOR_CODE="TEST_XINTG"


FNDLOAD apps/apps 0 Y UPLOAD $BNE_TOP/patch/115/import/bneintegrator.lct ldt_file_xintg.ldt

Concurrent Programs


Concurrent program download also extracts the Executables and value sets along with it.

FNDLOAD apps/apps O Y DOWNLOAD $FND_TOP/patch/115/import/afcpprog.lct $program.ldt PROGRAM APPLICATION_SHORT_NAME=XXA CONCURRENT_PROGRAM_NAME=$program


FNDLOAD apps/apps 0 Y UPLOAD $FND_TOP/patch/115/import/afcpprog.lct XXtestfile.ldt WARNING=YES UPLOAD_MODE=REPLACE CUSTOM_MODE=FORCE


Request set and links


These commands will export both Request set and request set links.

FNDLOAD apps/apps 0 Y DOWNLOAD $FND_TOP/patch/115/import/afcprset.lct testfile.ldt REQ_SET_LINKS REQUEST_SET_NAME='XXTEST_REQ_SET'



FNDLOAD $APPS_UN/$APPS_PW 0 Y UPLOAD @FND:patch/115/import/afcprset.lct $LDT_DIR/testfile.ldt UPLOAD_MODE=REPLACE CUSTOM_MODE=FORCE


FND Messages


Following command will download and load fnd messages.

FNDLOAD apps/$APPS_PW 0 Y DOWNLOAD $FND_TOP/patch/115/import/afmdmsg.lct messages_file.ldt FND_NEW_MESSAGES APPLICATION_SHORT_NAME="XXC" MESSAGE_NAME="MESSAGE_NAME"


FNDLOAD apps/$APPS_PW 0 Y UPLOAD $FND_TOP/patch/115/import/afmdmsg.lct XXC_UBM_HR_DEDUCTION_CODE_MISS.ldt WARNING=YES UPLOAD_MODE=REPLACE CUSTOM_MODE=FORCE