Sign in to follow this  
Followers 0
thenewkid

need help with my code

13 posts in this topic

Hi heres my whole scrirpt. but the _iniwirte() and the Case $MSG = $Copy bit dont work if you would take a fewmin to look over my code and tell me why i would be ever grat full

thank you

CODE

#include <GUIConstants.au3>

$INIFILE = "smarty.ini"

if FileExists("smarty.ini") <> 1 Then

IniWrite($INIFILE, "Messages", "Welcome1", "Welcome @customer to our online shop. Everything is totally automated. You have @time minutes to complete the trade.")

IniWrite($INIFILE, "Messages", "Welcome2", "The amount available from last trade: @credit")

IniWrite($INIFILE, "Messages", "Welcome3", "Select cards to see prices. I will take the tickets after you {T} CONFIRM.")

IniWrite($INIFILE, "Messages", "2minsLeft", "You have 2 minutes left to complete the trade.")

IniWrite($INIFILE, "Messages", "TooMany", "You have selected too many cards, please remove some.")

IniWrite($INIFILE, "Messages", "SubTotal", "Amount Due: @total [Total: @cost - Credit: @credit]")

IniWrite($INIFILE, "Messages", "NotEnough", "I don't see enough tickets. I need to trade @total tickets.")

IniWrite($INIFILE, "Messages", "YouWillTake", "Please take @total tickets and {T} CONFIRM to complete the trade.")

IniWrite($INIFILE, "Messages", "Thanks1", "Thank you @customer. I hope we do business again.")

IniWrite($INIFILE, "Messages", "Thanks2", "Please add me to your buddylist so you can come back (/addbuddy xxxxxx).")

IniWrite($INIFILE, "Messages", "Thanks3", "")

IniWrite($INIFILE, "Messages", "BuyerMsg", "Searching your collection...")

IniWrite($INIFILE, "Messages", "PlsConfirm", "Please {T} CONFIRM to complete the trade.")

IniWrite($INIFILE, "Messages", "AutoAnswer", "This is an automated trading bot, please don't send PM, just enter trade.")

IniWrite($INIFILE, "Screenshot", "TradeShot", "YES")

IniWrite($INIFILE, "Screenshot", "ChatShot", "YES")

IniWrite($INIFILE, "Trade", "BuyingRarity", "RARE")

IniWrite($INIFILE, "Trade", "BuyingVersion", "ANY")

IniWrite($INIFILE, "Trade", "Buying", "")

IniWrite($INIFILE, "Trade", "NumberOwnedSign", ">=")

IniWrite($INIFILE, "Trade", "NumberOwnedValue", "0")

IniWrite($INIFILE, "Trade", "Set", "ALL")

IniWrite($INIFILE, "Trade", "Mode", "SELL")

IniWrite($INIFILE, "Trade", "TradingTime", "10")

IniWrite($INIFILE, "Trade", "CreditsFile", "credits.txt")

IniWrite($INIFILE, "Spam", "DisableSpam", "NO")

IniWrite($INIFILE, "Spam", "Room2Spam", "marketplace")

IniWrite($INIFILE, "Spam", "SpamMessage1", "ENTER YOUR MESSAGE")

IniWrite($INIFILE, "Spam", "SpamMessage2", "ENTER YOUR MESSAGE")

IniWrite($INIFILE, "Spam", "SpamMessage3", "ENTER YOUR MESSAGE")

IniWrite($INIFILE, "Spam", "SpamMessage4", "ENTER YOUR MESSAGE")

IniWrite($INIFILE, "Spam", "MessageBoard", "ENTER YOUR MESSAGE")

IniWrite($INIFILE, "Spam", "SpamPeriod", "120")

MsgBox(64,"SmartyCL.exe","A new smarty.ini has been made i did not find one to load.")

EndIf

$wecome1 = IniRead("smarty.INI","Messages","Welcome1","Welcome @customer to our online shop. Everything is totally automated. You have @time minutes to complete the trade.")

