boat_58 Posted November 29, 2018 Posted November 29, 2018 Hello, i am trying to create a script that will click my mouse spot and hold for a few seconds so that the item can be selected, then it will drag the item to a location i specify. I am very new at this and i am having a hard time. This is what i have so far but its not holding or dragging the item, its just dragging the screen. I just want it to click a spot, then drag that item to a new spot. The spot clicked has to be held there for a few seconds before beginning the drag so that it can drag the item. WinActivate("Test!") Opt("MouseClickDragDelay", 250) ;250 millisecond For $n = 1 to 5 ; Arena Menu MouseClickDrag("left", 712, 389, 1118, 152, 20) Next
Moderators JLogan3o13 Posted November 29, 2018 Moderators Posted November 29, 2018 @boat_58 what, precisely, are you trying to automate? ================In case you missed it, this is a Moderator stepping into a thread================ "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
boat_58 Posted November 30, 2018 Author Posted November 30, 2018 I am trying to create an action that will drag a character icon from the list of characters into an active spot so that it will switch characters. Somehow, the drag is not dragging the character, its just clicking and moving the character wheel without selecting the character.
itlabo Posted November 30, 2018 Posted November 30, 2018 (edited) I think you only set a delay in the second line and no drag. Try this instead of your code: <snip> Maybe it will work if you set a delay afterwards. Edited November 30, 2018 by Melba23 Code removed - was not the answer anyway!
Moderators Melba23 Posted November 30, 2018 Moderators Posted November 30, 2018 boat_58, 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. itlabo, Please read this announcement before you post again. It is only your newness here that has saved you from a major sanction - that is your freebie used up, so be careful from now on. 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
Recommended Posts