create scheduled bat
- Lamkefyned
- Posts: 348
- Joined: Thu May 23, 2013 11:38 am
- Location: Spain
create scheduled bat
how to create a scheduled bat for an hour to open a clients, put the number startbot and Begin?
If you think something is right just because everyone else believes,you're not thinking.
Re: create scheduled bat
Well if you want it to automatically log in then you are probably looking for my 'login' userfunction. Once you have it properly installed and set up you can just create a bat file similar to the existing bat files but with the extra arguments for auto logging in. This is what I use to test starting 3 clients at once,
If I understand you correctly, you want it to wait 1 hour before loading the clients. I didn't think there was a batch file command to do this but I found one. It's called 'timeout', It's available in Windows 7 but not XP unless you download the Resource Kit. So just add it to the top of the file.
Code: Select all
@echo off
FOR /F "tokens=1 delims=" %%A in ('cd') do SET folder=%%A
START ../../micromacro.exe "%folder%/login.lua" acc:45 char:1 client:rom path:rbassist
START ../../micromacro.exe "%folder%/login.lua" acc:46 char:1 client:rom path:rbassist
START ../../micromacro.exe "%folder%/login.lua" acc:47 char:1 client:rom path:rbassist
Code: Select all
timeout 3600
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
Re: create scheduled bat
Hey cool, so I could build a bat file like this and then tell task scheduler to run it at various times in the day? Man... that would be FUMAZING.
Also, I have a question on the syntax. Which parts of this code do I need to adjust to my locality/configurtion:
I assume the "../../micromacro.exe" would be updated to be the actual path so it would look more like this:
Right? Are there more things other than the acc/char/client/path that might change?
Also, I have a question on the syntax. Which parts of this code do I need to adjust to my locality/configurtion:
Code: Select all
@echo off
FOR /F "tokens=1 delims=" %%A in ('cd') do SET folder=%%A
START ../../micromacro.exe "%folder%/login.lua" acc:45 char:1 client:rom path:rbassist
START ../../micromacro.exe "%folder%/login.lua" acc:46 char:1 client:rom path:rbassist
START ../../micromacro.exe "%folder%/login.lua" acc:47 char:1 client:rom path:rbassist
I assume the "../../micromacro.exe" would be updated to be the actual path so it would look more like this:
Code: Select all
@echo off
FOR /F "tokens=1 delims=" %%A in ('cd') do SET folder=%%A
START c:/folder/mm/micromacro.exe "%folder%/login.lua" acc:45 char:1 client:rom path:rbassist
START c:/folder/mm/micromacro.exe "%folder%/login.lua" acc:46 char:1 client:rom path:rbassist
START c:/folder/mm/micromacro.exe "%folder%/login.lua" acc:47 char:1 client:rom path:rbassist
Right? Are there more things other than the acc/char/client/path that might change?
- Lamkefyned
- Posts: 348
- Joined: Thu May 23, 2013 11:38 am
- Location: Spain
Re: create scheduled bat
jajajajajajaj as you know that I have xp?
If you think something is right just because everyone else believes,you're not thinking.
- Lamkefyned
- Posts: 348
- Joined: Thu May 23, 2013 11:38 am
- Location: Spain
Re: create scheduled bat
another thing ... the rbassist is the waypoint?
rock 5 and I have a file of yours. "LoginXML"
where downloaded your addon?
rock 5 and I have a file of yours. "LoginXML"
where downloaded your addon?
If you think something is right just because everyone else believes,you're not thinking.
- Lamkefyned
- Posts: 348
- Joined: Thu May 23, 2013 11:38 am
- Location: Spain
Re: create scheduled bat
I get an error
...romacro/scripts/rom/userfunctions_login.lua:63: Game Shortcut does not exist: rom.lnk
...romacro/scripts/rom/userfunctions_login.lua:63: Game Shortcut does not exist: rom.lnk
If you think something is right just because everyone else believes,you're not thinking.
Re: create scheduled bat
@grande.
@ambolia
- The bat file assumes it's in the "micromacro/scripts/rom" folder. If it is, then no changes would be needed to the folders. If it is located somewhere else, not only would you have to correct the micromacro folder but also the 'login.lua' folder. You can specify full path names such as you did with micromacro or you can adjust the relative path. For instance if the bat is in the micromacro/scripts folder you could use
Code: Select all
START ../micromacro.exe "%folder%/rom/login.lua" acc:45 char:1 client:rom path:rbassist
ambolia wrote:jajajajajajaj as you know that I have xp?
- It looks like 'ping' is commonly used for pauses. There are different ways of using it, this is one way.
Code: Select all
ping -n 3600 127.0.0.1 > NULL
ambolia wrote:another thing ... the rbassist is the waypoint?
- Yes. Change it to the waypoint file you want to load.
ambolia wrote:rock 5 and I have a file of yours. "LoginXML"
where downloaded your addon?
- Are you asking me where to get "LoginXML"? I actually call my version "fastLogin". Get it here http://www.solarstrike.net/phpBB3/viewt ... 350#p10350
ambolia wrote:I get an error
...romacro/scripts/rom/userfunctions_login.lua:63: Game Shortcut does not exist: rom.lnk
- As always, carefully follow the installation and setup instructions. You need to create a shortcut of your game client and put it in the 'rom' folder.
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
- Lamkefyned
- Posts: 348
- Joined: Thu May 23, 2013 11:38 am
- Location: Spain
Re: create scheduled bat
- I have the fastlogin
- I have the shortcut "client"
But still gives the same error
- I have the shortcut "client"
But still gives the same error
If you think something is right just because everyone else believes,you're not thinking.
Re: create scheduled bat
ambolia wrote:- I have the shortcut "client"
maybe rename the shortcut rom as in "rom.lnk" like the error message says ?Game Shortcut does not exist: rom.lnk
Remember no matter you do in life to always have a little fun while you are at it
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
- Lamkefyned
- Posts: 348
- Joined: Thu May 23, 2013 11:38 am
- Location: Spain
Re: create scheduled bat
Thanks for all the help but still gives me the same problem .....
no userfunccion could change in the customer's name?
no userfunccion could change in the customer's name?
If you think something is right just because everyone else believes,you're not thinking.
Re: create scheduled bat
If you don't have Explorer showing file extensions then if you name the shortcut 'rom.lnk' I think it will actually be named 'rom.lnk.lnk' with the last '.lnk' being hidden. So if Explorer is not set to show file extensions then you have to name the shortcut just 'rom'.
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
- Lamkefyned
- Posts: 348
- Joined: Thu May 23, 2013 11:38 am
- Location: Spain
Re: create scheduled bat
Thanks rock5 and lisa
If you think something is right just because everyone else believes,you're not thinking.
- Lamkefyned
- Posts: 348
- Joined: Thu May 23, 2013 11:38 am
- Location: Spain
Re: create scheduled bat
and there any way that when a critical close that tab and then reopen?
If you think something is right just because everyone else believes,you're not thinking.
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 10 guests