caramen Posted July 22, 2008 Share Posted July 22, 2008 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 - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki Link to comment Share on other sites More sharing options...
junkew Posted July 22, 2008 Share Posted July 22, 2008 run("""C:\Program Files\Diablo II\Loader.exe"" -w -title ""888""") should come close. Check the number of quotes used and try FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets Link to comment Share on other sites More sharing options...
caramen Posted July 22, 2008 Author Share Posted July 22, 2008 run("""C:\Program Files\Diablo II\Loader.exe"" -w -title ""888""") should come close. Check the number of quotes used and tryi will try thx for helping muttleybut i have solved the problem with :ShellExecute()ShellExecute($D2path)and i have put my own shordcut in my script pack but nvmi'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 - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki Link to comment Share on other sites More sharing options...
caramen Posted July 22, 2008 Author Share Posted July 22, 2008 (edited) run("""C:\Program Files\Diablo II\Loader.exe"" -w -title ""888""") should come close. Check the number of quotes used and trymy 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 scriptrun("""$D2path"" -w -title ""888""")run("" $D2path "-w -title" "888" "")run(""""" -w -title ""888""") Edited July 22, 2008 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 - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki Link to comment Share on other sites More sharing options...
caramen Posted July 22, 2008 Author Share Posted July 22, 2008 expandcollapse popupOpt("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 - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki Link to comment Share on other sites More sharing options...
caramen Posted July 22, 2008 Author Share Posted July 22, 2008 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 - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki Link to comment Share on other sites More sharing options...
James Posted July 22, 2008 Share Posted July 22, 2008 Use & to join variables, strings and integers together muttley Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
junkew Posted July 22, 2008 Share Posted July 22, 2008 (edited) Concatenate the strings you need something like below run(""" & $d2Path & "\D2Loader-1.12.exe"") I think below will work depending on whats in your inifile run("""" & $D2path & """" & " -w -title ""888""") Edited July 22, 2008 by junkew FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets Link to comment Share on other sites More sharing options...
caramen Posted July 22, 2008 Author Share Posted July 22, 2008 Problem solved 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 - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki 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