Jump to content

Recommended Posts

Posted

Hello all,

im new on this so i'm trying make a simple macro but i dont know about gui and some functions yet.. if posible any1 can help me?

i did this and want to improve and make a GUI..

HotKeySet("^!x", "QuitLoop") ; when the program is running, hitting "ctrl+alt+x" will call the function called "Quit"

$counter = 0 ; declares a counter variable

Func QuitLoop() ;user defined func called 'QuitLoop'
    $counter = 1 ; if func QuitLoop is called, $counter will become 1
EndFunc   ;==>QuitLoop

While $counter = 0 ; loop goes while $counter is 0

MouseClick("left",1012,611,1)
Sleep(4000)
Send("2")
Sleep(4000)
Send("2")
Sleep(4000)
Send("2")
Sleep(4000)
Send("3")
Sleep(4000)
Send("2")
Sleep(4000)
Send("1")
Sleep(6000) ; code inside loop
WEnd

My main way is to make it with "Steps" that change some Key pressed like numbers. Ex: 1,2,3,4,... 9

so it start.. 

mouseclick on spot then start the selected steps...when the steps finish start again till loopcounter finish or if infinite.. till key pressed.

thx

1185086_690329624327647_1204990266_n.jpg

Posted (edited)

Hi,

Welcome to the autoit forum :)

What is this script for?

There are surely more reliable ways to automate what you are trying to do.

Br, FireFox.

Edited by FireFox
Posted

im trying to use it in a game, to repeat moviments but with the choice of steps and number pressed.

the script posted do the work but i want to make it better and easier to use

  • Moderators
Posted

Malombrado,

FireFox is quite right - please read the Forum rules (the link is also at bottom right of each page) - particularly the bit about not discussing game automation - before you post again. Thread locked. :naughty:

But welcome to the AutoIt forum - and see you soon with a legitimate question I hope. :)

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...