Sign in to follow this  
Followers 0
caramen

Script Help

7 posts in this topic

#1 ·  Posted (edited)

Hi all this is Caramen :(

i am realy beginner then i try modify some script ~~

i got a script and i whant this code do something but dunno how

i explain

i got in a setting ini file

A= xxxxxxx

B= xxxx

C=xx

i whant my script do :

whrite :"{enter} /w *xcaramenx A {enter}"

whrite :"{enter} /w *xcaramenx B {enter}"

whrite :"{enter} /w *xcaramenx C {enter}"

etc ...

:think: ty all :)

Edited by caramen

Share this post


Link to post
Share on other sites



Ok, let's say your INI file looks like this

[Messages]
a=message1
b=message2
c=message3

then use

$ini = "PATH TO INI FILE.INI"
Send("{ENTER}/w *xcameramenx " & IniRead($ini, "messages", "a", "NONE SPECIFIED") & "{ENTER}")
Send("{ENTER}/w *xcameramenx " & IniRead($ini, "messages", "b", "NONE SPECIFIED") & "{ENTER}")
Send("{ENTER}/w *xcameramenx " & IniRead($ini, "messages", "c", "NONE SPECIFIED") & "{ENTER}")

PS: it's write not whrite :think:

~cdkid


AutoIt Console written in C#. Write au3 code right at the console :D_FileWriteToLineWrite to a specific line in a file.My UDF Libraries: MySQL UDF Library version 1.6 MySQL Database UDF's for AutoItI have stopped updating the MySQL thread above, all future updates will be on my SVN. The svn location is:kan2.sytes.net/publicsvn/mysqlnote: This will still be available, but due to my new job, and school hours, am no longer developing this udf.My business: www.hirethebrain.com Hire The Brain HireTheBrain.com Computer Consulting, Design, Assembly and RepairOh no! I've commited Scriptocide!

Share this post


Link to post
Share on other sites

Ok, let's say your INI file looks like this

[Messages]
a=message1
b=message2
c=message3

then use

$ini = "PATH TO INI FILE.INI"
Send("{ENTER}/w *xcameramenx " & IniRead($ini, "messages", "a", "NONE SPECIFIED") & "{ENTER}")
Send("{ENTER}/w *xcameramenx " & IniRead($ini, "messages", "b", "NONE SPECIFIED") & "{ENTER}")
Send("{ENTER}/w *xcameramenx " & IniRead($ini, "messages", "c", "NONE SPECIFIED") & "{ENTER}")

PS: it's write not whrite :think:

~cdkid

no work sorry

in ini file A or B or C can be changed value i forgot to say it maybe coze that ...

Share this post


Link to post
Share on other sites

Re i a find a worjing code :

Send("{ENTER}")

Send("/w *xcaramenx ")

Sleep (250)

Send ($A)

Sleep (250)

Send ($:think:

Sleep (250)

Send ('{ENTER}')

But i got other problem now i think it s the easyer line 2 no work

Send("/w *xcaramenx ")

why after push enter Autoit dont wrHite :( : "/w *xcaramenx "

help me plzzz :)

Share this post


Link to post
Share on other sites

again me it was just coze no deley xD

ok finish code is :

Send("{ENTER}")

Sleep (250)

Send("/w *xcaramenx ")

Sleep (250)

Send ($A)

Sleep (250)

Send ($:think:

Sleep (250)

Send ('{ENTER}')

ty for helping :(

Share this post


Link to post
Share on other sites

So is your problem solved or what? I really didn't get whats the problem you were having...


[font="Fixedsys"][size="3"][u][font="Franklin Gothic Medium"] [/font][/u][/size][/font]

Share this post


Link to post
Share on other sites

So is your problem solved or what? I really didn't get whats the problem you were having...

problem solved xD ty :think:

Share this post


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
Sign in to follow this  
Followers 0