NvTe Posted March 8, 2007 Share Posted March 8, 2007 (edited) Hello everyone, I've installed Multi-Messenger for Yahoo, and i was having trouble with the 2 ids i have. I had to write the account and password each time. So i wrote a script that does this automaticly - with a simple GUI. I was thinking that this program might be userfull for others, so i wanted to make it universal. So i want to make an add, a modify, and a delete option to it, that adds/deletes ids and passwords. I was thinking that i might use an .ini file, i red the docs for it but i still can't do it. So my questions are: - How do i read and write data to .ini files? - Are there other data-storing meathods? - How do i "encrypt" this data so that users can not access this by opening the file? - By now i managed to make buttons for my ids (GUICtrlCreateButton). But i wanted to make this with GUICtrlCreateGroup, so that it's cooler, but i couldn't make it work. I couldon't make the program to verify wich id did i select and run the corresponding funcion. How do i do this? What i've done so far: expandcollapse popup#include <GUIConstants.au3> Opt("GUIOnEventMode",1) GUICreate("Y!LiN^", 250, 80) $Label = GUICtrlCreateLabel("Select iD!", 10, 10) $YesID = GUICtrlCreateButton("<my id>", 8, 50, 70, 20) GUICtrlSetOnEvent($YesID,"OnYes") $NoID = GUICtrlCreateButton("<other id>", 85, 50, 78, 20) GUICtrlSetOnEvent($NoID,"OnNo") $ExitID = GUICtrlCreateButton("Exit", 172, 50, 70, 20) GUICtrlSetOnEvent($ExitID,"OnExit") GUISetOnEvent($GUI_EVENT_CLOSE,"OnExit") GUISetState(); display the GUI While 1 Sleep (1000) WEnd ;--------------- Functions --------------- Func OnYes() run("C:\Program Files\Yahoo!\Messenger\YahooMessenger.exe") WinWaitActive("Yahoo! Messenger") send("<write my id :) >") send("{TAB}") send("<write my pass :) secret :D >") send("{ENTER}") Exit EndFunc Func OnNo() run("C:\Program Files\Yahoo!\Messenger\YahooMessenger.exe") WinWaitActive("Yahoo! Messenger") send("<bla bla bla") send("{TAB}") send("my pass haha :P") send("{ENTER}") Exit EndFunc Func OnExit() MsgBox(48, "Credits", "created by NeoVTE ") Exit EndFunc One last question: will this be runnable on an other computer WITOUT Autoit installed on it when i compile it with the compiler (set an icon for it too)? Thenx for readin this and for you'r help (if you'll give me any ) Edited March 8, 2007 by NvTe Link to comment Share on other sites More sharing options...
tAKTelapis Posted March 8, 2007 Share Posted March 8, 2007 iniread() and iniwrite() Link to comment Share on other sites More sharing options...
NvTe Posted March 9, 2007 Author Share Posted March 9, 2007 Thanx man any answers for the other questions? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now