---- Posted March 2, 2018 Share Posted March 2, 2018 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 Link to comment Share on other sites More sharing options...
spudw2k Posted March 2, 2018 Share Posted March 2, 2018 @---- 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. Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX BuilderMisc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retreive SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose ArrayProjects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalcCool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted March 2, 2018 Moderators Share Posted March 2, 2018 ----, Quote It appears you are scripting a game bot Any comments? M23 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 columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
---- Posted March 2, 2018 Author Share Posted March 2, 2018 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 Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted March 2, 2018 Moderators Share Posted March 2, 2018 ----, Thank you for your honesty - and this will come as no surprise. Thread locked. M23 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 columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Recommended Posts