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 


do key press dont work to stimulate right click ?

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

Joined: 11 Mar 2016
Posts: 231

PostPosted: Wed Oct 12, 2016 7:45 am    Post subject: do key press dont work to stimulate right click ? Reply with quote

this code work
Code:
hk = createHotkey(function() doKeyPress(VK_F3) end, VK_RBUTTON)




this code never work ?
Code:
hk = createHotkey(function() doKeyPress(VK_RBUTTON) end, VK_F3)


Is that bug or
is there any alternative method ?


Last edited by Twistedfate on Wed Oct 12, 2016 4:49 pm; edited 1 time in total
Back to top
View user's profile Send private message
Filipe_Br
Master Cheater
Reputation: 3

Joined: 07 Jan 2016
Posts: 272
Location: My house

PostPosted: Wed Oct 12, 2016 9:03 am    Post subject: Re: do key press dont work to stimulate right click ? Reply with quote

This script works, maybe you just confused. "VK_RBUTTON"
It is the law services mouse button. If you want the keyboard right key use "VK_RIGHT"
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Wed Oct 12, 2016 11:32 am    Post subject: Re: do key press dont work to stimulate right click ? Reply with quote

Twistedfate wrote:
this code work
Code:
hk = createHotkey(function() doKeyPress(VK_F3) end, VK_RBUTTON)

this code never work ?
Code:
hk = createHotkey(function() doKeyPress(VK_F3) end, VK_RBUTTON)
-They're the same.
Back to top
View user's profile Send private message
Filipe_Br
Master Cheater
Reputation: 3

Joined: 07 Jan 2016
Posts: 272
Location: My house

PostPosted: Wed Oct 12, 2016 12:42 pm    Post subject: Re: do key press dont work to stimulate right click ? Reply with quote

What exactly do you do?
Back to top
View user's profile Send private message
Twistedfate
Expert Cheater
Reputation: 1

Joined: 11 Mar 2016
Posts: 231

PostPosted: Wed Oct 12, 2016 4:51 pm    Post subject: Re: do key press dont work to stimulate right click ? Reply with quote

Quote:
++METHOS"

Sorry I edited the post
I want to use F3 to stimulate right click
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Wed Oct 12, 2016 5:43 pm    Post subject: This post has 1 review(s) Reply with quote

Code:
if myhotkey then
  myhotkey.Destroy()
  myhotkey = nil
end
myhotkey = createHotkey(function()
  mouse_event(MOUSEEVENTF_RIGHTDOWN)
  mouse_event(MOUSEEVENTF_RIGHTUP)
end, VK_F3)
Back to top
View user's profile Send private message
Twistedfate
Expert Cheater
Reputation: 1

Joined: 11 Mar 2016
Posts: 231

PostPosted: Wed Oct 12, 2016 5:54 pm    Post subject: Reply with quote

Quote:
Zanzer

I love you ^^
mouse event is new in ce 6.6 ty man
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Wed Oct 12, 2016 6:02 pm    Post subject: Reply with quote

I guess you could do it with a single call too.
Code:
mouse_event(24)
Or left-click:
Code:
mouse_event(6)
Back to top
View user's profile Send private message
alis959
How do I cheat?
Reputation: 0

Joined: 07 Sep 2020
Posts: 4

PostPosted: Sat Jan 15, 2022 1:29 pm    Post subject: Reply with quote

Zanzer wrote:
I guess you could do it with a single call too.
Code:
mouse_event(24)
Or left-click:
Code:
mouse_event(6)

can u help me to do this code work
v = readInteger ("[Conquer.exe+DD2334]+A18")
ta=createTimer()
ta.Interval=1
ta.OnTimer=function(ta)
if v >= 99 then
doKeyPress(112)
end
ta.destroy()

end
Back to top
View user's profile Send private message
Frouk
Master Cheater
Reputation: 5

Joined: 22 Jun 2021
Posts: 489
Location: mov dword ptr [Ukraine]

PostPosted: Sat Jan 15, 2022 1:42 pm    Post subject: Reply with quote

alis959 wrote:
Zanzer wrote:
I guess you could do it with a single call too.
Code:
mouse_event(24)
Or left-click:
Code:
mouse_event(6)

can u help me to do this code work
v = readInteger ("[Conquer.exe+DD2334]+A18")
ta=createTimer()
ta.Interval=1
ta.OnTimer=function(ta)
if v >= 99 then
doKeyPress(112)
end
ta.destroy()

end


Please do not bump a topic 6 year old

_________________
void(__cdecl *Haxing)(HWND hGameWindow)
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