<https://www.autoitscript.com/forum/topic/153334-working-with-combobox/>
<http://schema.org/text>
"I'm not able to get this to work: I'm getting error stating \"ImageSearch() called with wrong number of args\". On Line: \n\n$result = _Imagesearcharea(\"cpu.bmp\",1,0,0,@DesktopWidth,@DesktopHeight,$x1,$y1,100)\n\nWhen I tried that code alone; it works fine. Just not with the combobox. \n\nHotKeySet(\"{ESC}\", \"Quit\")\n\n#include &lt;ComboConstants.au3&gt;\n#include &lt;GUIConstantsEx.au3&gt;\n#include &lt;StaticConstants.au3&gt;\n#include &lt;WindowsConstants.au3&gt;\n#Include &lt;ImageSearch.au3&gt;\n\n$Form1 = GUICreate(\"Example Program\", 315, 149, 192, 114)\n$combo_Selection = GUICtrlCreateCombo(\"\", 24, 24, 241, 25)\nGUICtrlSetOnEvent(-1, \"Combo\")\n$label_RelatedInfo = GUICtrlCreateLabel(\"label_RelatedInfo\", 24, 64, 87, 17)\nGUISetState(@SW_SHOW)\n\nOpt(\"GUIOnEventMode\", 1)\nGUISetOnEvent($GUI_EVENT_CLOSE, \"Terminate\")\nGUICtrlSetData($combo_Selection, \"CPUSlot|MemorySlot|CMOSBattery\",\"\")\n \n$x1 = 0\n$y1 = 0\n\nWhile 1\n Sleep(1000)\nWEnd\n\nFunc Combo()\n    Call(GUICtrlRead($combo_Selection))\nEndFunc\n\nFunc CPUSlot()\n$result = _Imagesearcharea(\"cpu.bmp\",1,0,0,@DesktopWidth,@DesktopHeight,$x1,$y1,100)\n\nif $result=1 Then\n    Mousemove($x1,$y1,1)\n    sleep(1000)\nEndIf\nEndFunc\n \n"
<https://www.autoitscript.com/forum/topic/153334-working-with-combobox/?tab=comments#comment-1103650>