This is a very good Tutorial very in depth. I've been scripting for awhile but never really understood how to make a Boolean Function(making a preexisting one work is easy) for myself. I'm testing varius parts of my scripts i'm writing using this. I might just turn whole procedure from my older stuff straight into functions. Here's an example of a peice that I used to test with that I learned from your Tutorial.
Code:
program new;
function xbank:boolean; //closes the bank using [x] button
var
Xbankbmp,x,y,a:integer;
begin
xbankbmp:= BitmapFromString(16, 6, 'meJxT0jLMbu6NzK2MLqwRFpUAIkF' +
'h0YCUvMC0QggXiDyiU13DEsw9/Lm4uJS0DHNbJ4VkFgORb1IWRIGo' +
'hAwcARU7BkcDkYmLF1x9TFED0EygeiASk1WCI6CxbhFJUPX2HnD1Q' +
'PcAVQK1AJGsipaUoiqQBCKg4RDHIJsPcT/EfKAaBTVdOAJyIYqByM' +
'jRHc18iBpFTT2gGiACMiAIqNjePwJiPgB0HEdm');
begin
result:=FindBitmap(xbankbmp,X,Y)
If (result) then
begin
Movemouse(x,y);
clickmouse(x,y,1);
end;
freebitmap(xbankbmp);
end;
end;
begin
if (xbank) then
writeln(' Function Boolean works :)')
else
writeln(' Function Boolean Does not work :(');
end.
Truly reflection and smart are both new to me. So I macro Using Swiftkit. I have alot more freeform for this because of varying screensizes.
EDIT: Hmmm Logged out and went back in and this doesn't work anymore. Requires more testing.
EDIT2: Just noticed when I bring up my win & standard photo editor is the only time it works. I might have to try this with a different photo editor. Futher exploring leads me to the fact that I have to run display settings in Win 7 Basic Mode.