minbare Posted March 9, 2009 Share Posted March 9, 2009 Let me begin by saying that I have no experiance with any script writeing what so ever. I have spent some hours the last 3 days trying to understand how autoIT works. I've read through the various tutorials on these forums and I think I have a resonable understanding of those. Moveing from those tutorials to writeing a fairly advanced (imo at least ) script however, has proven to be somewhat of a headache for me. I know what I want the script to do, however I am lost as to how to translate it to a script. Below is a short write-up of what I want to do. If anyone could point me to some advanced tutorials or can tell me what commands I should be looking at, it would be very much appreciated. Even existing similar scripts with some well writen descriptions would be of great help to me. Thanks This is what I want the script to do: The script should execute each time I click the right mouse button. It should do the following upon execution: - record the on screen co-ordinates where the right click was executed - left click the mouse to drag and drop and item from the original co-ordinates to a fixed co-ordinate in the lower left corner of the window - return the mouse pointer to the original co-ordinates prior to the right click - preferably the drag, drop and return should happen fast Link to comment Share on other sites More sharing options...
Bert Posted March 9, 2009 Share Posted March 9, 2009 Is this a bot for a game? The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
minbare Posted March 9, 2009 Author Share Posted March 9, 2009 (edited) No. It's to make my work easier. I'm looking through tons of digital pictures each week and only very few are usefull. The others are dumped into a 'junk' folder. Edited March 9, 2009 by minbare Link to comment Share on other sites More sharing options...
rmp459 Posted March 9, 2009 Share Posted March 9, 2009 could also be used to loot items in darkfall Link to comment Share on other sites More sharing options...
minbare Posted March 9, 2009 Author Share Posted March 9, 2009 I guess so, even though I don't know darkfall. I simply need something to make my arm not fall off at the end of the week. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted March 9, 2009 Moderators Share Posted March 9, 2009 minbare,Try this as a starter - look in the Help file for more details on each of the functions:- record the on screen co-ordinates where the right click was executed - IsPressed & GUIGetCursorInfo- left click the mouse to drag and drop and item from the original co-ordinates to a fixed co-ordinate in the lower left corner of the window - MouseClickDrag- return the mouse pointer to the original co-ordinates prior to the right click - MouseMove back to where you started- preferably the drag, drop and return should happen fast - Speed can be set in the codeIf you run into problems, come back and show what code you have produced and we can help you sort it out.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...
Bert Posted March 9, 2009 Share Posted March 9, 2009 You could also see if you can do keystroke commands to manage the pictures. CTRL+A will highlight all. After you get the ones you want, just do CTRL+A, then drag them ALL to the bin. The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted March 10, 2009 Share Posted March 10, 2009 I would do it like this, much easier. Opt("MouseClickDragDelay", 0) Global $nTargetWidth = 123, $nTargetHeight = 123 HotKeySet("!z", "mousedragging") While 1 Sleep(250) WEnd Func mousedragging() $aPos = MouseGetPos() MouseClickDrag("primary", $aPos[0], $aPos[1], $nTargetWidth, $nTargetHeight, 0) MouseMove($aPos[0], $aPos[1], 0) EndFunc .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface 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