Metadeth Posted Sunday at 02:39 PM Posted Sunday at 02:39 PM So long story short, I'm trying to make a script for an infinite loop consisting of 2 button presses (F1 then spacebar about 2-3 seconds after) every 5 or so minutes (for game XP farming). I tried the below script and I'm having a bit of trouble. Sometimes it wouldn't run and would require 3-4 resets, sometimes it'd only loop a few times. Quote While 1 Sleep(320000) Send("{F1 1})") Sleep(2000) Send("{SPACE 1})") WEnd What am I doing wrong?
AutoBert Posted Sunday at 02:56 PM Posted Sunday at 02:56 PM 11 minutes ago, Metadeth said: What am I doing wrong? You didn't activate a window, so i think the loop is running and the send get's lost.
Metadeth Posted Sunday at 03:03 PM Author Posted Sunday at 03:03 PM 5 minutes ago, AutoBert said: You didn't activate a window, so i think the loop is running and the send get's lost. What'd you mean activate a window? I thought it just runs in the tray to the bottom right when the script is run? Or does it have anything to do with games being fullscreen and it getting separated from that? Now there's another variation where the F1 is sent but the Space is not. Hell, I didn't need this
Nine Posted Sunday at 03:06 PM Posted Sunday at 03:06 PM Please read forum rules, especially the part about game automation AutoBert 1 “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy
Metadeth Posted Sunday at 03:07 PM Author Posted Sunday at 03:07 PM Ok then, guess I'll figure it out myself
Moderators Melba23 Posted Sunday at 03:16 PM Moderators Posted Sunday at 03:16 PM Welcome to the AutoIt forum. Unfortunately you appear to have missed the Forum rules on your way in. Please read them now - particularly the bit about not discussing game automation - and then you will understand why you will get no help and this thread will now be locked. See you soon with a legitimate question I hope. The Moderation team 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
Recommended Posts