Jump to content

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


Recommended Posts

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
Link to comment
Share on other sites

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"

Link to comment
Share on other sites

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"

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...