Jump to content

i'm about to cry


Recommended Posts

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]

Link to comment
Share on other sites

  • Developers

...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 etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...