Search found 18 matches

by aks
Thu Nov 13, 2008 1:09 pm
Forum: Beginners
Topic: Execute a variable
Replies: 18
Views: 18610

Hi,

I have also tried creating different file names for the include. Still this will execute the first file that is loaded. Please help me with this issue.

Regards,
Aks
by aks
Thu Nov 13, 2008 10:04 am
Forum: Beginners
Topic: Execute a variable
Replies: 18
Views: 18610

Hi, I am using the following block of code to execute commands in macro scheduler that are sent by an external script. WriteLn>%TEMP_DIR%\_temp.scp,r,cmd Include>%TEMP_DIR%\_temp.scp DeleteFile>%TEMP_DIR%\_temp.scp MessageModal>PostData HTTPRequest>server_addr,,POST,PostData,cmd,,,, Until>cmd,DONE e...
by aks
Thu Nov 06, 2008 4:05 pm
Forum: Beginners
Topic: Scripting Help
Replies: 1
Views: 3819

Scripting Help

I am trying to create a http client in macro scheduled script which has to connect to the server which is launched in the same system. let>s_ip=http://myIp:8989 let>cmdResult=RUNNING HTTPRequest>s_ip,,POST,result=cmdResult,cmd,,,, messageModal>cmd Netstat shows that the server is launched. But i get...
by aks
Thu Nov 06, 2008 10:16 am
Forum: Beginners
Topic: Image Recognition Help
Replies: 13
Views: 12469

:D That's really neat!!!. Ok now i have to run one of the macro script form commandline on winxp. I used this command 'msched myscript'.
But system is not recognizing 'msched' as a valid command. Is there any setting changes i have to do?
by aks
Wed Nov 05, 2008 1:45 pm
Forum: Beginners
Topic: Image Recognition Help
Replies: 13
Views: 12469

Ooops my mistake. Thanks so much. I have one more question.
Does Macro Scheduler support OCR? If FindImagePos returns more than one match how will i perform some operation on a specific image?

Thanks & Regards,
Aks
by aks
Wed Nov 05, 2008 10:50 am
Forum: Beginners
Topic: Image Recognition Help
Replies: 13
Views: 12469

I tried doing that but i guess i am going wrong in specifying the dimension of the image. Needle image dimensions is 32x29 FindImagePos>needle,SCREEN,0,0,Xs,Ys,n If>n>0 //for this example just get first match Let>x1=Xs_0 Let>y1=Xs_0 Let>x2=x1+32 Let>y2=y1+29 ScreenCapture>x1,y1,x2,y2,c:\newbmp.bmp E...
by aks
Tue Nov 04, 2008 10:03 am
Forum: Beginners
Topic: Image Recognition Help
Replies: 13
Views: 12469

Wow that is very very usefull. I will try this and get back to you.

Thank you
Aks
by aks
Tue Nov 04, 2008 8:44 am
Forum: Beginners
Topic: Image Recognition Help
Replies: 13
Views: 12469

Hi Marcus, yes i refered the demo as well as blog on image recognition. Using the same approch given in the blog a smaller image is found in the screen image using FindImagePos. Now as you explained FindImagePos will return the cordinates of the smaller image. Using these cordinates can i recapture ...
by aks
Mon Nov 03, 2008 11:25 am
Forum: Beginners
Topic: Image Recognition Help
Replies: 13
Views: 12469

Image Recognition Help

Hi, If i have to achive an end to end automation using only image recognition feature then how do i script the following scenerio: There is a checkbox on one of the window opened inside a remote desktop screen. The image of this chekbox and its message is my reference image. Now screenCapture will c...
by aks
Wed Oct 22, 2008 11:07 am
Forum: Beginners
Topic: Loading external dll
Replies: 9
Views: 8900

Hi Marcus, I tried the following code: LibLoad>myLib.dll,hLib Remark>Registering with framework lib LibFunc>hLib,LibRegister,rc,MacroEngine,Handle If i debug the first line macro scheduler message box pops up saying 'Access violation at address 00000015.Read of address 00000015' And if i place the d...
by aks
Wed Oct 22, 2008 7:06 am
Forum: Beginners
Topic: Loading external dll
Replies: 9
Views: 8900

Hi Marcus,

Function defined in the dll is: unsigned int LibRegister(char *handleName, char *handle)

As u see both are character pointers. And return type is int.

Do you see something that i should change?
by aks
Tue Oct 21, 2008 10:46 am
Forum: Beginners
Topic: Loading external dll
Replies: 9
Views: 8900

Hi Marcus, I tried the following code to use a function in the external dll: LibLoad>F:\myLib.dll,hnd LibFunc>hnd,LibRegister,check,ref:MacroEngine,ref:Handle MessageModal>check LibFree>hnd variable check should contain a string. But while running this code i got "access violation error". I have pre...
by aks
Fri Oct 17, 2008 9:40 am
Forum: Beginners
Topic: Accessing variable inside Vbstart-VBEnd block
Replies: 3
Views: 5380

Hi Marcus,

Same way how can i access variable set using macro inside the vb block?
if i do:
let>msg=hello world
vbstart
msgBox msg
vbend

If i execute this code vb msg box is empty. I have also tried declaring the msg variable global inside the vbblock using dim. Still i dont get the message.
by aks
Thu Oct 16, 2008 3:03 pm
Forum: Beginners
Topic: Accessing variable inside Vbstart-VBEnd block
Replies: 3
Views: 5380

Accessing variable inside Vbstart-VBEnd block

Hi, let>res=This is a test message VBSTART dim res msg=res MsgBox(msg) VBEND What is missing in the above code snippet? Or the only way to link vbscript and macro is to use function and sub commands of vbscript? Meaning: let>res=This is a test message VBSTART Sub DisplayMessage (msg) MsgBox msg End ...
by aks
Thu Oct 16, 2008 10:09 am
Forum: Beginners
Topic: Execute a variable
Replies: 18
Views: 18610

Hi Marcus, I tried out the steps you have mentioned. I ran the following code snippet: Let>check=message>checking command WriteLn>%TEMP_DIR%\_temp.scp,r,check Include>%TEMP_DIR%\_temp.scp DeleteFile>%TEMP_DIR%\_temp.scp I could not see a message box with "checking command" message. I have to get giv...
Sign up to our newsletter for free automation tips, tricks & discounts