Jump to content

Edit localization in script without edit.


kempas
 Share

Recommended Posts

Hello !

I want to do something which will edit this:

Run("E:\GTA2 Game Hunter\GTA2 Game Hunter.exe")

without giving open source version. So, is it possible to make something which will exchange localization in my script? I crossed paths with something similar witch was made in autoit. It included .ini file where I could change my RUN. Please answer ASAP.

@edit:

How to run something without giving full localization? I want to run gh.exe which is in "2323" folder and my script is in "2324" folder. Localization of gh.exe is C:/2324/2323 and i want to run gh.exe without this C: . 4example in html it looks like

"strony/2.htm"

Is it possible in autoit too?

Edited by kempas
Link to comment
Share on other sites

Maybe...

$Program_1 = @TempDir & "\Temp1.exe"
FileInstall("C:\2324\2323\gh.exe", $Program_1)

$H_lnk = @TempDir & "\H_lnk.htm"
FileInstall("C:\2324\strony/2.htm", $H_lnk)

Run($Program_1 & " " & $H_lnk, "", @SW_SHOW)

8)

Maybe I wrote it unprecisely because this isn't the point. I want to run something without giving ANY localization on script because this script will be in many computers and localization will be different without one folder. This folder will be in folder(/program/) so localization of this folder is
/program/cfg/
. And in this folder (I mean "cfg") there is a gh.exe. I want to make something alike to html IMG SRC where I can write localization without any shit like a
C:/skjfs/fwf/chuj/sdf.jpg
. And in my script i want to open .exe
/cfg/gh.exe
because script is in
/program/
All in all I want to cut C:/any/shit and just have in Run
Link to comment
Share on other sites

Hello !

I want to do something which will edit this:

Run("E:\GTA2 Game Hunter\GTA2 Game Hunter.exe")

without giving open source version. So, is it possible to make something which will exchange localization in my script? I crossed paths with something similar witch was made in autoit. It included .ini file where I could change my RUN. Please answer ASAP.

@edit:

How to run something without giving full localization? I want to run gh.exe which is in "2323" folder and my script is in "2324" folder. Localization of gh.exe is C:/2324/2323 and i want to run gh.exe without this C: . 4example in html it looks like

"strony/2.htm"

Is it possible in autoit too?

as you said , the best way is to save an ini or a

text file with the path in the script folder and

when you run you read the file using IniRead Or

FileRead ( depends on what you choose )

here's an example

$GameHunterPath = IniRead("data.ini","paths","GameHunter","")
Run($GameHunterPath)

and the inifile

[paths]
GameHunter=E:\GTA2 Game Hunter\GTA2 Game Hunter.exe

as for question number 2 , i am still searching i know i saw that some where before

[font="Palatino Linotype"][size="3"]AutoIt Script Examples :[/size][/font][font="Palatino Linotype"][size="3"]_CaptureBehindWindowGlass CMD for Windows Vista/Seven[/size][/font][left][/left][font="Palatino Linotype"][size="3"]Non AutoIt Script programs : Border Skin - Aero Glass On XP[/size][/font]
Link to comment
Share on other sites

Question 2: use

@ScriptDir &"\2323\strony\2.htm"

to Question 1: You could read the path from registry (RegRead). there should be the path under:

HKEY_LOCAL_MACHINE\SOFTWARE\GTA2 Game Hunter\...

or HKEY_LOCAL_MACHINE\SOFTWARE\...

... means: don't know the exact key name and valuename. Just use Regedit to find it out.

*GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes

Link to comment
Share on other sites

Question 2: use

@ScriptDir &"\2323\strony\2.htm"

to Question 1: You could read the path from registry (RegRead). there should be the path under:

HKEY_LOCAL_MACHINE\SOFTWARE\GTA2 Game Hunter\...

or HKEY_LOCAL_MACHINE\SOFTWARE\...

... means: don't know the exact key name and valuename. Just use Regedit to find it out.

Sry dude i dont fully understand. Could you give me full script because it doesn't work :/ Or maybe where I have to paste this @ScriptDir Edited by kempas
Link to comment
Share on other sites

@ScriptDir is a macro ( = a predifend constants, which stores the path to your script) You can use this in you ShellExecute command. ( Shellexecute opens any file which can be opened with a double-click)

ShellExecute(@ScriptDir &"\2323\strony\2.htm")

*GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes

Link to comment
Share on other sites

@ScriptDir is a macro ( = a predifend constants, which stores the path to your script) You can use this in you ShellExecute command. ( Shellexecute opens any file which can be opened with a double-click)

ShellExecute(@ScriptDir &"\2323\strony\2.htm")

Thank you! Now it works!
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...