Mouse and Keyboard Commands

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
Machariel
Newbie
Posts: 15
Joined: Mon Mar 10, 2008 8:40 pm

Mouse and Keyboard Commands

Post by Machariel » Thu Mar 20, 2008 11:23 am

Is there a way to make/type the same imput into the macro, as the imput that comes from the real mouse and keyboard.
The application that has to be run by the macro, knows somehow that it is not the real mouse and keyboard that are being used, and therefore it don't work properly with the mouse and keyboard commands ?
________
health shop
Last edited by Machariel on Tue Feb 01, 2011 11:34 pm, edited 1 time in total.

durexlw
Newbie
Posts: 18
Joined: Mon Mar 17, 2008 1:19 pm

Post by durexlw » Thu Mar 20, 2008 11:34 am

I'm unsure about your question
Do I understand correctly that you want to for example type an 'A' in a textbox when the user hits a 'B' on the keyboard?
And that you would like to be able to move you mouse to the right in your macro when the actual physical mouse if moved to the left? Is that what you ask? If not, can you write down a concrete example?

Trevlar
Newbie
Posts: 3
Joined: Mon Feb 16, 2015 3:37 am

Re: Mouse and Keyboard Commands

Post by Trevlar » Mon Feb 16, 2015 3:39 am

Some programs ignore mouse clicks (and keyboard commands) from macroscheduler but real mouse clicks work fine.

I have not found any solution yet that can simulate a "real" mouse click using this program.

mightycpa
Automation Wizard
Posts: 343
Joined: Mon Jan 12, 2004 4:07 pm
Location: Vienna, VA

Re: Mouse and Keyboard Commands

Post by mightycpa » Wed Feb 25, 2015 6:37 am

Hi,

I'll bite. Name 3 programs that ignore keystrokes and mouseclicks from macroscheduler.

Seriously, I'm curious to know.

Thanks
"A facility for quotation covers the absence of original thought." - Lord Peter Wimsey

Trevlar
Newbie
Posts: 3
Joined: Mon Feb 16, 2015 3:37 am

Re: Mouse and Keyboard Commands

Post by Trevlar » Thu Feb 26, 2015 2:42 am

I can only name two off of the top of my head. I am also 90%+ certain that they have done it on purpose. Additionally, if you use a screen sharing program and then run the macro, the clicks work just fine and register because they are working in the screen sharing program which then sends it to the client machine.

Star Wars The Old Republic -
Once window becomes active it ignores all mouse move, mouse click, and keyboard commands whether using the standard macro commands like LClick, or the LibFunc commands.

Wurm Online -
The regular move mouse commands work for moving the mouse on this one however then you cannot use lclick (Or LDown/LUP or DoubleClick). It however will work if using something like: "LibFunc>user32,SetCursorPos,Res,RefillWaterPosX,RefillWaterPosY" to move the mouse before doing a LClick command.

Same thing for keyboard commands. They do not always work for each action/instance but if you use something like: "LibFunc>user32.dll,keybd_event,r,VK_UP,0,ExtendedKey,0" then it always works.

It is a lot more forgiving than Star Wars and some commands will work in certain menu's / actions but not others and there are usually workarounds like the above command.


With that said, I am not a programmer and have learned how to create macros just from trial and error, so I could be completely missing something. I have created fairly complex (relatively speaking) macros though so I am at least familiar with the basics.

Trevlar
Newbie
Posts: 3
Joined: Mon Feb 16, 2015 3:37 am

Re: Mouse and Keyboard Commands

Post by Trevlar » Thu Feb 26, 2015 3:55 am

I forgot to mention that both games are free to play (and have paid subscriber benefits). In case you wanted to try with them.

swtor.com
wurmonline.com

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts