egymma Posted June 16, 2007 Share Posted June 16, 2007 here is the codes #include <GuiConstants.au3> Dim $REF=IniRead(@ProgramFilesDir & "\autoparty\Config.ini","Main","time","-1") If Int(IniRead(@ProgramFilesDir & "\autoparty\Config.ini","Main","checkbox", "0")) = 1 Then MsgBox(0,"checking the value",$REF) if (PixelGetColor(10,240) <> 0) and (PixelGetColor(11,300) <> 0) then sleep( $REF ) Send("e") sleep(500) MouseClick("",810,590,1,0) Sleep(500) MouseClick("",470,435,1,0) Sleep(300) MouseClick("left",610,590,1,0) Sleep(300) MouseClick("left",460,540,1,0) Sleep(300) Send("e") EndIf Exit EndIf i'm trying to read from ini how long i want it to sleep but its not working i spent hours seraching for a clue [center][/center]My Projects:-[list][*]Window Ender[*]Encryptor-Decryptor[/list] Link to comment Share on other sites More sharing options...
Developers Jos Posted June 16, 2007 Developers Share Posted June 16, 2007 (edited) ...and your ini file contains ? Have you checked what the content of $ref is after the INIread ? Could also try: Dim $REF=Number(IniRead(@ProgramFilesDir & "\autoparty\Config.ini","Main","time","-1")) Edited June 16, 2007 by JdeB SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
egymma Posted June 16, 2007 Author Share Posted June 16, 2007 my ini [Main] time=100 checkbox=1 and MsgBox(0,"checking the value",$REF) giving me its value is 100 and Dim $REF=Number(IniRead(@ProgramFilesDir & "\autoparty\Config.ini","Main","time","-1")) didnt work ty for replying [center][/center]My Projects:-[list][*]Window Ender[*]Encryptor-Decryptor[/list] Link to comment Share on other sites More sharing options...
egymma Posted June 16, 2007 Author Share Posted June 16, 2007 hmmm how stupid i was its like making sleep(100) i made it 10000 and saw the differance sorry for that .. lol and thank you [center][/center]My Projects:-[list][*]Window Ender[*]Encryptor-Decryptor[/list] 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