$wecome2 = IniRead("smarty.INI","Messages","Welcome2","The amount available from last trade: @credit")

$wecome3 = IniRead("smarty.INI","Messages","Welcome3","Select cards to see prices. I will take the tickets after you {T} CONFIRM.")

$2minsleft = IniRead("smarty.INI","Messages","2minsLeft","You have 2 minutes left to complete the trade.")

$Too = IniRead("smarty.INI","Messages","TooMany","You have selected too many cards, please remove some.")

$sub = IniRead("smarty.INI","Messages","SubTotal","Amount Due: @total [Total: @cost - Credit: @credit]")

$Not = IniRead("smarty.INI","Messages","NotEnough","I don't see enough tickets. I need to trade @total tickets.")

$YouWillTakee = IniRead("smarty.INI","Messages","YouWillTake","Please take @total tickets and {T} CONFIRM to complete the trade.")

$Thanks11 = IniRead("smarty.INI","Messages","Thanks1","Thank you @customer. I hope we do business again.")

$Thanks22 = IniRead("smarty.INI","Messages","Thanks2","Please add me to your buddylist so you can come back (/addbuddy).")

$Thanks33 = IniRead("smarty.INI","Messages","Thanks3","")

$BuyerMsgg = IniRead("smarty.INI","Messages","BuyerMsg","Searching your collection...")

$PlzConfirmm = IniRead("smarty.INI","Messages","PlzConfirm","{T} Please CONFIRM to complete the trade {T}")

$AutoAnswerr = IniRead("smarty.INI","Messages","AutoAnswer","This is an automated trading bot, please don't send PM, just enter trade.")

$borad = IniRead("smarty.INI","Spam","MessageBoard","ENTER YOUR MESSAGE")

;2ed tab

$Spam1 = IniRead("smarty.INI","Spam","SpamMessage1","ENTER TRADE TO SEE MY CARDS FOR SELL")

$Spam2 = IniRead("smarty.INI","Spam","SpamMessage2","ENTER TRADE TO SEE MY CARDS FOR SELL")

$spam3 = IniRead("smarty.INI","Spam","SpamMessage3","ENTER TRADE TO SEE MY CARDS FOR SELL")

$spam4 = IniRead("smarty.INI","Spam","SpamMessage4","ENTER TRADE TO SEE MY CARDS FOR SELL")

$SpamPeriod1 = IniRead("smarty.INI","Spam","SpamPeriod","120")

$Room2Spamm = IniRead("smarty.INI","Spam","Room2Spam","Marketplace")

$TradeTime1 = IniRead("smarty.INI","Trade","TradeingTime","5")

;3ed

$botrare = IniRead("smarty.ini","Trade","BuyingRarity","RARE")

$Buyingveron = IniRead("smarty.ini","Trade","BuyingVersion","ANY")

$botlookfor = IniRead("smarty.ini","Trade","Buying","")

$owned = IniRead("smarty.ini","Trade","NumberOwnedValue","0")

$sing = IniRead("smarty.ini","Trade","NumberOwnedSign",">=")

$set = IniRead("smarty.ini","Trade","Set","ALL")

$mode = IniRead("smarty.ini","Trade","Mode","SELL")

$TradeTime1 = IniRead("smarty.ini","Trade","TradingTime","5")

$Form1 = GUICreate("Smarty CP", 469, 409, 283, 191)

GUISetIcon("D:05.ico")

GUICtrlCreateTab(0, 0, 468, 408)

$TabSheet1 = GUICtrlCreateTabItem("Message Setings")

$Label1 = GUICtrlCreateLabel("Welcome1", 8, 40, 55, 17)

$Label2 = GUICtrlCreateLabel("Welcome2", 8, 64, 55, 17)

$Label3 = GUICtrlCreateLabel("Welcome3", 8, 88, 55, 17)

$TwoMinLeft = GUICtrlCreateLabel("TwoMinLeft", 8, 112, 60, 17)

$TooMeny = GUICtrlCreateLabel("TooMeny", 8, 136, 49, 17)

