taultunleashed logoScriptHost version 2.7.12 : Site News
newtopic  postreply
 [ 2 posts ] 
blue large dot

ScriptHost version 2.7.12 : Site News

Posted: December 16th, 2004, 1:11 am
 
Admin

Total Posts: 1168
Location: Waco
Joined: May 1st, 2004, 4:00 am
Admin's Reps: 4
User avatar
administrator
premium
December 16, 2004
ScriptHost version 2.7.12

Added a few scriptHost functions.
Function Win32API.XUGetForegroundWindow() As Long 'See GetForegroundWindow API microsoft.
Function Win32API.XUGetClientRect(ByVal hwnd As Long, lpRect As tagRECT) As Long 'See GetClientRect API from microsoft.
Function Win32API.XUScreenToClient(ByVal hwnd As Long, lpPoint As tagPOINT) As Long
Function Win32AP.XUClientToScreen(ByVal hwnd As Long, lpPoint As tagPOINT) As Long


I Also updated GetPixelColor to more accuretly reflect the color on the screen.
Public XUScriptHostGetPixelColor(ByVal X As Long, ByVal Y As Long, Optional hwnd As Long) As Long

The added optional hwnd is for the window handle. It will default to 0 (desktop) if not supplied for backwards compatibility. However, if you call XUScriptHost.GetForegroundWindow and pass that as the hwnd, it will get the pixel (x,y) of the game window. This is very handy for fullscreen applications that might cause the getpixelcolor function to return an invalid color.

The other functions may be needed to help with conversion form full screen to windowed coordinates. Ie, if you are getting the pixel location from the x,y passed from GetCursorPos, those will be in screen coordinates which will need to be converted to game coordinates via the XUScreenToClient function.


Reply with quote
Posted: December 16th, 2004, 2:13 am
 
wyvernx

Total Posts: 6718
Joined: May 1st, 2004, 4:00 am
wyvernx's Reps: 21
User avatar
administrator
premium
It is bugged, roll it back plz.

It is causing my functions to return all 0.

_________________
Use Search first, ask questions later!


Reply with quote
Want Advertisements After The Last Post Removed? Create A Free Account!

blue large dot Who is online
Users browsing this forum: No registered users and 17 guests

Popular Sections
SWTOR Cheats
Guild Wars 2 Cheats
Guild Wars 2 Hacks
Guild Wars 2 Bots
Diablo 3 Cheats
Guild Wars 2 Mods

Popular Sections
WoW Cataclysm Cheats & Exploits
WoW Cataclysm Hacks & Bots
Star Wars The Old Republic Cheats
SWTOR Mods
Torchlight 2 Cheats
SWTOR Space Mission Bots
Site Nav and RSS
RSS Feed of Site News RSS Feed 
Sitemap of Site News Sitemap 
SitemapIndex SitemapIndex
RSS Feed RSS Feed
Channel list Channel list
left bottom corner Site and Contents Copyright 2001-2012 All Rights Reserved TaultUnleashed.com bottom corner
top left
top right
createaccount
Username:   Password:   Remember Me?