Slumme Posted August 2, 2007 Share Posted August 2, 2007 Hello im making a toolkit for diablo, and i need to know 1. how to make script read out of a .ini file so u can define game name inthere like Gamename= and then i need to make a counter that makes the game count rise by 1 each game... so u by the press of a button makes next game... heres what i got so far ;/ what i need it to do after that mouseclick is to fill out some text predefined in the config, and then the next number defined by counter... Global $Paused HotKeySet( "{pgup}", "Create" ) MsgBox( 0, "Diablo2", "Sørg for at have dit d2 vindue åbnet i window mode inden du trykker ok" ) WinActivate( "D2Loader v1.11b" ) WinMove( "D2Loader v1.11b", "", 0, 0 ) While 1 Sleep( 100 ) WEnd Func Create() $Paused = NOT $Paused While $Paused MouseClick( "left" , 560, 490 ) WEnd EndFunc i would be glad if anyone took the time to help me Link to comment Share on other sites More sharing options...
Marc Posted August 3, 2007 Share Posted August 3, 2007 Global $Paused HotKeySet( "{pgup}", "Create" ) $counter=0 $var = IniRead("myfile.ini", "Settings", "Gamename", "NotFound") MsgBox( 0, "Diablo2", "Sørg for at have dit d2 vindue åbnet i window mode inden du trykker ok" ) WinActivate( "D2Loader v1.11b" ) WinMove( "D2Loader v1.11b", "", 0, 0 ) While 1 Sleep( 100 ) WEnd Func Create() $Paused = NOT $Paused $counter = $counter + 1 While $Paused MouseClick( "left" , 560, 490 ) $gamename = $var & $counter ; handle your settings here, like Send ($gamename) WEnd EndFunc Any of my own codes posted on the forum are free for use by others without any restriction of any kind. (WTFPL) 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