Search found 860 matches

by scriptor2016
19 Mar 2022, 19:25
Forum: Ask for Help (v1)
Topic: GUI with Non-Activating Button
Replies: 17
Views: 1707

Re: GUI with Non-Activating Button

oh, sorry. The Edit control is used for a "search bar" of sorts. Basically, I would type something into it, and then press the "GO" button (which I also have programmed beside it), and then it will open up a new Chrome window, then browse to Google.ca and then paste the text into Google's search bar...
by scriptor2016
19 Mar 2022, 19:17
Forum: Ask for Help (v1)
Topic: GUI with Non-Activating Button
Replies: 17
Views: 1707

Re: GUI with Non-Activating Button

Thanks, this is doing some neat stuff... although I'm starting to wonder if it's possible at all, maybe I'm looking for something that can't be done The Edit control in the GUI would have nothing to do with the Copy/Paste buttons; it would be there for another, unrelated use. Having the GUI never ac...
by scriptor2016
19 Mar 2022, 18:14
Forum: Ask for Help (v1)
Topic: GUI with Non-Activating Button
Replies: 17
Views: 1707

Re: GUI with Non-Activating Button

Alright so the following works, but only for Notepad. Trying to figure out what to do if we're trying to paste into, say, Notepad++ or maybe Google Chrome. I can't figure this out. How could the script determine exactly which window to copy/paste from. Copying/pasting to/from the active window is th...
by scriptor2016
19 Mar 2022, 17:44
Forum: Ask for Help (v1)
Topic: GUI with Non-Activating Button
Replies: 17
Views: 1707

Re: GUI with Non-Activating Button

Sorry I'm pretty bad at describing things ;) Was hoping to open a new Notepad window, and then type some stuff into it. Then, highlight that text. Next, go into the ahk GUI, and press the 'Copy' button. Hopefully, the text is now copied to the clipboard. Then, go back into the Notepad window, and le...
by scriptor2016
19 Mar 2022, 14:24
Forum: Ask for Help (v1)
Topic: GUI with Non-Activating Button
Replies: 17
Views: 1707

Re: GUI with Non-Activating Button

Sorry, I should have posted an example. Here's a quick example of the problem. The COPY/PASTE buttons work, but the Edit control can't receive focus and can't be typed in: Gui, 1: +AlwaysOnTop +E0x08000000 Gui, 1: Add, Button, x0 y0 w200 h50 vCOPY gCOPY, COPY Gui, 1: Add, Button, x0 y50 w200 h50 vPA...
by scriptor2016
19 Mar 2022, 14:10
Forum: Ask for Help (v1)
Topic: GUI with Non-Activating Button
Replies: 17
Views: 1707

GUI with Non-Activating Button

Alright, sorry about all these questions as of late but I'm up against another issue on a project I'm working on. I have large GUI, and have a COPY and PASTE button. Elsewhere in the GUI, there is also a few Edit controls for data entry. I need a way to press the COPY or PASTE buttons and they will ...
by scriptor2016
18 Mar 2022, 23:06
Forum: Ask for Help (v1)
Topic: VarList In List Format
Replies: 4
Views: 430

Re: VarList In List Format

Thanks to both you guys!! Both solutions are fantastic. Reading all the variables (I have over 50 in the list) is so much easier to read in a list format as opposed to reading them left to right. I messed around with so many variations trying to come up with the answer but as usual I couldn't get it...
by scriptor2016
18 Mar 2022, 00:43
Forum: Ask for Help (v1)
Topic: VarList In List Format
Replies: 4
Views: 430

VarList In List Format

Out of curiosity, is there a way to re-write the following:

Code: Select all

VarList := ["UserName", "UserMode", "NumberOfThings"]
as a list format, similar to below?

VarList :=
[
"UserName",
"UserMode",
"NumberOfThings"
]

I've tried the above amongst a few other ideas but none have worked.
by scriptor2016
17 Mar 2022, 23:19
Forum: Ask for Help (v1)
Topic: Get path of selected file/folder or of current folder Topic is solved
Replies: 18
Views: 11579

Re: Get path of selected file/folder or of current folder Topic is solved

Code: Select all

+z::

Clipboard =
Send, ^c
ClipWait, 1 
Clipboard = %Clipboard%
MsgBox, Path of selected file is %ClipBoard% 
by scriptor2016
17 Mar 2022, 01:25
Forum: Ask for Help (v1)
Topic: Check if string is a website
Replies: 14
Views: 3773

