Search found 9 matches

by electrone77
14 Jun 2020, 07:48
Forum: Ask For Help
Topic: GuiDropFiles not working if ahk run as admin Topic is solved
Replies: 4
Views: 1382

Re: GuiDropFiles not working if ahk run as admin Topic is solved

I think there are several topics discussing this. For example, here: https://www.autohotkey.com/boards/viewtopic.php?f=14&t=4974 (haven't tested it) Thanks @gregster adding this line at the top, seems solved the problem: Loop 2 DllCall( "ChangeWindowMessageFilter", uInt, "0x" (i:=!i?49:233), uint, ...
by electrone77
14 Jun 2020, 05:08
Forum: Ask For Help
Topic: GuiDropFiles not working if ahk run as admin Topic is solved
Replies: 4
Views: 1382

GuiDropFiles not working if ahk run as admin Topic is solved

if i add below code if not A_IsAdmin { Run *RunAs "%A_ScriptFullPath%" exitapp } this line doesn't work: infoGuiDropFiles: msgbox %A_GuiEvent% return when i remove: if not A_IsAdmin { Run *RunAs "%A_ScriptFullPath%" exitapp } everything works fine! is there any solution to this? i have to run as adm...
by electrone77
22 Apr 2020, 09:33
Forum: Ask For Help
Topic: Need Help Grepping Contents From A .txt File
Replies: 5
Views: 251

Re: Need Help Grepping Contents From A .txt File

#Persistent settimer, checkNew, 1000 ;check every second RETURN checkNew: fileread, data, %A_Desktop%\log.txt ;change according to your filename and path data := RegexReplace(data, "\n") ;delete all new lines so data is like a single line. might cause a problem if line is too big tho. regexmatch(da...
by electrone77
20 Mar 2019, 09:25
Forum: Ask For Help
Topic: Replace All Text In File
Replies: 9
Views: 2941

Re: Replace All Text In File

you might wanna try it with tf.ahk, its a lib you need to download, however i am not sure how it handles the files. Heres the info download example codes (see 1st code there is "!" before File.txt. i guess it overwrites the file): TF_ReplaceInLines("!File.txt","1,3,9","","key","lock") ; update sourc...
by electrone77
18 Mar 2019, 18:23
Forum: Ask For Help
Topic: Add space after a subdomain in an url. How? Topic is solved
Replies: 15
Views: 2425

Re: Add space after a subdomain in an url. How? Topic is solved

hey, here's my 2 cents. kinda :offtopic: since question is already answered :angel: urls = ( https www.test.com / Broken Link for safety http test.co.uk /jpg.png Broken Link for safety https pbs.test.gr /xxx/xxx.jpg Broken Link for safety ) msgbox % regexreplace(urls, "m`a)(https?://(www\.|pbs\.)?.*...
by electrone77
18 Mar 2019, 16:35
Forum: Ask For Help
Topic: Find the first occurrence of text and stop
Replies: 8
Views: 1357

Re: Find the first occurrence of text and stop

in-case i might have misunderstood your question, please excuse my poor English. in addition to Blue Kodiak's post (which is awesome), here is another way to see if there are more than 1 occurrances in the text: text = your text here if regexmatch(text, "(\|\-.*?){2}") ;so {2} here is: number of occ...
by electrone77
16 Mar 2019, 17:34
Forum: Ask For Help
Topic: Find the first occurrence of text and stop
Replies: 8
Views: 1357

Re: Find the first occurrence of text and stop

yw i'm glad it worked :thumbup:
by electrone77
16 Mar 2019, 15:18
Forum: Ask For Help
Topic: Find the first occurrence of text and stop
Replies: 8
Views: 1357

Re: Find the first occurrence of text and stop

Hi, so if there's a "|-" in the text you want it to stop and perform some other action? i guess this might help. text = I have a page of text in which contains numerous "|-". How is it possible to find a single occurrence and then stop so that the macro can perform some other action? if RegExMatch(t...
by electrone77
16 Mar 2019, 13:37
Forum: Ask For Help
Topic: Replacing and storing text to clipboard Topic is solved
Replies: 10
Views: 1791

Re: Replacing and storing text to clipboard Topic is solved

Not sure if i understand it correctly, but i hope this helps. 1)if you know which word to replace: text = Clipboard is a built-in variable that reflects the current contents of the Windows clipboard ABCXYZ if those contents can be expressed as text. clipboard := regexreplace(text, "ABCXYZ", clipboar...

Go to advanced search