Search found 1218 matches

by rommmcek
Today, 07:06
Forum: Ask For Help
Topic: Several Progress Bars in One Line
Replies: 4
Views: 70

Re: Several Progress Bars in One Line

Progress control is very fast highly flexible control. See my Piano Gui gif made only with Progress Controls. To start: clr:= ["0080ff", "ff800", "00ffff", "ff00ff", "ffff00"] Gui, Margin, 0, 0 Gui, -Caption +ToolWindow Gui, add, Progress, Vertical x0 y0 w20 h400 c0000ff Backgroundff0000, 30 loop, 5...
by rommmcek
Yesterday, 16:52
Forum: Ask For Help
Topic: Ctrl+V key spam when Ctrl is side mouse button
Replies: 3
Views: 62

Re: Ctrl+V key spam when Ctrl is side mouse button

Try: $XButton1 && v::.
[Edit]: While … is redundant (in your script too).
by rommmcek
25 Feb 2021, 17:30
Forum: Scripts and Functions
Topic: BeautifulToolTip - A highly compatible, high-performance, multi-style, customizable ToolTip
Replies: 16
Views: 726

Re: BeautifulToolTip - A highly compatible, high-performance, multi-style, customizable ToolTip

Very nice project! - I miss shadowing, to give the Tip an elevated appearance. - would be useful if btt supported pictures (at half size or max 1/4 of the screen). Here is a special benchmark script for the first Tip appearance where btt stands back and a visual one too. Possible workaround would be...
by rommmcek
25 Feb 2021, 10:32
Forum: Ask For Help
Topic: if WinActive not working on chrome tabs?
Replies: 12
Views: 266

Re: if WinActive not working on chrome tabs?

#If WinActive("ABC") does not always work as expected. Try: #IfWinActive ahk_exe chrome.exe f8:: if WinActive("ABC") SoundBeep, 1400, 30 Return #IfWinActive if it's possible to have a "ifURLExists" function? will it be cross-browser compatible? Try this one : GroupAdd, MyBrowsers, ahk_exe chrome.ex...
by rommmcek
24 Feb 2021, 18:33
Forum: Ask For Help
Topic: Check if the checkbox is checked (in chrome) Topic is solved
Replies: 2
Views: 105

Re: Check if the checkbox is checked (in chrome) Topic is solved

If you don't want java, Acc is alternative. Here is en example how to check Ahk Login check-boxes: #Include Acc.ahk ; https://github.com/sancarn/ACC.AHK ;code assumes chrmoe has opend: https://www.autohotkey.com/boards/ucp.php?mode=login WinActivate ahk_exe chrome.exe WinWaitActive ahk_exe chrome.ex...
by rommmcek
24 Feb 2021, 15:07
Forum: Ask For Help
Topic: How do you Copy Text, Open Chrome, then Search Google for Clip??
Replies: 15
Views: 292

Re: How do you Copy Text, Open Chrome, then Search Google for Clip??

To run the script as Admin programmatically place the snippet below at the top of your code:

Code: Select all

if !A_IsAdmin
{
   Run *RunAs "%A_ScriptFullPath%"  ; Requires v1.0.92.01+
   ExitApp
}
by rommmcek
24 Feb 2021, 08:17
Forum: Scripts and Functions
Topic: Text Filter
Replies: 56
Views: 2181

Re: Text Filter

Needle input of the Text Filter is designed by the SundayProgrammer to except Regex syntax (probably not very complex one). But you have to consider that space is treated as separator (like | in Regex). So: - to match space use \s - to match reserved Regex character use \. , \? etc. - to match start...
by rommmcek
24 Feb 2021, 04:04
Forum: Scripts and Functions
Topic: Highlighter tool
Replies: 5
Views: 289

Re: Highlighter tool

Maybe you could look at this thread to possibly get some new ideas.
by rommmcek
23 Feb 2021, 11:10
Forum: Ask For Help
Topic: Compare pixel color multiple times from same coordinate Topic is solved
Replies: 4
Views: 97

Re: Compare pixel color multiple times from same coordinate Topic is solved

Try moving PixelGetColor, … to the first loop e.g.:

Code: Select all