$Subtotal = GUICtrlCreateLabel("Subtotal", 8, 160, 43, 17)

$NotEnough = GUICtrlCreateLabel("NotEnough", 8, 184, 58, 17)

$YouWillTake = GUICtrlCreateLabel("YouWillTake", 8, 208, 65, 17)

$Thanks1 = GUICtrlCreateLabel("Thanks1", 8, 232, 46, 17)

$Thanks2 = GUICtrlCreateLabel("Thanks2", 8, 256, 46, 17)

$Thanks3 = GUICtrlCreateLabel("Thanks3", 8, 280, 46, 17)

$BuyerMsg = GUICtrlCreateLabel("BuyerMsg", 8, 304, 51, 17)

$PlzConfirm = GUICtrlCreateLabel("PlzConfirm", 8, 328, 53, 17)

$AutoAnswer = GUICtrlCreateLabel("AutoAnswer", 8, 352, 61, 17)

$MessageBoard = GUICtrlCreateLabel("MessageBoard", 8, 376, 75, 17)

GUICtrlCreateInput($wecome1, 88, 32, 369, 21)

GUICtrlCreateInput($wecome2, 88, 56, 369, 21)

GUICtrlCreateInput($wecome3, 88, 80, 369, 21)

GUICtrlCreateInput($2minsleft, 88, 104, 369, 21)

GUICtrlCreateInput($Too, 88, 152, 369, 21)

GUICtrlCreateInput($sub, 88, 128, 369, 21)

GUICtrlCreateInput($Not, 88, 176, 369, 21)

GUICtrlCreateInput($YouWillTakee, 88, 224, 369, 21)

GUICtrlCreateInput($Thanks11, 88, 200, 369, 21)

GUICtrlCreateInput($Thanks22, 88, 248, 369, 21)

GUICtrlCreateInput($Thanks33, 88, 272, 369, 21)

GUICtrlCreateInput($BuyerMsgg, 88, 296, 369, 21)

GUICtrlCreateInput($PlzConfirmm, 88, 320, 369, 21)

GUICtrlCreateInput($AutoAnswerr, 88, 344, 369, 21)

GUICtrlCreateInput($borad, 104, 368, 353, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))

$TabSheet2 = GUICtrlCreateTabItem("Advertisement On Rooms")

GUICtrlSetState(-1,$GUI_SHOW)

GUICtrlCreateInput($Spam1, 16, 56, 305, 21)

GUICtrlCreateInput($Spam2, 16, 88, 305, 21)

GUICtrlCreateInput($spam3, 16, 120, 305, 21)

GUICtrlCreateInput($spam4, 16, 152, 305, 21)

$Copy = GUICtrlCreateButton("Copy", 344, 104, 75, 25, 0)

$Group1 = GUICtrlCreateGroup("Spam messages", 8, 32, 425, 177)

GUICtrlCreateGroup("", -99, -99, 1, 1)

$SpamPeriod = GUICtrlCreateLabel("SpamPeriod", 16, 248, 61, 17)

$Input1 = GUICtrlCreateInput($SpamPeriod1, 80, 240, 41, 21)

;spam time

$updown = GUICtrlCreateUpdown($Input1)

GUICtrlSetLimit($updown,999,120)

;spamtime

$Seconds = GUICtrlCreateLabel("Seconds", 128, 248, 46, 17)

$Room2Spam = GUICtrlCreateLabel("Room2Spam", 216, 248, 65, 17)

GUICtrlCreateInput($Room2Spamm, 288, 240, 145, 21)

$Label4 = GUICtrlCreateLabel("CreditaFile", 24, 312, 53, 17)

$Input2 = GUICtrlCreateInput("Credits.txt", 88, 304, 249, 21)

GUICtrlSetState(-1, $GUI_DISABLE)

$TradeTime = GUICtrlCreateLabel("TradeTime", 24, 352, 55, 17)

$Input3 = GUICtrlCreateInput($TradeTime1, 88, 344, 41, 21)

