Jump to content
Sign in to follow this  
First

Error with Script

Recommended Posts

First

Hello!
I'm new here, however I'm racking my brain, I do not know why the script does not work, could someone tell me what I'm doing wrong and how to fix it?

#include <MsgBoxConstants.au3>
 
Local $iTimeout = 25
 
MsgBox($MB_SYSTEMMODAL, "Trubv", "This tutorial will closed " & $iTimeout & " seconds.  If u are faster then timer click to OK button.   1 step: click right button of mouse to your nick in channel", $iTimeout)
MsgBox($MB_SYSTEMMODAL, "Trubv", "This tutorial will closed " & $iTimeout & " seconds.  If u are faster then timer click to OK button.   2 step: click to change group nickname", $iTimeout)
MsgBox($MB_SYSTEMMODAL, "Trubv", "This tutorial will closed " & $iTimeout & " seconds.  If u are faster then timer click to OK button.   3 step: script will be work", $iTimeout)
MsgBox($MB_SYSTEMMODAL, "Trubv", "This tutorial will closed " & $iTimeout & " seconds.  If u are faster then timer click to OK button.   4 step: if u want pause script find it in system tray", $iTimeout)
MsgBox($MB_SYSTEMMODAL, "Trubv", "This tutorial will closed " & $iTimeout & " seconds.  If u are faster then timer click to OK button.   P.s. u can use your computer on full, while script working", $iTimeout)
MsgBox($MB_ICONINFORMATION, "Trubv","Trubv")
Dim $array[79]
$array[0] = "_"
$array[1] = "_"
$array[2] = "_"
$array[3] = "_"
$array[4] = "_"
$array[5] = "_"
$array[6] = "_"
$array[7] = "_"
$array[8] = "_"
$array[9] = "_"
$array[10] = "_"
$array[11] = "_"
$array[12] = "_"
$array[13] = "_"
$array[14] = "_"
$array[15] = "_"
$array[16] = "I"
$array[17] = "t"
$array[18] = "'"
$array[19] = "s"
$array[20] = "_"
$array[21] = "r"
$array[22] = "u"
$array[23] = "n"
$array[24] = "n"
$array[25] = "i"
$array[26] = "n"
$array[27] = "g"
$array[28] = "_"
$array[29] = "n"
$array[30] = "a"
$array[31] = "m"
$array[32] = "e"
$array[33] = "_"
$array[34] = "b"
$array[35] = "y"
$array[36] = "_"
$array[37] = "K"
$array[38] = "H"
$array[39] = "A"
$array[40] = "S"
$array[41] = "T"
$array[42] = "_"
$array[43] = "["
$array[44] = "T"
$array[45] = "K"
$array[46] = "_"
$array[47] = "S"
$array[48] = "u"
$array[49] = "p"
$array[50] = "p"
$array[51] = "o"
$array[52] = "r"
$array[53] = "t"
$array[54] = "]"
$array[55] = "_"
$array[56] = "_"
$array[57] = "_"
$array[58] = "_"
$array[59] = "_"
$array[60] = "_"
$array[61] = "_"
$array[62] = "_"
$array[63] = "_"
$array[64] = "_"
$array[65] = "_"
$array[66] = "_"
$array[67] = "_"
$array[68] = "_"
$array[69] = "_"
$array[70] = "_"
$array[71] = "_"
 
 
 
do
        for  $i = 1 to 56
                $Str=$array[$i] & $array[$i+1] & $array[$i+2] & $array[$i+3] & $array[$i+4] & $array[$i+5] & $array[$i+6] & $array[$i+7] & $array[$i+8] & $array[$i+9] & $array[$i+10] & $array[$i+11] & $array[$i+12] & $array[$i+13] & $array[$i+14] & $array[$i+15]
                ControlSetText ( "Change group nickname", "", "ATL:007CCA881", $Str)
                ControlClick("Change group nickname", "Apply", "wtlButton4")
                Sleep(150)
        Next
until (1>2)

 

Already, thank you.

Share this post


Link to post
Share on other sites
First

Hello mikell,
I am Brazilian, I'm sorry if I have a bad english.
I do not know much about AutoIt, I'm starting, I want to do something that is going nicknamed type randomly, has letter by letter ... your code I did not understand what I have to do for work? And it did not work until the (true)
And excuse me once again. And thank you!

