MS with PC Games

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
fightcancer
Macro Veteran
Posts: 260
Joined: Fri Apr 15, 2005 8:32 am

MS with PC Games

Post by fightcancer » Sat Oct 27, 2007 7:37 pm

I'm "power leveling" my character in this old PC game and for some reason MS is of no help. Here's my code.

Code: Select all

SetFocus>Jagged Alliance 2*
WaitReady>0
MouseMove>423,238
Wait>2
RClick
Wait>2
LClick
(The Wait> commands are unnecessary, but I added them just to see if timing was an issue.)

Here's what happens. MS will move the mouse to the correct coordinates, but will fail to RClick, i.e. the icon that should appear when I manually RClick within game never appears when running my MS script.

1) Neither will MS LClick when I substitute the first RClick with an LClick. (An LClick in the game should cause my character to move.)

2) "Let>SK_LEGACY=1" does not help.

3) I've experienced this same problem when working in the popular JPG viewer ACDSee 2.43 where MS seemed to become impotent.

4) I'm running this game in fullscreen mode. Is there any inherent attribute of MS that precludes me from using it in this manner?

Thanks.

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Sat Oct 27, 2007 9:53 pm

Full screen means your system is NOT multitasking. The game takes over entirely. So not other process is going to run and Macro Scheduler is certainly not going to be able to manipulate the game. It would have to be running in windowed mode for Macro Scheduler to simulate input against it.

It is also possible that the game uses lower level intercepts and does not listen to the usual mouse/keyboard events that Windows responds to.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

fightcancer
Macro Veteran
Posts: 260
Joined: Fri Apr 15, 2005 8:32 am

Post by fightcancer » Sat Oct 27, 2007 10:20 pm

Thank you for the fast response! :)

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