Jump to content

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


Recommended Posts

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 ?

My video tutorials : ( In construction )  || My Discord : https://discord.gg/S9AnwHw

How to Ask Help ||  UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote

Spoiler

 Water's UDFs:
Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Link to comment
Share on other sites

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

My video tutorials : ( In construction )  || My Discord : https://discord.gg/S9AnwHw

How to Ask Help ||  UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote

Spoiler

 Water's UDFs:
Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Link to comment
Share on other sites

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

My video tutorials : ( In construction )  || My Discord : https://discord.gg/S9AnwHw

How to Ask Help ||  UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote

Spoiler

 Water's UDFs:
Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Link to comment
Share on other sites

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

My video tutorials : ( In construction )  || My Discord : https://discord.gg/S9AnwHw

How to Ask Help ||  UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote

Spoiler

 Water's UDFs:
Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Link to comment
Share on other sites

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

My video tutorials : ( In construction )  || My Discord : https://discord.gg/S9AnwHw

How to Ask Help ||  UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote

Spoiler

 Water's UDFs:
Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Link to comment
Share on other sites

Problem solved :P

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

1000 thx to JamesBrooks my master muttley :(:)

My video tutorials : ( In construction )  || My Discord : https://discord.gg/S9AnwHw

How to Ask Help ||  UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote

Spoiler

 Water's UDFs:
Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

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