Granado Espada,bot,bypass,x-trap,XTrap,Sword2,AFK,macro, autokeep,loot,tool, alarm, shutdown

Sunday, 29 September 2013

Green Macro version 20 released

Now support native scripts. You no longer  need Auto IT or AutoHotKey scripts, but you can code native green macro scripts easily.

please visit https://geafktools.appspot.com/index.html for tutorial, sample scripts, library, function list etc.

a sample script here:


var y=0x1c;
var  fx=0;
var fy=0;
var sx=0;
var sy=0;
var fnd;
function x(param1,param2)
{
    //your own function here
    return true;
}
function main(){ //always have a main function
    //WriteLogFile("log1.txt", "activetate...");
   
    RunApp("calc.exe", "");
   
    Delay(1000);
    if(ActiveWindow("calc.exe"))
    {
        x(9,18);
       
        Delay(1000);
            var v1=SKeyDown(0x08);//send a scan key 0x08 down
        WriteLogFile("log1.txt",v1);
        Delay(50);
        var v2=SKeyUp(0x08);    //send a scan key 0x08 up
        WriteLogFile("log1.txt",v2);
       
        Delay(50);
        v1=VKeyDown(0x37);    //send a scan virtual key 0x37 down
        WriteLogFile("log1.txt",v1);
        Delay(50);
        var v2=VKeyUp(0x37);    //send a scan virtual key 0x37 up
        WriteLogFile("log1.txt",v2);
        Delay(500);
        var m1=MouseMoveTo(0,0);    //mouse move to top left coroner of screen
        WriteLogFile("log1.txt","move:"+ m1);

       
    }
   
}