Jump to content
Sign in to follow this  
Malombrado

Macro Improvement

Recommended Posts

Malombrado

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

Share this post


Link to post
Share on other sites
FireFox

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

 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites
Malombrado

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

Share this post


Link to post
Share on other sites
FireFox

huh... please read the rules, the link is at the right bottom of each page.

Br, FireFox.


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites
Melba23

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


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______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

 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×