Re: Check if string is a website

thanks mikeyww :) This works as well. As usual I'll have to examine the RegExMatch line as this is one area I'm not yet familiar with. But it's a good time to study it.
by scriptor2016
16 Mar 2022, 23:03
Forum: Ask for Help (v1)
Topic: Check if string is a website
Replies: 14
Views: 3773

Re: Check if string is a website

thanks again for the help guys. I did a little more research in the documentation and found that using If InStr would be a little easier for me. Came up with this: If InStr(text, ".com") || InStr(text, "www.") || InStr(text, ".html") || InStr(text, "http") || InStr(text, "https") || InStr(text, ".ca...
by scriptor2016
16 Mar 2022, 00:45
Forum: Ask for Help (v1)
Topic: Check if string is a website
Replies: 14
Views: 3773

Re: Check if string is a website

yeah you're right - I stated it as http://mysite.com/contents.html in my first post. Which is strange, because in the address bar, the only text that is displayed is mysite.com/contents.html , but when double-clicking on it and then copying it, the clipboard then contains http://mysite.com/contents....
by scriptor2016
16 Mar 2022, 00:18
Forum: Ask for Help (v1)
Topic: Check if string is a website
Replies: 14
Views: 3773

Re: Check if string is a website

Maybe this will help a little better: text=https://mysite.com If RegExMatch(text, "^(https?://|www\.)[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(/\S*)?$") msgbox, Yes %text% is a website! else msgbox, No %text% is not a website text2=mysite.com/contents.html If RegExMatch(text2, "^(https?://|www\.)[a-zA-Z0-9\-\...
by scriptor2016
15 Mar 2022, 23:47
Forum: Ask for Help (v1)
Topic: Check if string is a website
Replies: 14
Views: 3773

Check if string is a website

Hi there, back with another one - this one is too far out of my league at the moment. I found a snippet of code that checks to see if a string is just a random string or if it is a link to a website. This is the code: If RegExMatch(text, "^(https?://|www\.)[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(/\S*)?$") I...
by scriptor2016
15 Mar 2022, 01:12
Forum: Ask for Help (v1)
Topic: If Either Condition Is True
Replies: 8
Views: 399

Re: If Either Condition Is True

ok, perfect, thanks again for your help. I'll study this a bit further :)
by scriptor2016
15 Mar 2022, 00:58
Forum: Ask for Help (v1)
Topic: If Either Condition Is True
Replies: 8
Views: 399

Re: If Either Condition Is True

Here's a sample line from my code:

Code: Select all

Gui, 1: Add, Progress, x100 y100 w100 h20 Backgroundff6600 vZOOM_IN 
In this instance, would the ZOOM_IN be a variable name or a literal string
by scriptor2016
15 Mar 2022, 00:32
Forum: Ask for Help (v1)
Topic: If Either Condition Is True
Replies: 8
Views: 399

Re: If Either Condition Is True

Yep, thanks - adding the quotations fixed the problem.

But ZOOM_IN and ZOOM_OUT are the variable names of the controls. In other words I don't think they're literal strings, so wouldn't that mean that they don't need the quotes?
by scriptor2016
14 Mar 2022, 23:59
Forum: Ask for Help (v1)
Topic: If Either Condition Is True
Replies: 8
Views: 399

If Either Condition Is True

Hi there, I haven't been able to find a solution for this one. Basically just want to use an If clause which checks to see if either of two possible conditions are true. I'm using this small snippet: MouseGetPos,,, ControlID, OutputVarCtl GuiControlGet, ControlName, Name , %OutputVarCtl% if (Control...
by scriptor2016
27 Feb 2022, 18:35
Forum: Ask for Help (v1)
Topic: Hide filepath in listview
Replies: 3
Views: 277

Re: Hide filepath in listview

hmmmmm, thank-you. I'll take a look at this approach :)
by scriptor2016
27 Feb 2022, 17:32
Forum: Ask for Help (v1)
Topic: Hide filepath in listview
Replies: 3
Views: 277

Re: Hide filepath in listview

Actually I think I found a better workaround: create 2 columns, the first one has the Folder5 displayed in it, and the second column has the full path. When clicked on in the listview, it gets the text from the second column and then performs the action. This is actually much better. The problem now...

Go to advanced search