Search found 63 matches

by MrAsR
16 Aug 2021, 08:36
Forum: Ask for Help (v1)
Topic: How to fetch a text between two quote Topic is solved
Replies: 4
Views: 294

Re: How to fetch a text between two texts Topic is solved

swagfag wrote:
16 Aug 2021, 08:28

Code: Select all

config = <server nickname="user" password="">139.99.88.201:7777</server>

RegExMatch(config, "nickname=""(.*)"" password", uss)
msgbox % uss1
the result is stored in capturing group 1
oh yeah i forgot to add the number 1
by MrAsR
16 Aug 2021, 08:18
Forum: Ask for Help (v1)
Topic: How to fetch a text between two quote Topic is solved
Replies: 4
Views: 294

How to fetch a text between two quote Topic is solved

I've tried it but the result is just not right config = <server nickname="[u]user[/u]" password="">139.99.88.201:7777</server> FileRead, config, config.xml RegExMatch(config, "nickname=(.*) password", uss) msgbox % uss ;output : nickname="user" password i just want to get the text between the " or j...
by MrAsR
16 Aug 2021, 06:33
Forum: Ask for Help (v1)
Topic: How to make ahk support array type like this ?
Replies: 3
Views: 847

Re: How to make ahk support array type like this ?

swagfag wrote:
16 Aug 2021, 06:30

Code: Select all

fname := ["Abraham"
	, "Alvin"]
ur other array may not compile if it contains too many elements. u might have to reduce it and .Push() any remaining ones. or StrSplit() a delimited string into an array
how many arrays can i load ?
by MrAsR
16 Aug 2021, 06:18
Forum: Ask for Help (v1)
Topic: How to make ahk support array type like this ?
Replies: 3
Views: 847

How to make ahk support array type like this ?

When I run the script an error appears: This line doesn't contain a recognized action. on this array: fname := [ "Abraham", "Alvin", "Amos", "Angel", "Aryl", "Barry", "Benji", "Benton", "Weston", "Verne", "Wiley", "Vallis", "Gabrielle", "Jarred", "Jarrett", "Jasper", "James", "Jacob", "Jeremy", "Jes...
by MrAsR
15 Aug 2021, 21:35
Forum: Ask for Help (v1)
Topic: How to edit text in .xml file Topic is solved
Replies: 1
Views: 477

How to edit text in .xml file Topic is solved

How to edit specific text in config.xml file?

the following text snippet in config.xml

Code: Select all

<server nickname="[u]Tom_Crusader[/u]" password="">139.99.88.201:7777</server>
I just want to edit the underlined text "Tom_Crusader"
by MrAsR
15 Aug 2021, 09:52
Forum: Ask for Help (v1)
Topic: Open the .exe file at once with the config.xml Topic is solved
Replies: 11
Views: 527

Re: Open the .exe file at once with the config.xml Topic is solved

Let's backtrack: provide one exact command line that works in your .bat file. mikeyww @ECHO off start "" "F:\SAMP BOT 0.3.DLs\bot\FakeSAMP.exe" start "" "F:\SAMP BOT 0.3.DLs\bot - Copy\FakeSAMP.exe" start "" "F:\SAMP BOT 0.3.DLs\bot - Copy (2)\FakeSAMP.exe" start "" "F:\SAMP BOT 0.3.DLs\bot - Copy ...
by MrAsR
15 Aug 2021, 09:46
Forum: Ask for Help (v1)
Topic: Open the .exe file at once with the config.xml Topic is solved
Replies: 11
Views: 527

Re: Open the .exe file at once with the config.xml Topic is solved

See edit above: you can add whatever command-line parameters you typically would. Example: Run, notepad.exe %A_ScriptDir%\test.txt Run, notepad.exe "%A_ScriptDir%\test this.txt" If you need a specific working directory, you can also include that . I tried it like this, but the config.xml is still n...
by MrAsR
15 Aug 2021, 09:40
Forum: Ask for Help (v1)
Topic: Open the .exe file at once with the config.xml Topic is solved
Replies: 11
Views: 527

Re: Open the .exe file at once with the config.xml Topic is solved

mikeyww wrote:
15 Aug 2021, 09:35
Run the command as you would run it from the command line. If you typically include the config file, then add it to the Run command here, too.
I don't understand what this means
by MrAsR
15 Aug 2021, 09:37
Forum: Ask for Help (v1)
Topic: Open the .exe file at once with the config.xml Topic is solved
Replies: 11
Views: 527