;tradetime

$updown1 = GUICtrlCreateUpdown($Input3)

GUICtrlSetLimit($updown1,20,5)

;tradetime

$Minutes = GUICtrlCreateLabel("Minutes", 136, 352, 41, 17)

$TradeSetings = GUICtrlCreateGroup("TradeSetings", 8, 288, 409, 105)

GUICtrlCreateGroup("", -99, -99, 1, 1)

;tab3

$TabSheet4 = GUICtrlCreateTabItem("Buying Setings")

$Label5 = GUICtrlCreateLabel("BotTakes", 64, 64, 50, 17)

$Label6 = GUICtrlCreateLabel("BotWillSearchFor", 32, 104, 86, 17)

$Label7 = GUICtrlCreateLabel("NumberOfCardsOwned", 8, 144, 113, 17)

$Label8 = GUICtrlCreateLabel("MtgCardSet", 56, 184, 60, 17)

$Combo1 = GUICtrlCreateCombo("", 136, 56, 145, 25)

GUICtrlSetData(-1, "ANY|REGULAR|FOIL")

GUICtrlCreateCombo("", 304, 56, 145, 25)

GUICtrlSetData(-1, "ANY|COMMON|UNCOMMON|RARE")

GUICtrlCreateInput($botlookfor, 136, 96, 313, 21)

$Combo2 = GUICtrlCreateCombo("", 136, 136, 73, 25)

GUICtrlSetData(-1, ">=|>|=|<|<=")

$Combo3 = GUICtrlCreateCombo("", 136, 176, 145, 25)

GUICtrlSetData(-1, "ALL|CLASSIC|EXTENDED|STANDARD|9TH EDITION|-TIME SPIRAL BLOCK|TIME SPIRAL|-ICE AGE BLOCK|ICE AGE|ALLIANCES|COLDSNAP|-RAVNICA BLOCK|RAVNICA: CITY OF GUILDS|GUILDPACT|DISSENSION|-KAMIGAWA BLOCK|CHAMPIONS OF KAMIGAWA|BETRAYERS OF KAMIGAWA|SAVIORS OF KAMIGAWA|-MIRRODIN BLOCK|MIRRODIN|DARKSTEEL|FIFTH DAWN|-ONSLAUGHT BLOCK|ONSLAUGHT|LEGIONS|SCOURGE|-ODYSSEY BLOCK|ODYSSEY|TORNMENT|JUDGMENT|-INVASION BLOCK|INVASION")

$Input4 = GUICtrlCreateInput($owned, 232, 136, 33, 21)

;cards owned

$updown3 = GUICtrlCreateUpdown($Input4)

GUICtrlSetLimit($updown3,100,0)

;cards owned

$BuyingSeting = GUICtrlCreateGroup("BuyingSeting", 8, 32, 457, 177)

GUICtrlCreateGroup("", -99, -99, 1, 1)

$TabSheet5 = GUICtrlCreateTabItem("Auto Login")

$Label9 = GUICtrlCreateLabel("Please Enter Your MTGO Account Name", 112, 112, 198, 17)

$Input5 = GUICtrlCreateInput("", 128, 144, 169, 21)

$Input6 = GUICtrlCreateInput("", 128, 232, 169, 21)

$Button_Run = GUICtrlCreateButton("RUN", 40, 328, 75, 25, 0)

$Button_SaveExit = GUICtrlCreateButton("Save and Exit", 168, 328, 107, 25, 0)

$Label10 = GUICtrlCreateLabel("Please Enter Your MTGO Password", 128, 200, 173, 17)

$Button_Exit = GUICtrlCreateButton("Exit", 328, 328, 75, 25, 0)

;;;;;;; heres my problom

;;;;;

Func _iniwirte()

IniWrite("smarty.ini", "Messages", "Welcome1", $wecome1)

IniWrite("smarty.ini", "Messages", "Welcome2",$wecome2 )

IniWrite("smarty.ini", "Messages", "Welcome3", $wecome3)

