BrianVogelenzang Posted August 14, 2013 Share Posted August 14, 2013 Hi, Iam not a coder but i need a script that repeats a action endless Want i want is a script that press tab and after it press F1 and let that cycle with a small pause I got a script but it gives me a unable to purse error, no clue what that means. ;Make sure game stays centered Dim $Coord, $Click, $Target, $SearchResult HotKeySet(“{PAUSE}”,”Escape”) $Target = 0xC5C2C5 $Click = “Right” WinActivate(“LastChaos (Window 800×600)”) While 1 = 1 $SearchResult = PixelSearch(252,196,768,487,$Target,5,1) ; 5 = Variation | 2 = Step If @error Then Else MouseClick($Click, $SearchResult[0] 15, $SearchResult[1] 25, 7, 3) Send(“{F1}”) ; This is the skill to be used on the enemy. Sleep(10000) EndIf WEnd Func Escape() AdlibDisable() Exit 0 EndFunc Link to comment Share on other sites More sharing options...
bogQ Posted August 14, 2013 Share Posted August 14, 2013 (edited) BrianVogelenzang;Make sure game stays centeredPls read forum ruleshttp://www.autoitscript.com/forum/index.php?app=forums&module=extras§ion=boardrules Edited August 14, 2013 by bogQ TCP server and client - Learning about TCP servers and clients connectionAu3 oIrrlicht - Irrlicht projectAu3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related) There are those that believe that the perfect heist lies in the preparation.Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost. Link to comment Share on other sites More sharing options...
FireFox Posted August 14, 2013 Share Posted August 14, 2013 Hi, Welcome to the autoit forum Please read the forum rules (link at the right bottom corner of each page). Br, FireFox. Link to comment Share on other sites More sharing options...
BrianVogelenzang Posted August 14, 2013 Author Share Posted August 14, 2013 Oh god, i broke a rule. Seen more script here on this forum so i tought i was allowed Seems it will be a long night of thinking and google ! Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted August 14, 2013 Moderators Share Posted August 14, 2013 BrianVogelenzang,The others are quite right - please read the Forum rules (the link is also at bottom right of each page) - particularly the bit about not discussing game sutomation - before you post again. Thread locked. But welcome to the AutoIt forum - and see you soon with a legitimate question I hope. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Recommended Posts