Jump to content
Nils

Problem when running on different Computers.

Recommended Posts

I wrote a small script to input arrows as they are shown on the screen

 

Program DBSSS;
var
intX1:integer;
intY1:integer;
intColor:integer;
intBackColor:integer;
intFocusType:Integer;

strMacroShards:string;
strMacroShadow:string;
strMacroFocus:string;

Procedure Init;
begin
intX1:=405;
intY1:=317;
intColor:=3342336;
intBackColor:=11974336;
strMacroShards:='m';
strMacroShadow:='p';
strMacroFocus:='o';
intFocusType :=1;

end;
procedure Intypen;

var
intAantal:integer;
intPijl:integer;
begin

For intAantal := 0 to 4 do
begin

If(GetColor(intX1 + intPijl ,intY1) =  intColor) then
begin
SendArrow(2);
end;

If(GetColor(IntX1+5 + intPijl, intY1-6) =  intColor) then
begin
SendArrow(1);
end;

If(GetColor(intX1 - 6  + intPijl, intY1 - 6) =  intColor) then
begin
If(GetColor(intX1 -2 + intPijl, intY1- 1) =  intColor) then
begin
SendArrow(3);
end;
end;

If(GetColor(intX1 + intPijl, intY1- 11) =  intColor) then
begin
If(GetColor(intX1 + 5 + intPijl,IntY1 - 6) =  0) then
begin
SendArrow(0);
end;
end;
intPijl:=intPijl+16;
end;
end;

Procedure Check;
begin

If not(GetColor(intX1+57, intY1-10) =  intBackColor) then
begin
wait(500)
SendKeys(strMacroFocus);
Wait(1000)

If intFocustype >= 1 Then
begin
SendArrow(2);
Wait(300)
end;

If intFocustype >= 2 Then
begin
SendArrow(2);
Wait(300)
end;

If intFocustype >= 3 Then
begin
SendArrow(2);
Wait(300)
end;

If intFocustype >= 4 Then
begin
SendArrow(2);
Wait(300)
end;

SendKeys(chr(13));


end;
end;

begin
Init;
Repeat
Wait(1000)
Intypen;
Wait(300)
Check;
Until(False)
end.

 

It ran fine on 3 computers but on two others it did some strange stuff,

It sent the commands to every window I clicked in, except for the one I had targeted,

When I tried it there, it simply didn't do anything.

I'm using the script for a game on BYOND

Does anybody know what causes this?

 

Thanks in advance,

Nils

Link to comment
Share on other sites

I'm the person, he is trying to help setup this script on. We are doing it on TeamViewer and he's been trying to do it for the past 3 days but nothing has worked. I'm using an IMac 2011 27 inch with windows 7 64 bit running through bootcamp.

 

Edit - Could maybe one the administrators help us through Teamviewer? There is Multi Client support on Teamviewer, so Nills can be in the session and so could one of your administrators.

Edited by VongolaXEspada
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
  • Create New...