Jump to content
Sign in to follow this  
egymma

i'm about to cry

Recommended Posts

egymma

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 :rolleyes:


[center][/center]My Projects:-[list][*]Window Ender[*]Encryptor-Decryptor[/list]

Share this post


Link to post
Share on other sites
Jos

...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"))

:rolleyes:

Edited by JdeB

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
egymma

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]

Share this post


Link to post
Share on other sites
egymma

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]

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  

×