;...
	loop{
		PixelGetColor, pixel%A_index%, coord1, coord2, RGB
		loop, 5{
			sleep, 999 ; for testing, then replace with 20000
;...
by rommmcek
22 Feb 2021, 15:48
Forum: Ask For Help
Topic: Is a comma after the #Include directive correct?
Replies: 5
Views: 151

Re: Is a comma after the #Include directive correct?

Don't know most of the syntax by heart, in doubt I test...
Consider these too:

Code: Select all

for, i, j in arr ;o.k.
    ;...
while, a=1 ;o.k.
    ;...
if, a=1 ;Error
    ;...
Global, a ;Error
Local, a ;Error
Static, a ;Error
gregster wrote:
22 Feb 2021, 07:20
AHK v1 is not really famous for exuberant consistency.
However I love AutoHotkey!
by rommmcek
22 Feb 2021, 09:14
Forum: Ask For Help
Topic: How do you Copy Text, Open Chrome, then Search Google for Clip??
Replies: 15
Views: 292

Re: How do you Copy Text, Open Chrome, then Search Google for Clip??

I had occasional problems with Run command too. Latest syntax is Run, Target [, WorkingDir, Options, OutputVarPID] so try:

Code: Select all

Run, chrome.exe %param%, C:\Program Files (x86)\Google\Chrome\Application
[Edit]: Fixing parameter false copy paste.
by rommmcek
18 Feb 2021, 17:46
Forum: Ask For Help
Topic: Selecting elements without unique class name
Replies: 10
Views: 399

Re: Selecting elements without unique class name

Path Is for all buttons (in that toolbar) the same. So assigne Path:= "4.4.4.1.4" and to get ChildId select the desired buton and read the value at the bottom left corner of the Viewer. So given your previous pic it is 22 ChildId:= 22 If you have trouble to select (reselect) a button, try to restart...
by rommmcek
17 Feb 2021, 21:50
Forum: Ask For Help
Topic: Selecting elements without unique class name
Replies: 10
Views: 399

Re: Selecting elements without unique class name

So what should the code look like, in this case? As I posted above . Assign the Child Id: ChildId:= 22 and to get the Path, yes you have to select all the buttons. First select one button then (holding LButton down) move the mouse slowly towards bottom or top edge of the button until frame gets big...
by rommmcek
17 Feb 2021, 20:55
Forum: Scripts and Functions
Topic: Help w/ understanding the #IfWinExist condition
Replies: 1
Views: 106

Re: Help w/ understanding the #IfWinExist condition

Try:

Code: Select all

 #IfWinExist ahk_class screenClass111111
 Right::
 {
 MsgBox, 4, ,Window exists.
 ; ppt := ComObjActive("PowerPoint.Application")
 ; ppt.ActivePresentation.SlideShowWindow.View.Next
 }
 return
 #IfWinExist
by rommmcek
17 Feb 2021, 11:48
Forum: Scripts and Functions
Topic: Custom volume control with custom GUI
Replies: 2
Views: 239

Re: Custom volume control with custom GUI

I made some changes to your script: #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common errors. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_Scrip...
by rommmcek
16 Feb 2021, 07:26
Forum: Ask For Help
Topic: Selecting elements without unique class name
Replies: 10
Views: 399

Re: Selecting elements without unique class name

Try: #Include Acc.ahk ; https://github.com/sancarn/ACC.AHK Path:= "4.1.4" ; pseudo path replace it with real one (w/o "P.") ChildId:= 12 hwnd:= WinExist("ASAPCentral") ;ControlGet, hwnd, Hwnd,, TPanel3, ASAPCentral ;try to uncomment this line too Acc := Acc_Get("Object", Path, 0, "ahk_id " hwnd) Acc...
by rommmcek
14 Feb 2021, 23:26
Forum: Scripts and Functions
Topic: Acc library (MSAA) and AccViewer download links
Replies: 31
Views: 39318

Re: Acc library (MSAA) and AccViewer download links

Parsing Acc tree objects upwards proved to be tricky ( tmplinshi 's Acc Viewer & serzh82saratov 's AhkSpy fail to yield correct path in some UI-s). So the idea is to parse downwards. Doing this got the idea of a new way for upward, but in the end wasn't any better then beforementioned. Issues: slowe...
by rommmcek
10 Feb 2021, 17:12
Forum: Scripts and Functions
Topic: SetClipboardHTML()
Replies: 10
Views: 886

Re: SetClipboardHTML()

That's why I proposed "Wait for Clipboard" before paste too, now redundant! Thanks to both of you!
by rommmcek
08 Feb 2021, 17:11
Forum: Scripts and Functions
Topic: Get Title and Url of the active browser tab
Replies: 27
Views: 958

Re: Get Title and Url of the active browser tab

Vivaldi does not support Accessibility by default, so you have to run it with a switch e.g. vivaldi.exe --force-renderer-accessibility

Go to advanced search