Jump to content

Recommended Posts

Posted

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
Posted

@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!

Posted

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.

Posted (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 by Melba23
Code removed - was not the answer anyway!
  • Moderators
Posted

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

 

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Guest
This topic is now closed to further replies.
×
×
  • Create New...