motho 0 Posted January 15, 2014 Report Share Posted January 15, 2014 Hi again I have a search box that i want ubot to fill in, to use it you need to click in the box, enter search such as 126000 then hit "enter" on the keyboard, there is no "search" or "go" button on the page for ubot to click. The code I am trying includes a windows command, as I couldn't see a browser command to hit enter is : click(<id="search">, "Left Click", "No")type text(<id="search">, #sku, "Standard")plugin command("WindowsCommands.dll", "keyboard event", "Enter", "Key Press") Quote Link to post Share on other sites
UBotDev 276 Posted January 15, 2014 Report Share Posted January 15, 2014 I think you might only need this code (notice new line character): type text(<id="search">, "{#sku} ", "Standard") Quote Link to post Share on other sites
a2mateit 395 Posted January 15, 2014 Report Share Posted January 15, 2014 Try the keyboard event command and use "enter" and "key press". Quote Link to post Share on other sites
blumi40 222 Posted January 15, 2014 Report Share Posted January 15, 2014 type text(<id="search">, #sku {ENTER}, "Standard") Quote Link to post Share on other sites
motho 0 Posted January 15, 2014 Author Report Share Posted January 15, 2014 thanks guys! got it working, the following code, on 2 lines works type text(<id="search">, "{#sku}", "Standard") type text(<id="search">, #sku {ENTER}, "Standard") gives error message saying there is a problem with the code Quote Link to post Share on other sites
blumi40 222 Posted January 15, 2014 Report Share Posted January 15, 2014 type text(<id="search">, "{#sku} \{ENTER\}", "Standard")should work 1 Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.