Blue Eye Logo

Blue Eye Macro

Automation is freedom
It is currently Thu Dec 13, 2018 11:06 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Button still spamming even when BEM is closed
Thanked: 0 time(s)  Unread post Posted: Thu Oct 25, 2018 6:05 am 
New User
New User



Joined: Mon Oct 15, 2018 3:21 am
Posts: 1
Been thanked: 0 time(s)
Has thanked: 0 time(s)
Contribution Points: 10
title.

tried restarting the computer, uninstalling the keyboard driver and, bem driver. didn't fixed it

when Keyboard.Key is held down("{<f2>}")
begin
Keyboard.Press key("2")
Humanly.Pause("25", "25")
Mouse.Click("left")
end

the button that's being spammed is 2. also button 2 doesn't work anymore


Top
 Profile  
Reply with quote  
 Post subject: Re: Button still spamming even when BEM is closed
Thanked: 0 time(s)  Unread post Posted: Fri Oct 26, 2018 12:52 am 
Partner / License admin
Partner / License admin
User avatar



Joined: Sun Oct 10, 2010 5:16 pm
Posts: 1840
Location: USA
Been thanked: 393 time(s)
Has thanked: 33 time(s)
Contribution Points: 16377
First, there must be more to your script or you have infinite loops checked, because that should only run once...meaning it shouldn't get continue to spam 2, it should only press it once. I checked it on my computer and it worked fine (without loops).

I would also assume that it should stop when you press f2 again...but you would have to press it in between your 25ms pause which will be very hard (if not impossible) to do. If you wanted to experiment, set the pause for at least 1 second so you have time to stop it when you need to although my suggestion below is a better fix:

If you're using loops, I wouldn't recommend using "when" for that; you should use "while".

Also your humanly.pause is supposed to be a range (like 25-50ms), not the same number. If you want a static 25ms pause, you should use macro.pause("25").

_________________
----------------------------------------Syrifina---------------------------------------------------
PM me for licenses and/or licensing information: Click Here
[Be sure to include and update your profile with your BE ID]

Forum Rules
Reminder of rules regarding Contribution points
Getting started in 1, 2, 3
Virtual Drivers; Manual Installers


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


You cannot post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group