Script not working when using SetFocus on a game.

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
girdar
Newbie
Posts: 1
Joined: Wed Oct 28, 2009 11:48 am

Script not working when using SetFocus on a game.

Post by girdar » Wed Oct 28, 2009 12:00 pm

The script works like it should when the game is not focused, but as soon I focus on it, the mouse won't move or click.

Tried to play around with F8, but did not get any results. Script seems to run fine.

Info about game.

Flyff
Uses Direct X 9.0 or higher.
Has a very very anti-social gameguard.

OS: Windows XP Home edition Service pack 3.
Something worth noting is that the cursor changes to a artisticly made one when holding the cursor over the game screen. Actual click position is the same tough.

What can I do?
I tried both relative and non relative mouse positions too. Did not help.
The only thing I haven't tried is the color thing, but I don't understand it.
It's like the program looses it's simulating control over the mouse and keyboard when the game is focused on.
(Note the task I'm trying to perform can't be done with the keyboard. Well only one part of the task can be done by keyboard).

Any help is appreciated

(I made use of WaitWindowOpen too, did not help.)

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Wed Oct 28, 2009 1:33 pm

Show us the section of the script you are using wo set focus and make mouse/keyboard entries. What is the name and version of the program?
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

idiot
Macro Veteran
Posts: 152
Joined: Thu Mar 01, 2007 9:21 am

Post by idiot » Wed Nov 04, 2009 10:14 am

lol lucky timing for you i just heard about flyff and just started playing it im about to make some macroes for it honestly not sure why your using java for it but if you show me what you got ill patch it up for you also do you have flyff set to run in windows mode because set focus does not always work right when using full screen wich is why we made a patch fro maple story back in the day to force window mode also if making script for game good idea to have tons of randoms in it so less detectable also use mouse move real and make good use of macro schedulers image recogniton games is my cup of tea making macroes for games is what i do best
if idiots rule the world then im the king!!!!
i want a free t-shirt give me all of your rep!!!
please give me pro version of macro scheduler and appnavigator!!!

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

Post by Marcus Tettmar » Wed Nov 04, 2009 1:30 pm

Wow - I feel out of breath - has your full stop key broken?

Anyway - yes, when a game is run in "full screen mode" it often means it is running exclusively, so not allowing other processes to run. Hence you can't automate it. Also SetFocus can only focus a window. In full screen mode there are no windows. Windows exist in Windowed Mode. There's a clue in the name there.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

idiot
Macro Veteran
Posts: 152
Joined: Thu Mar 01, 2007 9:21 am

Post by idiot » Sat Nov 07, 2009 6:02 pm

i figured out what your problem is you need to downgrade nprotect gamegaurd to long a process to explain here just google it thats what i did
google how to downgrade nprotect gamegaurd in flyff theres lots of tutorials
good luck bro
if idiots rule the world then im the king!!!!
i want a free t-shirt give me all of your rep!!!
please give me pro version of macro scheduler and appnavigator!!!

radzil
Newbie
Posts: 1
Joined: Thu Nov 26, 2009 11:31 am

Post by radzil » Thu Nov 26, 2009 11:38 am

I have similar problem so I will write here. This simple script :
label>start
mousemove>112,388
wait>1
RClick
mousemove>433,248
wait>0.05
RClick
wait>1
Goto>start

doesnt work when im running Warhammer: online but it works on my friends computer. I can run this in a window.


English is not my first language so sorry for any grammar errors.

idiot
Macro Veteran
Posts: 152
Joined: Thu Mar 01, 2007 9:21 am

Post by idiot » Fri Nov 27, 2009 2:31 am

radzil my boy
you scriot has a few problems for using with WoW
first rclick dosent always work for it
and you never setfocus to window for wow and you can only setfocus if you play in windows mode not full screen i no longer have wow so i dont know what window name is fo rgame but i will guess to give you an idea of how to do it this isnt exatly same thing as here should have posted in beginers forums i would move it but im not a moderator

setfocus>WorldOfWarcraft
label>start
mousemove>112,388
wait>1
RClick //replace this with rdown wait>.23 rup
mousemove>433,248
wait>0.05 //here to fast a movement for click needs longer pause like in frist click//
RClick //replace this with rdown wait>.23 rup
wait>1
Goto>start
endif
if idiots rule the world then im the king!!!!
i want a free t-shirt give me all of your rep!!!
please give me pro version of macro scheduler and appnavigator!!!

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