Re: Open the .exe file at once with the config.xml Topic is solved

@mikeyww So I can't open apps that need config.xml with autohotkey ?
by MrAsR
15 Aug 2021, 09:29
Forum: Ask for Help (v1)
Topic: Open the .exe file at once with the config.xml Topic is solved
Replies: 11
Views: 527

Open the .exe file at once with the config.xml Topic is solved

Code: Select all

How to open app.exe at once but this app.exe requires config.xml not using this config.xml the app won't open, is there a solution?
#SingleInstance Force
#NoEnv
SetWorkingDir %A_ScriptDir%
SetBatchLines -1

bot := 2
delay := 1000

loop, %bot% {
Run, %A_ScriptDir%\bot - Copy (%bot%)\FakeSAMP.exe
}
by MrAsR
24 May 2021, 09:04
Forum: Ask for Help (v1)
Topic: How to make updater contents from fileread Topic is solved
Replies: 2
Views: 221

How to make updater contents from fileread Topic is solved

The contents of the save.dat file are always changing and the "lw" variable too How do I make the fileread to reread and update the contents & variables? RGBRIFT should have changed to another world name, according to the save.dat file, but with the code I used the world name was not updated. image....
by MrAsR
21 May 2021, 09:51
Forum: Ask for Help (v1)
Topic: Take the text in the .dat file and make it a var value Topic is solved
Replies: 18
Views: 990

Re: Take the text in the .dat file and make it a var value Topic is solved

regexmatch(var, "Filterlastworld(.+?)onlyFriends",m) MsgBox, % m1 How to make it just take the middle of the text? "Filterlastworld insalam12345 onlyFriends" and make it a variable value?, but the text can be changed at any time. m1 is the variable that contains just that test Tysm its work
by MrAsR
21 May 2021, 09:34
Forum: Ask for Help (v1)
Topic: Take the text in the .dat file and make it a var value Topic is solved
Replies: 18
Views: 990

Re: Take the text in the .dat file and make it a var value Topic is solved

AHKStudent wrote:
21 May 2021, 09:27

Code: Select all

regexmatch(var, "Filterlastworld(.+?)onlyFriends",m)
MsgBox, % m1
How to make it just take the middle of the text? "Filterlastworldinsalam12345onlyFriends" and make it a variable value?, but the text can be changed at any time.
by MrAsR
21 May 2021, 09:15
Forum: Ask for Help (v1)
Topic: Take the text in the .dat file and make it a var value Topic is solved
Replies: 18
Views: 990

Re: Take the text in the .dat file and make it a var value Topic is solved

mikeyww AHKStudent I've found a way to be able to read the .dat file but the regexmatch doesn't work I just want to take and make it var value of the text in bold, the text can be changed at any time. meta" " a~S"!~touchjump_secondaryWfullscreensavedVideoModeFullscreenModegraphic_detail=enterisBord...
by MrAsR
09 May 2021, 11:26
Forum: Ask for Help (v1)
Topic: Take the text in the .dat file and make it a var value Topic is solved
Replies: 18
Views: 990

Re: Take the text in the .dat file and make it a var value Topic is solved

You could post the actual file. That might help readers to test it. https://drive.google.com/file/d/1IzPPpLcDGkIAz61a_wXIarKhsXDcRJ0U/view?usp=sharing tested @mikeyww on the file u uploaded and it gave the correct value check the actual file these are the letters BUYHANDD Oh yeah, it's like that fo...
by MrAsR
09 May 2021, 10:15
Forum: Ask for Help (v1)
Topic: Take the text in the .dat file and make it a var value Topic is solved
Replies: 18
Views: 990

Re: Take the text in the .dat file and make it a var value Topic is solved

mikeyww When I try with the test file, does it work because there is only text that is pointed to in saved.dat? Full text of the actual file save.dat: meta •–š•Ÿ¢˜šžž¦ touch jump_secondaryW fullscreen savedVideoMode FullscreenMode graphic_detail enter isBorderlessWindowMode premium_subscription mu...
by MrAsR
09 May 2021, 10:04
Forum: Ask for Help (v1)
Topic: Take the text in the .dat file and make it a var value Topic is solved
Replies: 18
Views: 990

Re: Take the text in the .dat file and make it a var value Topic is solved

@mikeyww My file is in .dat / save.dat format
image.png
image.png (2.45 KiB) Viewed 950 times

Go to advanced search