Edited by First

Share this post


Link to post
Share on other sites
JLogan3o13

If you don't understand it, you need to read and figure it out. Everyone has been at Day 1 before, but this forum is dedicated to helping users better their code and their knowledge of AutoIt. You need to take the code line by line, read it and try to figure out what it is doing. Look at Keywords, such as StringSplit, in the help file to see what they are doing. And then look at the Example in the help file for that Keyword to see what it is doing. We're here to help, but mikell is providing you with only 3 lines of code; it is not unreasonable to expect you to figure out what it is doing ;)

  • Like 1

√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites
First

Hello!

I use a program called RaidCall. I want to make that it is changing my name like a sign, but it does not work, can you tell me where I went wrong now?

Download the version I use: http://update.raidcall.com.br/rctc/pc/RCbr_v7.3.6_Test.exe

Download the latest version: http://update.raidcall.com.br/rctc/vendor/raidcall_br9.exe

 

Please help me, I'm trying to do this for one month.

 

Code

#include <MsgBoxConstants.au3>
 
Dim $array[79]
$array[0] = "_"
$array[1] = "_"
$array[2] = "_"
$array[3] = "_"
$array[4] = "_"
$array[5] = "_"
$array[6] = "_"
$array[7] = "_"
$array[8] = "_"
$array[9] = "_"
$array[10] = "_"
$array[11] = "_"
$array[12] = "_"
$array[13] = "_"
$array[14] = "_"
$array[15] = "_"
$array[16] = "I"
$array[17] = "t"
$array[18] = "'"
$array[19] = "s"
$array[20] = "_"
$array[21] = "r"
$array[22] = "u"
$array[23] = "n"
$array[24] = "n"
$array[25] = "i"
$array[26] = "n"
$array[27] = "g"
$array[28] = "_"
$array[29] = "n"
$array[30] = "a"
$array[31] = "m"
$array[32] = "e"
$array[33] = "_"
$array[34] = "b"
$array[35] = "y"
$array[36] = "_"
$array[37] = "K"
$array[38] = "H"
$array[39] = "A"
$array[40] = "S"
$array[41] = "T"
$array[42] = "_"
$array[43] = "["
$array[44] = "T"
$array[45] = "K"
$array[46] = "_"
$array[47] = "S"
$array[48] = "u"
$array[49] = "p"
$array[50] = "p"
$array[51] = "o"
$array[52] = "r"
$array[53] = "t"
$array[54] = "]"
$array[55] = "_"
$array[56] = "_"
$array[57] = "_"
$array[58] = "_"
$array[59] = "_"
$array[60] = "_"
$array[61] = "_"
$array[62] = "_"
$array[63] = "_"
$array[64] = "_"
$array[65] = "_"
$array[66] = "_"
$array[67] = "_"
$array[68] = "_"
$array[69] = "_"
$array[70] = "_"
$array[71] = "_"
 
for  $i = 1 to 72
$Str=$array[$i]
Local $hWnd = WinWait("[ATL:007C4BC8]", "", 1)
ControlSetText($hWnd, "", "[ATL:007CAA80;INSTANCE:1]", $Str)
ControlClick($hWnd, "", "[CLASS:wtlButton;TEXT:Aplicar;INSTANCE:4]")
Sleep(150)
Next

 

Edited by First

Share this post


Link to post
Share on other sites
JohnQSmith

The code provided by mikell only makes it easier to create your character array; it does not help with your problem. Perhaps you could clarify what you are trying to do and what exactly is not working as expected. From what I see, you are trying to get the raidcall program to scroll your name in some space of it's display by repeatedly updating the name field. I'm not going to install the program to try it, but your reproducer code works fine if I change your three lines of window access with a ConsoleWrite.

Maybe JLogan3o13 can look at your code and "read and figure it out" and possibly provide a helpful suggestion.


Whenever someone says "pls" because it's shorter than "please", I say "no" because it's shorter than "yes".

Share this post


Link to post
Share on other sites
JLogan3o13

First, please do not PM members asking for assistance without being invited to. It is considered rude. I do not have the time at the moment to install RaidCall, and then play with your code to try to fix it for you. Someone more adept with that product may wander along in the meantime; but otherwise you'll need to be patient.

  • Like 1

√-1 2^3 ∑ π, and it was delicious!

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  

×