caramen Posted April 21, 2006 Share Posted April 21, 2006 hi all i got this code : expandcollapse popupOpt("MouseCoordMode", 2) Deley () Solo () Team () Stage () While (1) Outingame () WEnd Func Deley () Sleep(10000) EndFunc Func Solo () ;uncoched 1 MouseMove(352, 496) Sleep(100) MouseDown("left") Sleep(50) MouseUp("left") Sleep(100) EndFunc Func Team () ;uncoched 2 MouseMove(419, 495) Sleep(100) MouseDown("left") Sleep(50) MouseUp("left") Sleep(100) EndFunc Func Stage () ;uncoched 3 MouseMove(492, 493) Sleep(100) MouseDown("left") Sleep(50) MouseUp("left") Sleep(100) EndFunc Func Outingame () ;enter in room MouseClick("left") Sleep(50) MouseClick("left") Sleep(50) MouseClick("left") Sleep(50) Send("{END}") MouseMove(844, 662) Sleep(100) MouseDown("left") Sleep(1500) MouseUp("left") Sleep(1000) MouseMove(50, 50) EndFunc and i got a problem the code dont work but i ave see that : it is coze i lose focus ( or something like that ) on the windows but i see the windows ~~ like if i got the focus but i dont got it !! dunno why it is hard to explain coze i got very bad english but i say it here stap after stap -i lunch my script (with 15 sec pause for w8 get window) -i lunch my game -script work great for the first stap -after one click i got an other screen -now my script is working but i need to click on the screen manualy for my script continu( i think it is protection of the game) some one now why (( ? My video tutorials : ( In construction ) || My Discord : https://discord.gg/S9AnwHw How to Ask Help || UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote Spoiler Water's UDFs:Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki Link to comment Share on other sites More sharing options...
PsaltyDS Posted April 22, 2006 Share Posted April 22, 2006 hi all i got this code :CODEOpt("MouseCoordMode", 2) Deley ()Solo ()Team ()Stage ()While (1) Outingame ()WEndFunc Deley ()Sleep(10000)EndFuncFunc Solo ();uncoched 1MouseMove(352, 496)Sleep(100)MouseDown("left")Sleep(50)MouseUp("left") Sleep(100)EndFuncFunc Team ();uncoched 2MouseMove(419, 495)Sleep(100)MouseDown("left")Sleep(50)MouseUp("left") Sleep(100)EndFuncFunc Stage ();uncoched 3MouseMove(492, 493)Sleep(100)MouseDown("left")Sleep(50)MouseUp("left") Sleep(100)EndFuncFunc Outingame ();enter in roomMouseClick("left")Sleep(50)MouseClick("left")Sleep(50)MouseClick("left")Sleep(50)Send("{END}")MouseMove(844, 662)Sleep(100)MouseDown("left")Sleep(1500)MouseUp("left") Sleep(1000)MouseMove(50, 50)EndFunc and i got a problem the code dont work but i ave see that :it is coze i lose focus ( or something like that ) on the windows but i see the windows ~~ like if i got the focus but i dont got it !!dunno whyit is hard to explain coze i got very bad english but i say it here stap after stap -i lunch my script (with 15 sec pause for w8 get window)-i lunch my game-script work great for the first stap-after one click i got an other screen -now my script is working but i need to click on the screen manualy for my script continu( i think it is protection of the game)some one now why (( ?What I don't see in your script is any use of WinActivate() or WinWaitActive(). Those fuctions would return the focus to the window you want, or wait until it was restored. Have you checked out WinActivate in the help file? Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
caramen Posted April 22, 2006 Author Share Posted April 22, 2006 First tyfor helping Yes man i ave try WinActivate("", "") WinMove("Untitled -", "", 0, 0, 200, 200) WinSetOnTop("Untitled -", "", 1) Nothing work after one change screen foir explain better i got : ****SCREEN 1***** func 1 to 4 (->working great ****GO TO SREEN 2**** func 5 no work (-> if i click manualy it work My video tutorials : ( In construction ) || My Discord : https://discord.gg/S9AnwHw How to Ask Help || UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote Spoiler Water's UDFs:Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted April 22, 2006 Share Posted April 22, 2006 ummm are you trying to move notepad? and u arent defining a window to be set as active Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted April 22, 2006 Moderators Share Posted April 22, 2006 Try this at the top of your script:Opt('WinTitleMatchMode', 2) Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
caramen Posted April 22, 2006 Author Share Posted April 22, 2006 Opt('WinTitleMatchMode', 2) this make the game crash and no work again My video tutorials : ( In construction ) || My Discord : https://discord.gg/S9AnwHw How to Ask Help || UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote Spoiler Water's UDFs:Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki Link to comment Share on other sites More sharing options...
caramen Posted April 22, 2006 Author Share Posted April 22, 2006 ummm are you trying to move notepad? and u arent defining a window to be set as activeno man i ave only try move command to take back focus on my game windows but no work i think the game ave protection "antibot" i just whant take back focus but alll thing i try no work lol ty for helping all !!! my first hard problem My video tutorials : ( In construction ) || My Discord : https://discord.gg/S9AnwHw How to Ask Help || UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote Spoiler Water's UDFs:Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted April 22, 2006 Share Posted April 22, 2006 what game r u playng? Link to comment Share on other sites More sharing options...
caramen Posted April 22, 2006 Author Share Posted April 22, 2006 it s rakion game it is free game u can download it for try www.rakion.net My video tutorials : ( In construction ) || My Discord : https://discord.gg/S9AnwHw How to Ask Help || UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote Spoiler Water's UDFs:Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted April 22, 2006 Moderators Share Posted April 22, 2006 no man i ave only try move command to take back focus on my game windows but no work i think the game ave protection "antibot" i just whant take back focus but alll thing i try no work lol ty for helping all !!! my first hard problem When you want to take back focus.... you have WinSetOnTop("Untitled -", "", 1) .... when your ready to take back focus use WinSetOnTop("Untitled -", "", 0) then do something somewhere. The '0' releases the window from always having the On Top position. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
caramen Posted April 22, 2006 Author Share Posted April 22, 2006 well i ave try all and nothing work ..........i realy loose focus on the windows but windows dont move ... i ll make screen shoot to be easyer to sayOk here 3 step of my script all red point is 1 fonctionAt beginingafter 4 stepHere script no work woze i loose focus but i dont loose windowsmaybe you will anderstand better :/ ... My video tutorials : ( In construction ) || My Discord : https://discord.gg/S9AnwHw How to Ask Help || UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote Spoiler Water's UDFs:Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted April 22, 2006 Share Posted April 22, 2006 HAHAHAHAH r u trying to move windows in the game? Link to comment Share on other sites More sharing options...
caramen Posted April 22, 2006 Author Share Posted April 22, 2006 (edited) i know i look like a noob and my english is very sad but hahahah no !!!!! i only whant keep my focus and my script continu to work zzzzzzzzzzz but afgter stape 5 my script stop work Edited April 22, 2006 by caramen My video tutorials : ( In construction ) || My Discord : https://discord.gg/S9AnwHw How to Ask Help || UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote Spoiler Water's UDFs:Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now