1) Make a script get the dimensions of the whole screen when its been targeted on the RuneScape client ?
2) Make the script detect which window you are on (task bar on windows XP) and change that, then change back ?

1) Make a script get the dimensions of the whole screen when its been targeted on the RuneScape client ?
2) Make the script detect which window you are on (task bar on windows XP) and change that, then change back ?
1. Use GetClientDimensions
2. Not sure.
lol


For first point;SCAR Code:h := GetClientWindowHandle;
ResetDc;
GetClientDimensions(x, y);
SetClientWindowHandle(h);
Second point, is there a colour change based on currently selected/active window? ResetDC reverts clients to desktop, so may be possible to look for the different colour along the bottom (0, y - 50, x, y for area or something more accurate). From that, store them and then find a non-blank one (window there colour rather than a no window colour?) and then switch back after clicking.
By reading this signature you agree that mixster is superior to you in each and every way except the bad ways but including the really bad ways.

My TaskBar :
The Darker one is the selected window...
i would find a TPA of the darker selected bars colors, and then get the middle of it (for the box where it surches just use the color picker to find on your screen the size of your task bar)
Lance. Da. Pants.
The best way to contact me is by email, which you can find on my website: http://wizzup.org
I also get email notifications of private messages, though.
Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
Documentation | Source | Simba Bug Tracker on Github and Villavu )
My (Blog | Website)
For the question number 2 you would have to use API calls to get the windows and processes opened like the task manager does.
Last edited by Cazax; 06-01-2009 at 07:14 AM.
Well, for 2. you can always do it the old fashioned way. detecting the color bitmap of the darker taskbar that represent it is currently being used by you. then detect text. long and inefficient script thou.
Or
Just get the icons of the 2 window images + taskbar color to switch between the two. That works for most things, and bitmap needs to be modified each time.
Both will use the mouse.
Or make the script Alt Tab and keep cycling through until you find the icon you want.
Noob, how do you not know about alt-tab O_O.
well, usually just a move and click was fast enuf for me. So, I never bothered learning shortcuts like that =D.

Do mixter()'s method and store the handle to a variable (LongWord) I think, then set the client as that handle.
The best way to contact me is by email, which you can find on my website: http://wizzup.org
I also get email notifications of private messages, though.
Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
Documentation | Source | Simba Bug Tracker on Github and Villavu )
My (Blog | Website)
There are currently 1 users browsing this thread. (0 members and 1 guests)