The KGB Oracle
Serving the online gaming community since 1997
Visit www.the-kgb.com
For additional information

Join KGB DISCORD: http://discord.gg/KGB
 
KGB Information
Untitled 1

Visit KGB HQ
www.the-kgb.com

Who's Online Now
0 members (), 71 guests, and 9 robots.
Key: Admin, Global Mod, Mod
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Today's Birthdays
There are no members with birthdays on this day.
Newest Members
Luckystrikes, Shingen, BillNyeCommieSpy, Lamp, AllenGlines
1,477 Registered Users
Forum Statistics
Forums53
Topics13,095
Posts116,356
Members1,477
Most Online276
Aug 3rd, 2023
Top Likes Received (30 Days)
None yet
Top Posters(30 Days)
Popular Topics(Views)
2,035,847 Trump card
1,342,423 Picture Thread
480,663 Romney
Previous Thread
Next Thread
Print Thread
Rate Thread
#42024 04/03/09 05:35 PM
Joined: Dec 2005
Posts: 173
Revco Offline OP
KGB Knight
****
OP Offline
KGB Knight
****
Joined: Dec 2005
Posts: 173
Was asked to post this. All information stolen and compiled.

This will allow you to mouse over an item, hit a G key and have that item picked up, placed in a location you provide and the mouse pointer return to its original position.

I used the G9 key as my loot key, if you use a different key just replace the # in arg==9 with whatever G# you want in both scripts

**First, verify that your LCD is setup to display output

Open Logitech GamePanel Manager
Click Programs
Ensure that the Program Name 'Logitech G-series Scripting Display' has the Enable and Logitech G15 LCD boxes checked
Close Logitech GamePanel Manager


**Next you need to get the coords where you want to drop items that you loot:

Open Profiler.
From the menubar select Edit -> Script Editor...
Paste the code below in the window that opens
---------------------
function OnEvent(event, arg)
if (event=="G_PRESSED" and arg==9) then
local x, y = GetMousePosition();
local sFmt = string.format("Mouse is at %d,%d\n", x, y);
OutputLCDMessage(sFmt);
end
end
------------------------
in the meanubar select Script -> Save
close window
Leftclick the G9 key
select Assign Script
close Profiler
Hit the G9 key, coords should display on your LCD, write them down
Replace the numbers in MoveMouseTo(6948, 43982) in the script below with the coords

**Last you setup the loot script

Open Profiler.
From the menubar select Edit -> Script Editor...
Delete the text in the window that opens
Paste the code below in the window
-------------------------
function OnEvent(event, arg)
if (event == "G_PRESSED" and arg == 9) then
x, y = GetMousePosition();
PressMouseButton(1)
Sleep(10)
MoveMouseTo(6948, 43982)
Sleep(10)
ReleaseMouseButton(1)
Sleep(10)
MoveMouseTo(x, y)
end
end
------------------------------

Joined: Jun 2008
Posts: 1,036
KGB Arch Duke
****
Offline
KGB Arch Duke
****
Joined: Jun 2008
Posts: 1,036
superb



Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.5