Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


how to mouse pointer is a fixed location ?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Sting9x
Cheater
Reputation: 0

Joined: 27 Jul 2016
Posts: 48

PostPosted: Sun Feb 12, 2017 2:03 am    Post subject: how to mouse pointer is a fixed location ? Reply with quote

Hello Admin and member ,here is my code
Code:
if mytimer2 == nil then
  mytimer2 = createTimer(nil, false)
end
mytimer2.OnTimer = function(timer)
  mouse_event(MOUSEEVENTF_RIGHTDOWN | MOUSEEVENTF_RIGHTUP)
end
mytimer2.Interval = 500

if myhotkey then
  myhotkey.Destroy()
end
myhotkey = createHotkey(function()
  mytimer2.Enabled = not mytimer2.Enabled
end, VK_F5)

Is there any way when I run it, it's just a fixed position? and continuous operation until I turn it off? Very Happy
Back to top
View user's profile Send private message
DaSpamer
Grandmaster Cheater Supreme
Reputation: 23

Joined: 13 Sep 2011
Posts: 1392

PostPosted: Sun Feb 12, 2017 12:12 pm    Post subject: Reply with quote

set mouse position onTimer function.
_________________
www.flashacking.net/
HEY Hitler
Do you get lazy when making trainers?
Well no more!
My CETrainer will generate it for you in seconds, so you won't get lazy! Very Happy

http://forum.cheatengine.org/viewtopic.php?t=564919
Back to top
View user's profile Send private message Visit poster's website
Sting9x
Cheater
Reputation: 0

Joined: 27 Jul 2016
Posts: 48

PostPosted: Thu Feb 16, 2017 7:33 am    Post subject: Reply with quote

Upppppppppp Sad
Help me Sad
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 119

Joined: 09 Jun 2013
Posts: 3209

PostPosted: Thu Feb 16, 2017 5:55 pm    Post subject: Reply with quote

Code:
setMousePos(x,y)
Back to top
View user's profile Send private message
Corroder
Master Cheater
Reputation: 8

Joined: 10 Apr 2015
Posts: 404

PostPosted: Thu Feb 16, 2017 10:00 pm    Post subject: Reply with quote

Code:
mytimer2.OnTimer = function(timer)
  mouse_event(MOUSEEVENTF_RIGHTDOWN | MOUSEEVENTF_RIGHTUP)
  setMousePos(x,y)
end
Back to top
View user's profile Send private message
akumakuja28
Master Cheater
Reputation: 16

Joined: 28 Jun 2015
Posts: 432

PostPosted: Thu Feb 16, 2017 10:23 pm    Post subject: Reply with quote

Code:
mytimer2.OnTimer = function(timer)

mouse_event(MOUSEEVENTF_ABSOLUTE, 100,200)
  mouse_event(MOUSEEVENTF_RIGHTDOWN | MOUSEEVENTF_RIGHTUP)
 
end


Set position first then execute right click

_________________
Back to top
View user's profile Send private message
SunBeam
I post too much
Reputation: 63

Joined: 25 Feb 2005
Posts: 4011
Location: Romania

PostPosted: Fri Feb 17, 2017 1:44 am    Post subject: Reply with quote

..online games again..
_________________
More stuff on sb.deviatted.com. Work in progress.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites