NizonRox Posted November 14, 2013 Posted November 14, 2013 So, im having alittle fun with autoit making it more and more complicated then i fell over a error that i cant seem to fix all by my self MouseClick ( "LEFT", 984, 206, 1, 1) Sleep(500) Local $shiny = WinGetText("[CLASS:Chrome]", "Shiny") Local $dark = WinGetText("[CLASS:Chrome]", "Dark") Local $mystic = WinGetText("[CLASS:Chrome]", "Mystic") Local $ancient = WinGetText("[CLASS:Chrome]", "Ancient") if $shiny > Shiny Then Exit 0 EndIf if $dark > Dark Then Exit 0 EndIf If $mystic > Mystic Then Exit 0 EndIf If $ancient > Ancient Then Exit 0 EndIf
NizonRox Posted November 14, 2013 Author Posted November 14, 2013 I Found out my self but ive run into another error. When it doesent find Shiny or Dark or Mystic or Ancient then it stops and tells me If $Shiny > Shiny then If $Shiny > ^ERROR Error: Error Parsing Function Call.
LordBoling Posted November 14, 2013 Posted November 14, 2013 NizonRox, If you are trying to compare text with your IF functions, then the text needs to be within quotes: MouseClick ( "LEFT", 984, 206, 1, 1) Sleep(500) Local $shiny = WinGetText("[CLASS:Chrome]", "Shiny") Local $dark = WinGetText("[CLASS:Chrome]", "Dark") Local $mystic = WinGetText("[CLASS:Chrome]", "Mystic") Local $ancient = WinGetText("[CLASS:Chrome]", "Ancient") if $shiny > "Shiny" Then Exit 0 EndIf if $dark > "Dark" Then Exit 0 EndIf If $mystic > "Mystic" Then Exit 0 EndIf If $ancient > "Ancient" Then Exit 0 EndIf That will get rid of the error, though since I don't know what you are trying to do with it, I don't know if it will function as you want it to.
Moderators Melba23 Posted November 15, 2013 Moderators Posted November 15, 2013 NizonRox,Go and read those Forum rules (there is also a link at bottom right of each page) - twice is quite enough. 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
Recommended Posts