IniWrite("smarty.ini", "Messages", "2minsLeft", $2minsleft)

IniWrite("smarty.ini", "Messages", "TooMany", $Too)

IniWrite("smarty.ini", "Messages", "SubTotal", $sub)

IniWrite("smarty.ini", "Messages", "NotEnough", $Not)

IniWrite("smarty.ini", "Messages", "YouWillTake",$YouWillTakee)

IniWrite("smarty.ini", "Messages", "Thanks1", $Thanks11)

IniWrite("smarty.ini", "Messages", "Thanks2", $Thanks22)

IniWrite("smarty.ini", "Messages", "Thanks3", $Thanks33)

IniWrite("smarty.ini", "Messages", "BuyerMsg", $BuyerMsgg)

IniWrite("smarty.ini", "Messages", "PlsConfirm", $PlzConfirmm)

IniWrite("smarty.ini", "Messages", "AutoAnswer", $AutoAnswerr)

IniWrite("smarty.ini", "Screenshot", "TradeShot", "YES")

IniWrite("smarty.ini", "Screenshot", "ChatShot", "YES")

IniWrite("smarty.ini", "Trade", "BuyingRarity", $botrare)

IniWrite("smarty.ini", "Trade", "BuyingVersion", $Buyingveron)

IniWrite("smarty.ini", "Trade", "Buying", $botlookfor)

IniWrite("smarty.ini", "Trade", "NumberOwnedSign", $sing)

IniWrite("smarty.ini", "Trade", "NumberOwnedValue", $owned)

IniWrite("smarty.ini", "Trade", "Set",$set )

IniWrite("smarty.ini", "Trade", "Mode", $mode)

IniWrite("smarty.ini", "Trade", "TradingTime", $TradeTime1)

IniWrite("smarty.ini", "Trade", "CreditsFile", "credits.txt")

IniWrite("smarty.ini", "Spam", "DisableSpam", "NO")

IniWrite("smarty.ini", "Spam", "Room2Spam", $Room2Spamm)

IniWrite("smarty.ini", "Spam", "SpamMessage1", $Spam1)

IniWrite("smarty.ini", "Spam", "SpamMessage2", $Spam2)

IniWrite("smarty.ini", "Spam", "SpamMessage3", $spam3)

IniWrite("smarty.ini", "Spam", "SpamMessage4", $spam4)

IniWrite("smarty.ini", "Spam", "MessageBoard", $borad)

IniWrite("smarty.ini", "Spam", "SpamPeriod", $SpamPeriod1)

EndFunc

;;;;;;;;^ up there i need help with

GUICtrlCreateTabItem("")

GUISetState(@SW_SHOW)

#EndRegion ### END Koda GUI section ###

While 1

$MSG = GUIGetMsg()

Select

Case $MSG = $Copy

$s_Input1 = GUICtrlRead($Spam1)

GUICtrlSetData($Spam2, $s_Input1)

GUICtrlSetData($spam3,$s_Input1)

GUICtrlSetData($spam4,$s_Input1)

Case $MSG = $Button_Exit

Exit

Case $MSG = $Button_SaveExit

_iniwirte()

MsgBox(0,"","Saved")

Exit

Case $MSG = $Button_Run

_iniwirte()

MsgBox(0,"","Saved")

ExitLoop

Case $msg = $GUI_EVENT_CLOSE

ExitLoop

EndSelect

WEnd


some of my scripts check them out and give feedback so i can learn from them :)autoclicker a autoclickernote taker a script to take notes with

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

his is a pretty large script... PLEASE INDENT CORRECTLY!!! I cannot read this script at all... you need to comment & indent next time you post one of your script, please, it helps up greatly understand your script.

EDIT: Alright looked over your code and finally figured out what was wrong. You need to use GuiCtrlRead() before you can assign it ass a variable. Here is somewhat of what your script will look like after you add this function:

