Search found 66 matches

by Bunny1
27 Apr 2015, 10:17
Forum: Ask For Help
Topic: check how many times a set of words appear
Replies: 2
Views: 511

check how many times a set of words appear

How do I check if a set of words appear more then once in a variable and remove all, but one of the sets. the words within the set are separated by a comma and a space. words are link together with a space without a comma. for example. #singleinstance force gui,add,edit,vaaaa r5 w500, gui,add,button...
by Bunny1
18 Apr 2015, 13:06
Forum: Ask For Help
Topic: Single lop for multiple file formats
Replies: 3
Views: 554

Single lop for multiple file formats

I hate to ask for help, but I'm stumped. I have this code #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting direct...
by Bunny1
01 Apr 2015, 12:50
Forum: Ask For Help
Topic: bbcode to markdown
Replies: 2
Views: 411

Re: bbcode to markdown

GeekDude wrote:Try this

Code: Select all

Description := RegExReplace( Description, "\[url=([^\]]+)\](.+?)\[/url\]", "[$2]($1)" )
Thank you, it works. that's just what I was looking for.
by Bunny1
01 Apr 2015, 12:37
Forum: Ask For Help
Topic: bbcode to markdown
Replies: 2
Views: 411

bbcode to markdown

I'm trying to convert bbcode to markdown and I can't seem to get the URL bbcode to convert to markdown with regexreplace. Description := RegExReplace( Description, "[url=(\w+.*?)]link text[/url]", "[link text]($1)" ) I've been trying to figure it one part at a time, but I can't even get the url to c...
by Bunny1
26 Mar 2015, 15:33
Forum: Ask For Help
Topic: modify url in variable
Replies: 2
Views: 518

Re: modify url in variable

TLM wrote:you mean like this?

Code: Select all

str = "Look at the cute squirrel. https://www.sofurry.com/view/817797 it's so cute I could hug it all day."

newStr := RegExReplace( str, "http.*?view/(\d+.*?)", ":link$1" )

msgbox % newStr
Thank you. that's just hat I wanted.
by Bunny1
26 Mar 2015, 14:47
Forum: Ask For Help
Topic: modify url in variable
Replies: 2
Views: 518

modify url in variable

If I enter this into an edit control "Look at the cute squirrel. https://www.sofurry.com/view/817797 it's so cute I could hug it all day." How would I change the url to :link817797: whenever it appears in the variable? At first I thought of stringreplace, but I can only figure out how to change the ...
by Bunny1
06 Mar 2015, 14:18
Forum: Ask For Help
Topic: Find all words
Replies: 6
Views: 1373

Re: Find all words

Okay, now I feel stupid. I think I understand how the code works, but I can't figure out how to get it to work with the search. I assume I would dump the contents of the folder into a variable and use that as the haystack and use stringsplit to put the search words into an array and use those as the...
by Bunny1
05 Mar 2015, 16:48
Forum: Ask For Help
Topic: Find all words
Replies: 6
Views: 1373

Find all words

I've made a search app. I managed to get it to search for multiple words, but it only finds them in the order they are entered in the search bar. I've spent the last few days trying to get it to find files that have all of the search words in the file name in any order. Any help would be appreciated...
by Bunny1
20 Feb 2015, 13:05
Forum: Ask For Help
Topic: <> added to filepath
Replies: 4
Views: 1319

Re: <> added to filepath

can you try this: MyListView: if A_GuiEvent = DoubleClick { LV_GetText(RowText, A_EventInfo) SplitPath, RowText, FileName ; I don't get this, why? IfExist, %Folder%\%Filename% Run, "%Folder%\%Filename%" else{ MsgBox, 16, Problem, the file "%Folder%\%Filename%" doesn't exist, trying diffrent thing L...
by Bunny1
20 Feb 2015, 12:30
Forum: Ask For Help
Topic: <> added to filepath
Replies: 4
Views: 1319

<> added to filepath

I've made a search program and most of the time when I try to start a video file through it I get this error. Error: Failed attempt to launch program or document: Action: <C:\Users\Bryan\Desktop\Games\TF2\Assassin_s Creed Revelations - E3 Trailer.flv> Params: <> Specifically: The system cannot find ...
by Bunny1
16 Jan 2015, 06:26
Forum: Ask For Help
Topic: Context menu question
Replies: 2
Views: 422

Re: Context menu question

2 buttons contextmenu , rightclick for contextmenu or click buttons modified=20150116 ;tagx rightclickx contextmenux contextmenubuttonx #NoEnv sc=ContextMenuButton_Test Menu,2: Menu1, Add Menu,2: Menu1, Add, AHK-Basic , MC1 Menu,2: Menu1, Add, AHK-L , MC2 Menu,2: Menu1, Add Menu,2: Menu2, Add, Note...
by Bunny1
16 Jan 2015, 05:47
Forum: Ask For Help
Topic: Context menu question
Replies: 2
Views: 422

Context menu question

In the code below if I right click anywhere on the gui the context menu opens. How do I make it so it only opens when I right click on the button? #singleinstance force gui, add, button, h50 w100 vvariable, button 1 gui, show, h100 w200 return GuiContextMenu: Gui, menu1:Add, Text,, Text is text Gui,...
by Bunny1
12 Jan 2015, 13:07
Forum: Ask For Help
Topic: Save button location
Replies: 18
Views: 1850

Re: Save button location

I could have been more interested in the logic behind what you think of doing, since it can shape the way you proceed from here, but the phrase "only thing I can think of is" the phrase not the thinking :P Somewhat it's a math thing here you go: #SingleInstance Gui, +Resize count := 0 ; This must s...
by Bunny1
12 Jan 2015, 06:40
Forum: Ask For Help
Topic: Save button location
Replies: 18
Views: 1850

Re: Save button location

Just one more question then I'll stop bothering you. no problem man, it's OK ;) now here is me bothering you! :P you can do it, it's just a matter of logic and concentration. - keep track of your buttons count - keep track of your buttons position - keep track of your rows and columns, and set sect...
by Bunny1
11 Jan 2015, 18:38
Forum: Ask For Help
Topic: Save button location
Replies: 18
Views: 1850

Re: Save button location

Thank you both. those both do what I wanted. I think I'll use MJs because it's so simple. Just one more question then I'll stop bothering you. What if I wanted it to go 3 buttons to the right then start a new row below the 4 buttons, so that it looked like this. [create button] [new button] [new but...
by Bunny1
11 Jan 2015, 18:12
Forum: Ask For Help
Topic: Save button location
Replies: 18
Views: 1850

Re: Save button location

MJs wrote:question:
do you want all created buttons to show on startup?
Yes.
by Bunny1
11 Jan 2015, 18:00
Forum: Ask For Help
Topic: Save button location
Replies: 18
Views: 1850

Re: Save button location

didn't read everything to have a better understading but how about changing this Gui, Add, Button, ys +hwndControl%count%, New Button to this Gui, Add, Button, ys+25 section +hwndControl%count%, New Button given that the height of the button is 23 Nope. the first time I open the gui and click the c...
by Bunny1
11 Jan 2015, 17:40
Forum: Ask For Help
Topic: Save button location
Replies: 18
Views: 1850

Re: Save button location

Try this: #singleinstance force count:=0 SysGet,titleBar,30 ;SM_CYSIZE IniRead,x,MyIni.ini,Buttons,Button1_X IniRead,y,MyIni.ini,Buttons,Button1_Y Gui, Add, Button, gCreateButton section x%x% y%y%, Create Button Gui, Show, w500 return CreateButton: count++ Gui, Add, Button, ys +hwndControl%count%, ...
by Bunny1
11 Jan 2015, 16:08
Forum: Ask For Help
Topic: Save button location
Replies: 18
Views: 1850

Re: Save button location

IniRead,x,MyIni.ini,Button,Button1_X IniRead,y,MyIni.ini,Button,Button1_Y Gui, Add, Button, gCreateButton section x%x% y%y%, Create Button Maybe I'm being stupid, but it doesn't work. This is what I have #singleinstance force count:=1 IniRead,x,MyIni.ini,Button,Button1_X IniRead,y,MyIni.ini,Button,...
by Bunny1
11 Jan 2015, 15:43
Forum: Ask For Help
Topic: Save button location
Replies: 18
Views: 1850

Re: Save button location

ControlGetPos will do that. #singleinstance force count:=1 Gui, Add, Button, gCreateButton section, Create Button Gui, Show, w500 return CreateButton: count++ Gui, Add, Button, ys +hwndControl%count%, New Button ControlGetPos,x,y,w,h,,% "ahk_id " Control%count% MsgBox % x ", " y ", " w ", " h ; Ini...

Go to advanced search