SRL Archive - Help and Support

Drawing with Simba


NKN

2012-11-03 00:39:51

I'd like to paint TPA's and such, but without using SMART or SMARTGraphics.
How would one go about this?

Kasi

2012-11-03 00:41:35

What do you wanna draw on?

NKN

2012-11-03 00:42:20

From: Kasi
What do you wanna draw on?

My normal computer screen.
Using Simba to make something, so I dragged the crosshairs over.
it's nothing RS related.

Kasi

2012-11-03 00:44:16

Usually to draw with simba you'd have to draw on a canvas. im not 100% sure you can draw straight on to the desktop with simba

Nebula

2012-11-03 00:50:36

Yes, you have to draw on a canvas.

http://villavu.com/forum/showthread.php?t=2482&highlight=canvas

Although some of that might be outdated.

NKN

2012-11-03 01:36:02

/delete thread please.
I quit.

Daniel

2012-11-03 01:49:50

Simba doesn't allow direct drawing onto another applications device context IIRC (I think Windows also prevents this).

@Nebula: That is for the "Debug Window" (as titled) in both SCAR and Simba, although that tutorial is more oriented to SCAR, so some of the methods may not exist within Simba.

Bobarkinator

2012-11-03 12:06:45

Can Simba make transparent canvases?

Kasi

2012-11-03 12:16:36

From: Bobarkinator
Can Simba make transparent canvases?

you can make it seem like it makes transparent canvases

Brandon

2012-11-03 12:49:37

Meh.. Just make an extension/plugin that calls the right WinAPI functions.

GetClientDC
FindWindow
FindWindowEx
Possibly BitBlt too.

Daniel

2012-11-03 20:26:41

From: Bobarkinator
Can Simba make transparent canvases?


Yes, although you would have to invoke calls directly from the Windows API. You would also need to have AllowSysCalls setting set to True in the Simba settings menu.

Bobarkinator

2012-11-04 15:39:08

Well just make a transparent canvas over the entire screen and draw on that I'd say.

Flight

2012-11-04 19:46:03

From: Daniel
Yes, although you would have to invoke calls directly from the Windows API. You would also need to have AllowSysCalls setting set to True in the Simba settings menu.


I had to do the same thing for SilentKeys & SilentMouse in Simba. Luckily I had found Kaitnieks' (or Freddy's?) old source for them in SCAR and converted it to Simba. It works just…buggy(?).