Jump to content

Recommended Posts

Posted (edited)

Hi guys I'm fairly new to Auto-It I understand the basics like mouse-click sleep, winwaitactive() etc. and I'm attempting to move outward and start using hot-keys and functions but keep running into the same error.

Posted Image

here is the code

$Test = "{F1}"
HotKeySet($Test, "_Test")
Func "_Test" ($Test)
$A=0
Do
MouseClick("left",1119, 685, 2, 0)
$A=$A + 1
Until $A=1
$A=$A - 1
EndFunc

any help, tips and things I could do better will be gratefully appreciated thank you in advance. :D

Edited by Horus32596
Posted (edited)

$ERLevelOneKey = "{F1}"
HotKeySet($ERLevelOneKey, "_ERLevelOne")
Func _ERLevelOne()
$A=0
Do
MouseClick("left",1119, 685, 2, 0); //Double Click Emergency Repair.
$A=$A + 1
Until $A=1
$A=$A - 1
EndFunc ;==>"_ER Level One"

Edit: Seems you read the forum rules and edit the script and the message???

It is a game automatation which is not allowed here...

Edited by ileandros

I feel nothing.It feels great.

Posted (edited)

Hourus....,

There are several things wrong with your code. Is this what you are trying to do?

kylomas

edit: code deleted just in case you fuck up the code I posted so bad that you can't fix it...based on your original code, this is highly likely

Edited by kylomas

Forum Rules         Procedure for posting code

"I like pigs.  Dogs look up to us.  Cats look down on us.  Pigs treat us as equals."

- Sir Winston Churchill

Posted

I will not deny your accusation yes the script was for a game and my original post even said so and explained what it is for which is a script that was intended not to cheat the game but to help the players. Allow me to explain the game I am speaking of is UCGO (www.ucgoserver.com) and a large part of the game is PvP, and during this you can use things called emergency repairs which heal your mobile suit and because some people have trouble running the game(it uses a lot of CPU Power) if you mess up when clicking on your emergency repair it can end up in you losing your mobile suit, so I decided to write a script that made it easier for people to emergency repair. When I saw the User agreement I did not think that I would receive any help if it stated it was for a game even for helpful reasons so I attempted to hide that it was for a game and still get help from people who are very good at using autoit instead of going to a sketchy forum where I wouldn't get much help let alone help that was on the level of kylomas's I decided to try my luck here where I knew somebody would be able to help me. I apologize for my trickery and I am willing to suffer the repurcusions of my actions. Thank you for the help you did provide because it did teach me what I needed to know, I wish you the best and hope you have a wonderful day.

Posted

and my original post even said so

That i highly unlikely else I would not have helped you...

kylomas

Forum Rules         Procedure for posting code

"I like pigs.  Dogs look up to us.  Cats look down on us.  Pigs treat us as equals."

- Sir Winston Churchill

  • Moderators
Posted (edited)

Horus32596,

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:

M23

Edit: And we can see the original post (which read "This code is for a Game called UCGO") - so if I see you editing posts again to remove incriminating evidence I will not be a happy bear. Understood? :mad:

Edited by Melba23

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