danielbloem (01-29-2017)
As the title says, i have a logitech g510 keyboard and g600 mouse, this is a combination of scripts found on official logitech forum (they were made for g300) it supposed to do the following;
when G20 is pressed it should activate the script and LCD screen should state that it is ON or OFF (which works)
when mouse button 3 (right click) AND mouse button 1 is pressed it should shoot and move mouse to relative positions set on "recoil" coordinates (which does not work)
and as far as i found mouse 3 (right click) is added in order to "break" the script incase you want to stop shooting (i removed mouse3 variable but it still did not work)
here is the script;
any suggestions and/or help?Code:sleep_duration = 98 recoil_coords = { { x = 0, y = 8 }, { x = 5, y = 21 }, { x = -5, y = 26 }, { x = 0, y = 23 }, { x = 10, y = 33 }, { x = 12, y = 20 }, { x = 8, y = 33 }, { x = -14, y = 15 }, { x = -35, y = 4 }, { x = -16, y = 2 }, { x = 5, y = 3 }, { x = -12, y = 2 }, { x = -18, y = 2 }, { x = -10, y = 2 }, } function OnEvent(event, arg) if event == "PROFILE_ACTIVATED" then EnablePrimaryMouseButtonEvents(true); end if (event == "MOUSE_BUTTON_PRESSED" and arg == 20) then recoil = not recoil if recoil then ClearLCD() OutputLCDMessage("AK47 No Recoil - ON", 2014) else ClearLCD() OutputLCDMessage("AK47 No Recoil - OFF", 2014) end end if IsMouseButtonPressed(3) and recoil then if (event == "MOUSE_BUTTON_PRESSED" and arg == 1) then for i, v in ipairs(recoil_coords) do Sleep(sleep_duration) if not (IsMouseButtonPressed(1) and IsMouseButtonPressed(3)) then break end MoveMouseRelative( recoil_coords[i].x, recoil_coords[i].y ) end end end end
danielbloem (01-29-2017)
Moved to help.
Muh Tumblr (NSFW)
Click HERE to join the Night Owls if you stay up late on MPGH
Anime Recommendation (3/14/15) | Manga/Manhwa Recommendation (8/20/15)
^ I'll update one of these soon I swear ^
Member Since 8/05/2012
Editor 4/04/13 - 4/21/13
Middleman 7/14/13 - 11/4/13
Battlefield Minion 6/13/14-3/20/15
Steam Minion 7/16/14-3/20/15
Minion+ 10/1/14-3/20/15
M.A.T. Minion 10/19/14-3/20/15
ROTMG Minion 1/14/15-3/20/15
Donator Since 2/26/15 (Thanks @Cursed!)
Steam Minion 5/9/15 - 11/5/15
OSFPS Minion 9/15/15 - 11/5/15
anyone who understands lua and logitech gaming software?
danielbloem (01-29-2017)
I am just trying to move mouse with script but no luck...
edit: "mouse button 3" is middle button for general purpose. in logitech's lua it is the right click (p.s. i am capable of trying right click and middle click in a few seconds :P so it is not the issue here)
i.imgur.com/6ua4XZo.png
isnt AHK a bit more dangerous? btw can you post/send me your ahk scripts?
Last edited by ares0027; 03-21-2015 at 11:23 PM.
Here use this script in logitech https://www.mpgh.net/forum/showthread.php?t=903464
No response after two days, assuming solved.
/Closed
MPGH Staff History:
Minion: 02-12-2013 - 6-28-2013
Former Staff: 6-28-2013 - 7-14-2014
Minion: 7-14-2014 - 1-3-2015
Minion+: 1-3-2015 - 6-1-2015
Moderator: 6-1-2015 - 10-2-2016
Global Moderator: 10-2-2016 - Current
Current Sections:
DayZ Mod & Standalone Hacks & Cheats
BattleOn Games Hacks, Cheats & Trainers
Minecraft Hacks
Other Semi-Popular First Person Shooter Hacks
Blackshot Hacks & Cheats
Need For Speed World Hacks
Other First Person Shooter Hacks
CounterStrike: Global Offensive Hacks
Garry's Mod Hacks & Cheats
Donating:
If you want to donate money to me I take Bitcoin & Paypal, PM me for either of these if you're interested and thanks.
Top Donators: (Awesome People)
FanticSteal $75.00
smurf_master $58.00 <- Best DayZ Gear Seller
Fujiyama $25.00
[MPGH]Black $10.00
[MPGH]Hova $10.00
xJudgez $4.54
[MPGH]Normen's Sheep $3.50
eminemlover $1.50
Brony?
https://www.mpgh.net/forum/groups/1728-mpgh-bronies.html