JameZ Posted July 30, 2013 Posted July 30, 2013 Hello, I'm new to auto-it, and don't have any real script writing ability. I was looking at the FAQ and online for a simple double click script to loop and run in a program window. My computer runs vista and the ones I've come across haven't been working even when i run the script as admin. If anyone can help me out i would appreciate, about to rip my hair out at my own stupidity.
JohnOne Posted July 30, 2013 Posted July 30, 2013 (edited) Write out a reproducer that you think does not work. 99 times out of ten, you will see the problem, and learn something. EDIT: and post it I meant. Edited July 30, 2013 by JohnOne 0xdefea7 1 AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
Moderators Melba23 Posted July 30, 2013 Moderators Posted July 30, 2013 JameZ,Welcome to the AutoIt forum. If you post your code please use Code tags - see here how to do it. 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
Moderators JLogan3o13 Posted July 30, 2013 Moderators Posted July 30, 2013 Also, you may want to request your first thread on this subject, in the Examples forum, be merged with this one. As to your request, howzabout you provide us a tad bit more info, like: What program you're trying to manipulate When you say a "double click" script, what is the action you're trying to reproduce? "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!
JameZ Posted July 30, 2013 Author Posted July 30, 2013 While 1 MouseClick( "left" ) MouseClick( "left" ) WEnd It works a little, but doesnt register when i tab to the window the program i need it for is running in
Moderators JLogan3o13 Posted July 30, 2013 Moderators Posted July 30, 2013 (edited) It works a little, but doesnt register when i tab to the window the program i need it for is running in That's great, but without knowing the application, how can we help you tab to it? Edit: Have you tried using the AutoIt Window Info Tool (located in the same directory in which you installed AutoIt). That should give you more information about the window, which should let you use functions such as ControlSend and ControlClick, not so messy as mouse functions. Edited July 30, 2013 by JLogan3o13 "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!
JameZ Posted July 30, 2013 Author Posted July 30, 2013 the application name is swgclient, i literally have to double click something a billion times.
Moderators Melba23 Posted July 30, 2013 Moderators Posted July 30, 2013 JameZ,Now would this be anything to do with "Star Wars Galaxies"? If so then you appear to have missed the Forum rules on your way in. Please read them now (there is also a link at bottom right of each page) - particularly the bit about not discussing game automation. 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
JameZ Posted July 30, 2013 Author Posted July 30, 2013 if i was to to say, no its something completely different would you believe me?
Moderators Melba23 Posted July 30, 2013 Moderators Posted July 30, 2013 JameZ,Alas, no. And the reason your script is not working is probably because the game is protecting itself against game-bots - so we could not help you anyway. But why not try using AutoIt for things other than game-bots? Look around the forum - there are plenty of ideas to spark your imagination. 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