Jump to content
Sign in to follow this  
zutto

need help at sending key's to window whats not active

Recommended Posts

zutto

yeah i want to edit this script so i can do anything else on windows while this is running if even possible O,o

#region --- ScriptWriter generated code Start --- 
HotKeySet("{F7}", "_Start")
HotKeySet("{F6}", "_Quit")
;
Opt("WinWaitDelay",100)
Opt("WinTitleMatchMode",4)
Opt("WinDetectHiddenText",1)
Opt("MouseCoordMode",0)

While 1
Sleep(5000)
WEnd

Func _Start()
While 1
WinWait("Diablo II c1","")
If Not WinActive("Diablo II c1","") Then WinActivate("Diablo II c1","")
WinWaitActive("Diablo II c1","")
MouseMove(446,355)
MouseDown("left")
MouseUp("left")
TrayTip("repeat.", 1, 2)
sleep("140")
MouseMove(363,379)
MouseDown("left")
MouseUp("left")
sleep("140")
MouseMove(333,482)
MouseDown("left")
MouseUp("left")
sleep("140")
WinWait("Diablo II c2","")
If Not WinActive("Diablo II c2","") Then WinActivate("Diablo II c2","")
WinWaitActive("Diablo II c2","")
MouseMove(319,482)
MouseDown("left")
MouseUp("left")
sleep("140")
WinWait("Diablo II c1","")
If Not WinActive("Diablo II c1","") Then WinActivate("Diablo II c1","")
WinWaitActive("Diablo II c1","")
MouseMove(403,353)
MouseDown("left")
MouseUp("left")
sleep("140")
WEnd
;
Exit
EndFunc

Func _Quit()
Exit
EndFunc
#endregion --- ScriptWriter generated code End ---

EDIT: and/or how/is it possible to read X to Y area what there is written and show it as example traytip?

Edited by zutto

Share this post


Link to post
Share on other sites
TnTProductions

you may have to look at the help file for support but i dont think there really is a way when you minimize your diablo II game for the mouseclicks to stop woriking...

unless you do an if statment ex:

hotkey({watever minimize is},"terminate")
func terminate()
endfunc

but, i think that terminates entire script.... i dont think its possible sorry i cant help much jst look into helpfile it tells you everything in autoit


"FREEDOM is not FREE""Its a good thing war is so terrible, or we grow too fond of it" -Robert E. Lee[quote]Firestrom: global $warming = False[/quote]My scripts:Desktop Cleaner---->Total Downloads:167;;;;;;;;;;1;;;;;;1;;;;;;;;;;;;;11;;;;;;;;;;;;;;;;1;;;;;;1;;;;;;;;;;;;;11;;;;;;;;;;;;;;;;1;;;;;;1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;111111;;;;;;;;;;;;;;11;;;;;;;;;;;;;;;;1;;;;;;1;;;;;;;;;;;;;;11;;;;;;;;;;;;;;;;1;;;;;;1;;;;;;;;;;;;;;11;;;;;;"a wise man once said why use your skills when we have technology"

Share this post


Link to post
Share on other sites
Muchuchu

Look up the control functions in the help file.

ie. Control Send; Control Click

Share this post


Link to post
Share on other sites
TnTProductions

Look up the control functions in the help file.

ie. Control Send; Control Click

i already said that..... :)

"FREEDOM is not FREE""Its a good thing war is so terrible, or we grow too fond of it" -Robert E. Lee[quote]Firestrom: global $warming = False[/quote]My scripts:Desktop Cleaner---->Total Downloads:167;;;;;;;;;;1;;;;;;1;;;;;;;;;;;;;11;;;;;;;;;;;;;;;;1;;;;;;1;;;;;;;;;;;;;11;;;;;;;;;;;;;;;;1;;;;;;1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;111111;;;;;;;;;;;;;;11;;;;;;;;;;;;;;;;1;;;;;;1;;;;;;;;;;;;;;11;;;;;;;;;;;;;;;;1;;;;;;1;;;;;;;;;;;;;;11;;;;;;"a wise man once said why use your skills when we have technology"

Share this post


Link to post
Share on other sites
Hok

Yes, the control functions would work, but unless you created the game, it will be hard to figure out the Control ID.

Share this post


Link to post
Share on other sites
Muchuchu

i already said that..... :)

You said nothing about control functions.

Share this post


Link to post
Share on other sites
Hiyoal

Sorry Hok, but control Id's are very easy to find when using the AutoIt Info Window tool :)

Share this post


Link to post
Share on other sites
Hok

LOL. Hiyoal (Nice to see you here). Yeah, but I am AutoItWindowTool challenged. (I have problems using it...)

Share this post


Link to post
Share on other sites
Drew

Diablo blocks control clicks somehow.

Share this post


Link to post
Share on other sites
Hok

The question is, does it block ControlSend...?

Share this post


Link to post
Share on other sites
Drew

Shoulda been more specific.

It blocks control commands. I know automating diablo II minimized IS possible , but not with those commands.

Share this post


Link to post
Share on other sites
Hok

Would you enlighten us with the correct ones? :)

Share this post


Link to post
Share on other sites
zutto

Shoulda been more specific.

It blocks control commands. I know automating diablo II minimized IS possible , but not with those commands.

yes i noticed, how can i do it then..?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.