SRL Archive - Senior News and General

Simba client controls that replace the old SCAR ones


Flyboy

2012-02-14 23:27:50

As I have been gone from SRL for a long time, it is taking me a bit to wrap my head around Simba in some key areas. Any chance one of you could point me in the right direction.

I am currently writing a script that plays a Facebook game but got stuck trying to figure out how to play multiple players at the same time using either a tab or separate window for each player, then letting the script switch between windows to play each player.

I can't find the client controls in Simba that were in old SCAR. Some of the commands I'm thinking of are:
FindWindow(Title: string);
function FindWindowTitlePart(Title: string; CaseSensitive: Boolean): Boolean;
function FindWindowBySize(Width, Height: Integer): Boolean;
procedure ActivateClient; - This one is still there.
function GetClientWindowHandle : Integer;
procedure SetClientWindowHandle(H: Integer);
Does Simba have other commands that replace these? An example script would rock to learn from…
Ideally I would love to see someones existing script that handles the issues of using multiple fb accounts, as I suspect I will need to link the game with a specific cookie to log in as different people.

weequ

2012-02-15 12:07:33

Open Simba and check the windows functions on the left. Also check what is in 'other' functions.
I'm sorry I probably didn't help at all. I'm not really good with that stuff either.

Wizzup?

2012-02-15 12:14:11

http://docs.villavu.com/simba/scriptref/window.html

Flyboy

2012-02-15 17:28:15

From: weequ
Open Simba and check the windows functions on the left. Also check what is in 'other' functions.
I'm sorry I probably didn't help at all. I'm not really good with that stuff either.

Thanks weequ, the effort is appriciated.

From: Wizzup?
http://docs.villavu.com/simba/scriptref/window.html

Wizzup, once again I must say, You ROCK!!!

On a side note, it would be nice if a help button in Simba brought you to that doc… just a thought…
Thanks again!

BraK

2012-02-16 06:33:56

Sorry for the Off topic post.

Long time no see Flyboy. I remember back when I use to talk with you I was just a little baby Junior Member in 2006. So long Ago that I had to say HI! :)

By the way for windows and process switching you can find a quick example of How I did it for my test taker in the Simba Docs in the Processes area.

E: I did a good bit of looking into that last year. :)

E2: Lol the post ended up having stuff on topic after all XD I can't get to the Docs from work so someone else might be able to point you in the correct direction, but my method searches by process Name.

E3: Dang just noticed Wizzup pointed you at it aready XD

Daniel

2012-02-17 03:00:42

From: Flyboy
On a side note, it would be nice if a help button in Simba brought you to that doc… just a thought…

Help menu> Handbook :p

Flyboy

2012-02-22 21:06:43

From: BraK
Sorry for the Off topic post.

Long time no see Flyboy. I remember back when I use to talk with you I was just a little baby Junior Member in 2006. So long Ago that I had to say HI! :)

By the way for windows and process switching you can find a quick example of How I did it for my test taker in the Simba Docs in the Processes area.

E: I did a good bit of looking into that last year. :)

E2: Lol the post ended up having stuff on topic after all XD I can't get to the Docs from work so someone else might be able to point you in the correct direction, but my method searches by process Name.

E3: Dang just noticed Wizzup pointed you at it aready XD


Its great to hear from you Brak! I trust the few years have been good to you. Its great to see you still active here.

Thanks for the tip, it would be so much easier if I just had a chunk of time to work on it… but life does not seem to work that way, making learning something new a bit more tough, but I will get there in hte end. Currently I am trying to get Simba to open the web browser to the right page… more work to do, but it is promising.

From: Daniel
Help menu> Handbook :p

lol, too funny. When I tried that once in the past, I got a timeout error and never tried it again. Seems to work now. Lesson learned: try, try, and try again.