Jump to content
Sign in to follow this  
caramen

search ,search ,search but found any thing! :(

Recommended Posts

caramen

hey ppl thx before you may help/try help me and sry for my ugly english :)

i dont whant any work from you cose i already asked for this but one guy asked me to pay to know what i was asked for

well i got a great script already everything working perfectly

but i need to lunch my aplication before lunch the script i know how lunch the aplication

but now i just whant to know if i can get a way to modify the target of a shordcut exemple:

i got this target in my shordcut :

"C:\Program Files\Diablo II\Loader.exe"

and i wanna got this

"C:\Program Files\Diablo II\Loader.exe" -w -title "888"

i got a way to do it

lunch

"the shorcute name" path called in an settings.ini file

with a command to change his target

i have try a lot of thing without any succes muttley

do you know how do that ?


IUIAutomation From Junkew WebDriver From Danp2

 

Share this post


Link to post
Share on other sites
caramen

run("""C:\Program Files\Diablo II\Loader.exe"" -w -title ""888""")

should come close. Check the number of quotes used and try

i will try thx for helping muttley

but i have solved the problem with :

ShellExecute()

ShellExecute($D2path)

and i have put my own shordcut in my script pack but nvm

i'll try this out and give us a feed back


IUIAutomation From Junkew WebDriver From Danp2

 

Share this post


Link to post
Share on other sites
caramen

run("""C:\Program Files\Diablo II\Loader.exe"" -w -title ""888""")

should come close. Check the number of quotes used and try

my technique dont work coze user of my shortcut cant acces the target windows xp bug ...

but your's work perfectly but how to call an ini read for the file path ?

tryed script

run("""$D2path"" -w -title ""888""")

run("" $D2path "-w -title" "888" "")

run(""""" -w -title ""888""")

Edited by caramen

IUIAutomation From Junkew WebDriver From Danp2

 

Share this post


Link to post
Share on other sites
caramen

Opt("MouseCoordMode", 0)
Opt("PixelCoordMode", 0)

HotKeySet("{PAUSE}", "Pause")
Global $Paused
HotKeySet("{escape}", "Exite")

Dim $var
Dim $p

$SettingsFile = @SCRIPTDIR & '\Settings.ini'

$DeleyA  = IniRead ($SettingsFile, 'Deley', 'DeleyA', "ERROR")
$Account  = IniRead ($SettingsFile, 'Account Settings', 'Account ', "ERROR")
$Password  = IniRead ($SettingsFile, 'Account Settings', 'Password', "ERROR")
$Didi = IniRead ($SettingsFile, 'D2 Path', 'Diablo II', "ERROR")
$Charslot = IniRead ($SettingsFile, 'Char', 'Slot', "ERROR")
$GameName = IniRead ($SettingsFile, 'Game', 'Name', "ERROR")
$D2path = IniRead ($SettingsFile, 'D2 Path', 'Diablo II', "ERROR")


Lunch()
Login ()
Char ()
Game ()
Error ()
Kill ()
Killl ()
Pause ()
Exite ()



Func Lunch()
run("""C:\Program Files\Diablo II\D2Loader-1.12.exe"" -w -title ""888""") 
    Sleep($DeleyA)
    WinActivate ("888")
    WinActivate ("Diablo II")
    WinActivate ("D2 Loader v1.12 - Build on jun 18 2008")
    Sleep (3000)
    WinMove("888","",0,0)
    WinMove("Diablo II","",0,0)
    WinMove("D2 Loader v1.12 - Build on jun 18 2008","",0,0)
    Sleep (3000)
EndFunc


Func Login ()
    MouseClick("left",402,372)
    Sleep (6500)
    MouseClick("left",449,363)
    Sleep(10)
    MouseClick("left",449,363)
    Sleep(10)
    Send($Account)
    Sleep (1550)
    MouseClick("left",398,414)
    Sleep (1500)
    Send($Password)
    Sleep (3510)
    Send("{ENTER}")
EndFunc

i wanna know how to replace this line :

run("""C:\Program Files\Diablo II\D2Loader-1.12.exe"" -w -title ""888""")

by an ini call to

$D2path = IniRead ($SettingsFile, 'D2 Path', 'Diablo II', "ERROR")

IUIAutomation From Junkew WebDriver From Danp2

 

Share this post


Link to post
Share on other sites
caramen

any solution to fix this ?

coze if i try

run("""$D2path"" -w -title ""888""")

or

run(""$D2path" -w -title ""888""")

or

run($D2path""" -w -title ""888""")

i dont got the script work syntaxe erroe or unable to execute file path


IUIAutomation From Junkew WebDriver From Danp2

 

Share this post


Link to post
Share on other sites
caramen

Problem solved :P

run($D2path & " -w -title 888")

1000 thx to JamesBrooks my master muttley :(:)


IUIAutomation From Junkew WebDriver From Danp2

 

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  

×