Jump to content

Do A Bot That Starts When Cpu Boot...


Recommended Posts

yes... when my pc starts up i want the bot to run.

and i have another question i cant get the value that i write in my GUI

$input_1 = GUISetControl("input","", 10,10, 290,40)
$button_2 = GUISetControl("button", "Save", 180,150, 60,30)

Case $msg1 = $input_1
Case $msg = $button_2
  IniWrite( "Config.ini", "Config", "message", $msg1)
  IniWrite( "Config.ini", "Config", "nombre", $msg2)

if i type hello it wont write in the INI like i would like it ot do...

som1 got a solution?

Link to comment
Share on other sites

If you mean a script, put it in the startup folder, in the run or run once registry, etc etc.

Bot usually is short for Robot, or non player controlled(character) or computer assisted player. You could have autoit start up a game, and start up a Bot.

Please be a bit more specific in asking questions.

AutoIt is not the best choice for Bot gaming, but it is great for having the computer do all your work for ya. We discussed a messenger bot for instance to autoreply, and even do tasks when commanded via a msg.

Edited by scriptkitty

AutoIt3, the MACGYVER Pocket Knife for computers.

Link to comment
Share on other sites

try

$msg1 = GuiRead ($input_1)
$msg2 = GuiRead ($button_2)
 IniWrite( "Config.ini", "Config", "message", $msg1)
 IniWrite( "Config.ini", "Config", "nombre", $msg2)

case is used for select..case..endselect.

Manual shows many examples

AutoIt3, the MACGYVER Pocket Knife for computers.

Link to comment
Share on other sites

wouldn't it be cool if someone wrote a game that was designed for only being played by people's scripted bots? making the real contest who can write the best code?

"I'm not even supposed to be here today!" -Dante (Hicks)

Link to comment
Share on other sites

For my fisrt question yes i want it in the startup folder so it can start by himself after my computer is done booting. should i do a regwrite or move my script in th startup folder?

when i write this command

$msg1 = GuiRead ($Input_1)

it give me what is in the second brackets

$input_1 = GUISetControl("input","(here)", 10,10, 290,40)

so how can i get the additional information that i write in my gui input box! :D

Edited by speed_minixter
Link to comment
Share on other sites

Normally I would put it in the startup folder, it is easy, and it loads after windows loads up.

Registry Run loads first, and can cause a few issues if you have no delay on it.

Up to you. Also if you don't know what you are doing, reg editing can be dangerous.

So basically:

Novice=Startup folder

Intermediate=Registry

Advanced=RunAsService

of course knowing why and why not is 99% of the answer.

So, even the most advanced users use Startup folder when it is the best solution.

Edited by scriptkitty

AutoIt3, the MACGYVER Pocket Knife for computers.

Link to comment
Share on other sites

For those that would like some of the more advanced ability without needing to know as much, check out the Startup Control Panel (CPL) on the linked page. This is a GUI based way to add, remove, and deactivate programs that start on boot in 5 different registry locations. I use it all the time when I wish to start tasks on boot. It also lets me run some administrator related services without appearing in the user's "startup" folder (where even a novice user could find and delete it.)

[font="Optima"]"Standing in the rain, twisted and insane, we are holding onto nothing.Feeling every breath, holding no regrets, we're still looking out for something."[/font]Note: my projects are off-line until I can spend more time to make them compatable with syntax changes.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...