Home
Download
Screenshots

Wiki
Plugins
Translations
Developers
Donate

Forums/Help
Contact Us

StrokeIt

[HOTAREAS] for upcoming StrokeIt "enhanced" 0.97

Posted by Leo 
Leo
[HOTAREAS] for upcoming StrokeIt "enhanced" 0.97
January 01, 2010 01:26PM
require[[alien]] 
local GetSystemMetrics= alien.User32.GetSystemMetrics
GetSystemMetrics:types{ret ='long', abi = 'stdcall', 'long'}

local ScreenX 
local ScreenY 
local SM_CXSCREEN = 0
local SM_CYSCREEN = 1
local block1 = 1
local block2 = 2
local block3 = 3
local block4 = 4
local start_x, start_y = gesture.point(0)

ScreenX = GetSystemMetrics(SM_CXSCREEN) 
ScreenY = GetSystemMetrics(SM_CYSCREEN) 


if start_x < (ScreenX/2) and start_y < (ScreenY/2) then 
local params = string.format([["%s" "%s"]], tostring(block1), 'coordinates')
plugin.call("Utilities", "MessageBox", params) 
end

if start_x > (ScreenX/2) and start_y < (ScreenY/2) then 
local params = string.format([["%s" "%s"]], tostring(block2), 'coordinates')
plugin.call("Utilities", "MessageBox", params) 
end

if start_x <(ScreenX/2) and start_y > (ScreenY/2) then 
local params = string.format([["%s" "%s"]], tostring(block3), 'coordinates')
plugin.call("Utilities", "MessageBox", params) 
end

if start_x >(ScreenX/2) and start_y > (ScreenY/2) then 
local params = string.format([["%s" "%s"]], tostring(block4), 'coordinates')
plugin.call("Utilities", "MessageBox", params) 
end
[URL=http://www.bilder-space.de/show.php?file=01.01zvRcQZ6URwRa7Ef.PNG][/URL]

Divide the screen in 4 area's.



Edited 7 time(s). Last edit at 01/01/2010 01:45PM by Leo.
Author:

Your Email:


Subject:


Spam prevention:
Please, solve the mathematical question and enter the answer in the input field below. This is for blocking bots that try to post this form automatically.
Question: how much is 2 plus 23?
Message: