Jump to content
----

Problem with variables

Recommended Posts

----

Getting an error that variables are not defined but I don't want the input box to reload every time it loops

Not sure how to fix this

 

HotKeySet ("^!x", "_Exit")


Start2()

Func Start2()
    Local $sXX = InputBox("What is your screen resolution?", "Enter X Coordinates", "1920")
    Local $sYY = InputBox("What is your screen resolution?", "Enter Y Coordinates", "1080")
    Local $sZZ = InputBox("Which monitor do you play on?", "eg. 1,2,3...", "1")

      $sX = Number ((($sZZ -1) * $sXX) + $sXX * 0.77604166666666666666666666666667)
      $sX2 = Number ((($sZZ -1) * $sXX) + $sXX * 0.79739583333333333333333333333333)
      $sY = Number ($sYY * 0.80277777777777777777777777777778)
      $sY2 = Number ($sXX * 0.87222222222222222222222222222222)
EndFunc


Start1()

Func Start1()
   While 1
      $pxs = PixelSearch($sX, $sY,$sX2, $sY2,0xfccba3, 2)
      If isArray($pxs) then
         MouseMove($pxs[0],$pxs[1], 0)
         MouseClick("Left")
         MouseClick ("Left" ,960, 1016)
         Sleep (35000)
      EndIf
   WEnd
EndFunc

Func _Exit()
   Exit
   EndFunc

 

Share this post


Link to post
Share on other sites
spudw2k

@----  It appears you are scripting a game bot which is against the Forum rules. Please read them now, particularly the bit about not discussing game automation and rule #7.

Share this post


Link to post
Share on other sites
Melba23

----,

Quote

It appears you are scripting a game bot

Any comments?

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

 

Share this post


Link to post
Share on other sites
----

Didn't see my script as a bot because it is made only to select a character very quickly in the game...

but I guess it would be considered against the rules

 

Share this post


Link to post
Share on other sites
Melba23

----,

Thank you for your honesty - and this will come as no surprise. Thread locked.

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

 

Share this post


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

×