$Variable1 = GUICtrlCreateInput($wecome1, 88, 32, 369, 21)
$Variable2 = GUICtrlCreateInput($wecome2, 88, 56, 369, 21)
$Variable3 = GUICtrlCreateInput($wecome3, 88, 80, 369, 21)
$Variable4 = GUICtrlCreateInput($2minsleft, 88, 104, 369, 21)
$Variable5 = GUICtrlCreateInput($Too, 88, 152, 369, 21)
$Variable6 = GUICtrlCreateInput($sub, 88, 128, 369, 21)
$Variable7 = GUICtrlCreateInput($Not, 88, 176, 369, 21)
$Variable8 = GUICtrlCreateInput($YouWillTakee, 88, 224, 369, 21)
$Variable9 = GUICtrlCreateInput($Thanks11, 88, 200, 369, 21)
$Variable10 = GUICtrlCreateInput($Thanks22, 88, 248, 369, 21)
$Variable11 = GUICtrlCreateInput($Thanks33, 88, 272, 369, 21)
$Variable12 = GUICtrlCreateInput($BuyerMsgg, 88, 296, 369, 21)
$Variable13 = GUICtrlCreateInput($PlzConfirmm, 88, 320, 369, 21)
$Variable14 = GUICtrlCreateInput($AutoAnswerr, 88, 344, 369, 21)
$Variable15 = GUICtrlCreateInput($borad, 104, 368, 353, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Variable16 = GUICtrlSetState(-1,$GUI_SHOW)
$Variable17 = GUICtrlCreateInput($Spam1, 16, 56, 305, 21)
$Variable18 = GUICtrlCreateInput($Spam2, 16, 88, 305, 21)
$Variable19 = GUICtrlCreateInput($spam3, 16, 120, 305, 21)
$Variable20 = GUICtrlCreateInput($spam4, 16, 152, 305, 21)


;OTHER INPUT BOXES WILL BE HERE ALONG WITH TABS AND SUCH


Func _iniwrite()
    $1 = GUICtrlRead($Variable1)
    $2 = GUICtrlRead($Variable2)
    $3 = GUICtrlRead($Variable3)
    $4 = GUICtrlRead($Variable4)
    $5 = GUICtrlRead($Variable5)
    $6 = GUICtrlRead($Variable6)
    $7 = GUICtrlRead($Variable7)
    $8 = GUICtrlRead($Variable8)
    $9 = GUICtrlRead($Variable9)
    $10 = GUICtrlRead($Variable10)
    $11 = GUICtrlRead($Variable11)
    $12 = GUICtrlRead($Variable12)
    $13 = GUICtrlRead($Variable13)
    $14 = GUICtrlRead($Variable14)
    $15 = GUICtrlRead($Variable15)
    $16 = GUICtrlRead($Variable16)
    $17 = GUICtrlRead($Variable17)
    $18 = GUICtrlRead($Variable18)
    $19 = GUICtrlRead($Variable19)
    $20 = GUICtrlRead($Variable20)
    IniWrite(@ScriptDir & "\smarty.ini", "Messages", "Welcome1", $1)
    IniWrite(@ScriptDir & "\smarty.ini", "Messages", "Welcome2",$2 )
    IniWrite(@ScriptDir & "\smarty.ini", "Messages", "Welcome3", $3)
    IniWrite(@ScriptDir & "\smarty.ini", "Messages", "2minsLeft", $4)
    IniWrite(@ScriptDir & "\smarty.ini", "Messages", "TooMany", $5)
    IniWrite(@ScriptDir & "\smarty.ini", "Messages", "SubTotal", $6)
    IniWrite(@ScriptDir & "\smarty.ini", "Messages", "NotEnough", $7)
    IniWrite(@ScriptDir & "\smarty.ini", "Messages", "YouWillTake",$8)
    IniWrite(@ScriptDir & "\smarty.ini", "Messages", "Thanks1", $9)
    IniWrite(@ScriptDir & "\smarty.ini", "Messages", "Thanks2", $10)
    IniWrite(@ScriptDir & "\smarty.ini", "Messages", "Thanks3", $11)
    IniWrite(@ScriptDir & "\smarty.ini", "Messages", "BuyerMsg", $12)
    IniWrite(@ScriptDir & "\smarty.ini", "Messages", "PlsConfirm", $13)
    IniWrite(@ScriptDir & "\smarty.ini", "Messages", "AutoAnswer", $14)
    IniWrite(@ScriptDir & "\smarty.ini", "Screenshot", "TradeShot", "YES")
    IniWrite(@ScriptDir & "\smarty.ini", "Screenshot", "ChatShot", "YES")
    IniWrite(@ScriptDir & "\smarty.ini", "Trade", "BuyingRarity", $15)
    IniWrite(@ScriptDir & "\smarty.ini", "Trade", "BuyingVersion", $16)
    IniWrite(@ScriptDir & "\smarty.ini", "Trade", "Buying", $17)
    IniWrite(@ScriptDir & "\smarty.ini", "Trade", "NumberOwnedSign", $18)
    IniWrite(@ScriptDir & "\smarty.ini", "Trade", "NumberOwnedValue", $19)
    IniWrite(@ScriptDir & "\smarty.ini", "Trade", "Set",$20)
EndFunc

THIS DOES NOT WORK!!! This is only an example, you will have to edit it (ex. add more IniWrite and GuiCtrlRead functions, rename certain things, I simply used the first 20 ini writes not worrying about which ones matched to which input box). I know I may be confusing you a little bit but here is how I tried to start assigning input boxes varibales.

Hope this helps you understand...

Edited by dandymcgee

- Dan [Website]

Share this post


Link to post
Share on other sites

Your $Copy button is style '0', which I believe removes it's Notify status.

Your other problem is no problem for me... I pressed 'Save and Exit,' and the .ini then contained the correct info. under [Messages]


If I post a code or snippet, please tell me what I did wrong and/or what I can do better. Tell me my code/idea sucks, if it does. If I ask for help, refrain from only telling me to search the help file and/or the forums. I will search before asking, I just may not have searched with good keywords. If I say that I will look into something or fix something later, understand that I am most likely lying.

Share this post


Link to post
Share on other sites

when i pressed the save& exit button it never saved in the ini i think its the _iniwrite() i dont know how would i fix the copybutton?


some of my scripts check them out and give feedback so i can learn from them :)autoclicker a autoclickernote taker a script to take notes with

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

