Jump to content

Search automatic with a .bat

Go to solution Solved by MecCz,

Got it!

 

Here is the code:

MouseClick ("left", 330, 162)Send ("Test1")Sleep (6000)Send("{HOME}+{END}")Send ("Test2")Sleep (6000)Send("{HOME}+{END}")Send ("Test3")Sleep (6000)Send("{HOME}+{END}")Send ("Test4")Sleep (6000)Send("{HOME}+{END}")Send ("Test5")Sleep (6000)Exit

i wrote it with autoit.... fairly simple

Hi folks,

 

i have a little problem.

 

There is a searchbar in a programm, i try to write my own script (.bat) which automatic writes a list of defined searchterms at the position of the cursor in this column and waits a defined couple of seconds then deletes the term and writes the next one... (repeat) 

 

Can someone give me a hind how i start this, i am very new to this.

 

Link to comment
https://linustechtips.com/topic/492743-search-automatic-with-a-bat/
Share on other sites

Link to post
Share on other sites

hi

im not a very experience batch scripter but http://ss64.com/nt/ this might help

you see this? this is my signature. btw im Norwegian 

Spoiler


CPU - Intel I7-5820K, Motherboard - ASUS X99-A, RAM - Crucial DDR4 Ballistix Sport 16GB, GPU - MSI Geforce GTX 970, Case - Cooler Master HAF XB evo, Storage - Intel SSD 330 Series 120GB - OS, WD Desktop Blue 500GB - storage 1, Seagate Barracuda 2TB - storage 2, PSU - Corsair RM850x (overkill i know), Display(s)- AOC 24" g2460Pg, Cooling - Cooler Master Hyper 212 Evo, 2 Noctua 120mm PWM, 1 Corsair 120mm AF RED LED, Keyboard - SpeedLink VIRTUIS Advanced, Mouse - razer deathadder chroma, Sound - Logitech Z313, SteelSeries Siberia V2 HyperX Edition, OS - Windows 10 (prefer windows 7)

 

Link to post
Share on other sites

hi

im not a very experience batch scripter but http://ss64.com/nt/ this might help

 

thanks, but i already have such a list. 

 

i think the most help i need is how i teach the script to write at the position of the searchbar at this specific program. Can't figure out wich command or string i need to define this :/

Link to post
Share on other sites

You could probably do this easier with a Macro program. I used one back in the day to automate crafting in Star Wars Galaxies. It was very straight forward. I asked the program to record what I was doing, so I would move my mouse, click craft, then delete the item. Once it recorded those actions I just set it to repeat. I can't remember the program and I'm sure there are a lot to choose from and I'm sure they've all improved a great deal.

Link to post
Share on other sites

Got it!

 

Here is the code:

MouseClick ("left", 330, 162)Send ("Test1")Sleep (6000)Send("{HOME}+{END}")Send ("Test2")Sleep (6000)Send("{HOME}+{END}")Send ("Test3")Sleep (6000)Send("{HOME}+{END}")Send ("Test4")Sleep (6000)Send("{HOME}+{END}")Send ("Test5")Sleep (6000)Exit

i wrote it with autoit.... fairly simple

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×