Jump to content

Creating Variables Hotkey


Frit
 Share

Recommended Posts

Hello. I want your help to finish a bot.

While 1
    If IsArray($1) and IsArray($2) Then
        Sleep (GUICtrlRead($time))
        MouseClick ( "right", $1[0], $1[1], 1, 1)
        Sleep (GUICtrlRead($time))
        MouseClick ( "left", $2[0], $2[1], 1, 1)
Endif
WEnd

As you can see, this bot do some clicks with a user-defined time between them.

What I want to do now is a hotkey to create variables (other variables) as many times the user wants with this same configuration.

script i used to define the arrays:

Func 1()
    $1 = MouseGetPos()
EndFunc

hotkeys:

HotKeySet( "{F1}", "1" )
HotKeySet( "{F2}", "2" )

the new hotkey i want

HotKeySet( "{F3}", "createvariables" )

In this function I want to do the "variables machine" stuff.

I hope somebody help me. Thanks.

If you don't understand something, please post.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...