$Copy = GUICtrlCreateButton("Copy", 344, 104, 75, 25, 0) -->

$Copy = GUICtrlCreateButton("Copy", 344, 104, 75, 25)

I really don't know about your iniwrite problem, it works fine for me...

EDIT:: after me speaking a short bit of unintelligible nonsense and re-reading your script, I have become utterly lost. What is it supposed to do..?

Edited by crzftx

If I post a code or snippet, please tell me what I did wrong and/or what I can do better. Tell me my code/idea sucks, if it does. If I ask for help, refrain from only telling me to search the help file and/or the forums. I will search before asking, I just may not have searched with good keywords. If I say that I will look into something or fix something later, understand that I am most likely lying.

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

i know it comes up with saved but thats bcouse a just made it com up with a msgbox saying saved it loads the ini ok but it just does no write to it when you press save&exit or run thow it should

thak you for the help with $copy

when the gui opans its to load the text from smarty.ini and put it in the right places

copy button takes the text from $spam1 and puts in $spam2-4

^ i think is fixed not tryed yet

and the save&exit and the run buttons save the new edited text from all the tabs to the smarty.ini

^ does not save it

Edited by thenewkid

some of my scripts check them out and give feedback so i can learn from them :)autoclicker a autoclickernote taker a script to take notes with

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

Just please fill me in on what I'm missing (or if it's all there)

+> You write a bunch of commands to a .ini

+> You then read those commands that you just wrote and save them to variables

+> Afterwards, you create your necessary inputs & labels for your GUI

+> Next you describe your function that saves the exact same strings to the same sections as your original save

+> Finally you have your WHILE loop that decides what to do when various things are done

am i following?

EDIT:: and to add on to my original so called help, it doesn't work... your inputs are not variabled (that's not a word, but I should make it one). You need to say $Spam1 = guicreateinput($spam1, BLAH BLAH BLAH) Do this for all three of the spam inputs.

Edited by crzftx

If I post a code or snippet, please tell me what I did wrong and/or what I can do better. Tell me my code/idea sucks, if it does. If I ask for help, refrain from only telling me to search the help file and/or the forums. I will search before asking, I just may not have searched with good keywords. If I say that I will look into something or fix something later, understand that I am most likely lying.

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

iam makeing the gui to be a contal panel for a diff program that uses the smarty.ini

> makeing the gui load the .ini on startup < works

> copy button to copy text from the 1st input box ($Spam1) to copy the text from it to the next 3 under it ($Spam2,$spam3,$spam4) <Works

>save to the .ini when the Save&Exit button or Run is pressed<does not work

k the copy works thak you :P

Edited by thenewkid

some of my scripts check them out and give feedback so i can learn from them :)autoclicker a autoclickernote taker a script to take notes with

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

Save WHAT to the .ini??

EDIT:: go look at DandyMcgee's post, he must be a better man than I, for he understands what this script is supposed to do

OOH,, I'm actually starting to get this. You want any new messages you type to equal what you input. I should really look into junk first. Just make all the inputs like you did for the spam boxes. $BLAH = guictrlcreateinput($BLAH,

Edited by crzftx

If I post a code or snippet, please tell me what I did wrong and/or what I can do better. Tell me my code/idea sucks, if it does. If I ask for help, refrain from only telling me to search the help file and/or the forums. I will search before asking, I just may not have searched with good keywords. If I say that I will look into something or fix something later, understand that I am most likely lying.

Share this post


Link to post
Share on other sites

every think on the gui from tabs 1-3


some of my scripts check them out and give feedback so i can learn from them :)autoclicker a autoclickernote taker a script to take notes with

Share this post


Link to post
Share on other sites

Did I solve it !?!


If I post a code or snippet, please tell me what I did wrong and/or what I can do better. Tell me my code/idea sucks, if it does. If I ask for help, refrain from only telling me to search the help file and/or the forums. I will search before asking, I just may not have searched with good keywords. If I say that I will look into something or fix something later, understand that I am most likely lying.

Share this post


Link to post
Share on other sites

#12 ·  Posted (edited)

i know whats wrong with the _iniwirite its just writeing the save stuff as it loaded even if the user edited it

thank you for your time :P

Edit: i tred what DandyMcgee's seid todo with the iniwrite and it writes all 0 to the .ini

Edited by thenewkid

some of my scripts check them out and give feedback so i can learn from them :)autoclicker a autoclickernote taker a script to take notes with

Share this post


Link to post
Share on other sites

EDIT:: go look at DandyMcgee's post, he must be a better man than I, for he understands what this script is supposed to do

OOH,, I'm actually starting to get this. You want any new messages you type to equal what you input. I should really look into junk first. Just make all the inputs like you did for the spam boxes. $BLAH = guictrlcreateinput($BLAH,

Thank You for that compliment, and I'd like to welcome you to the forums as well. I showed him what he must do to successfully update the .ini. The way he has it, it will write the defaults to the .ini successfully but will not write the updated information (whatever you change in the inputboxes on the gui before you hit the save & exit button) successfully. This is simply because he didn't use the GuiCtrlRead() function which I have explained to him more fully in the PM I just sent him. That you for trying to help him, as for the Copy button I'm not sure what he wants it to do, but that isn't the big problem as of now. If he just wants to copy all of the input boxes info to the clipboard that would be easy, but like I said we can worry about that later (if you have that fixed then there is nothing to worry about). Anyways I'm awaiting his reply via PM so either I or he will post the final script when we are finished for future WoW ers to take advantage of (Wow ers... lol cool word).


- Dan [Website]

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