Search found 44 matches

by teosc
31 May 2020, 14:30
Forum: Ask For Help
Topic: Loop ID%A_Index%, how to restart in case of changes?
Replies: 5
Views: 515

Re: Loop ID%A_Index%, how to restart in case of changes?

Okay I had no way of testing it really. I'm not all that familiar with window groups either. Could you send me the full code. It looks really cool! I'll figure it out. I'm sure it's something easy For now I am having the "reload" approach but it is clearly a cheat: #NoEnv #SingleInstance Force #NoT...
by teosc
31 May 2020, 14:11
Forum: Ask For Help
Topic: Loop ID%A_Index%, how to restart in case of changes?
Replies: 5
Views: 515

Re: Loop ID%A_Index%, how to restart in case of changes?

Does this work for ya? Hi littlegandhi1199, thank you. It works until I close or open new group's windows, from then on overwriting multiple titles in the same position. In addition, each new group's window opened, sets all previous titles as title design, draws the titles one above the other. :( h...
by teosc
30 May 2020, 13:13
Forum: Ask For Help
Topic: Align Button Label
Replies: 2
Views: 143

Re: Align Button Label

It works, thanks ;)
by teosc
30 May 2020, 08:51
Forum: Ask For Help
Topic: Align Button Label
Replies: 2
Views: 143

Align Button Label

Hi guys, help me please.

How do I align the labels of the various buttons?

I tried to add "+left" but bring the text too far left, at the beginning of the button.
I'd like something like "left + 10":

Image
by teosc
20 May 2020, 13:30
Forum: Ask For Help
Topic: Loop ID%A_Index%, how to restart in case of changes?
Replies: 5
Views: 515

Loop ID%A_Index%, how to restart in case of changes?

Hi guys, I need your help. I would like to draw some text on the windows that are of a certain group. GroupAdd, CLASSE, ahk_class .... WinGet, ID, List , ahk_group CLASSE Loop %ID% { this_id := ID%A_Index% WinGetTitle, this_title, ahk_id %this_id% WinGetPos, X, Y,,, %this_title% Gui, ID%A_Index%:+to...
by teosc
21 Nov 2019, 10:06
Forum: Scripts and Functions
Topic: Vis2 - Image to Text OCR()
Replies: 250
Views: 73239

Re: Vis2 - Image to Text OCR()

I think I found a bug. I have dual screen, main 1080p and secondary 2160p. The OCR function ([x, y, w, h]) does not accept negative variables. Example: clipboard := OCR ([3385, -235, 165, 20]) It returns the error: "Could not find source image" It would also suffice to be able to set the coordmode t...
by teosc
12 Feb 2018, 13:44
Forum: Ask For Help
Topic: ImageWait function ... how it works and how to call?
Replies: 9
Views: 1942

Re: ImageWait function ... how it works and how to call?

Now with imagesearch in a loop, despite the inclusion of a sleep, I have a cpu commitment of 3-4%.

According to you with the approach of imagewait the consumption of resources improves?
by teosc
12 Feb 2018, 09:23
Forum: Ask For Help
Topic: ImageWait function ... how it works and how to call?
Replies: 9
Views: 1942

Re: ImageWait function ... how it works and how to call?

Please post the function. It should be easy to figure out. The function was posted here, but the link does not seem to be reachable anymore: https://autohotkey.com/board/topic/14591-pixelcolorwait the only other material I found is the following but in no thread is there the function file: https://...
by teosc
12 Feb 2018, 05:12
Forum: Ask For Help
Topic: ImageWait function ... how it works and how to call?
Replies: 9
Views: 1942

ImageWait function ... how it works and how to call?

Hi guys, I would like to edit my script containing imagesearch in a loop with the imagewait function. I know that the user "JSLover" wrote years ago the ImageWait function but I find very little documentation and I do not know how to recall it in my script since it is not included in ahk. The variou...
by teosc
07 Feb 2018, 17:26
Forum: Ask For Help
Topic: LButton hook in Input
Replies: 2
Views: 507

LButton hook in Input

Hi guys, I need a hand, I did several tests without results. I would like "Input" to intercept LButton but I know it can not, and for other reasons I can not even set LButton as a hotkey or variable. .. I thought then to use OnMessage (0x201, "func") to send a key that can intercept but something wr...
by teosc
06 Feb 2018, 05:14
Forum: Ask For Help
Topic: Gui Toggle Hide/Show - Error
Replies: 4
Views: 944

Re: Gui Toggle Hide/Show - Error

I'm trying to insert a toggle show/hide in a gui hooked to a window with the settimer but I'm wrong somewhere. It seems that the settimer prevents the guicontrol ... is it possible? My script: GUIx = 742 GUIy = 138 GUIw = 132 GUIh = 38 Color = 000000 SetTimer, Nascondi, 5000 Gui, Oscura:-Caption +To...
by teosc
03 Feb 2018, 17:15
Forum: Ask For Help
Topic: "KeyWait" - press key valid only if ...
Replies: 3
Views: 859

Re: "KeyWait" - press key valid only if ...

Try something like this: .... Thanks osprey for the answer. Your approach unfortunately does not work. For the control K press valid only with mouse on window %light%, I just tried to replace the section: Ifwinactive, %light% { with: MouseGetPos ,,, mousehwnd if (mousehwnd = WinExist ("light")) { ....
by teosc
03 Feb 2018, 11:16
Forum: Ask For Help
Topic: "KeyWait" - press key valid only if ...
Replies: 3
Views: 859

"KeyWait" - press key valid only if ...

I have a loop routine with a "IF" subruotine already inside I've been shaking my head for 2 days without results, ask: Is it possible in any way to specify that the KeyWait must be valid only if the mouse is over a certain window %var%? my script, I would like to limit the K press valid only with mo...
by teosc
02 Feb 2018, 17:00
Forum: Ask For Help
Topic: Gui Toggle Hide/Show - Error
Replies: 4
Views: 944

Re: Gui Toggle Hide/Show - Error

working
thank you so much
by teosc
02 Feb 2018, 16:27
Forum: Ask For Help
Topic: Gui Toggle Hide/Show - Error
Replies: 4
Views: 944

Gui Toggle Hide/Show - Error

Hi guys, I wrote this script: GUI, RNG:+ToolWindow Gui, RNG:font, s50, Verdana Gui, RNG:margin, 5, 10 GUI, RNG:Add, Text, w150 h70 cSilver Center vrNum GUI, RNG:Show, Autosize, Random Number again: random, n, 1, 100 GUIControl, RNG:, rNum, %n% Sleep 10000 goto, again return RNGGuiClose: ExitApp ^esc...
by teosc
13 Jan 2018, 06:08
Forum: Ask For Help
Topic: Gui on Active Window without SetTimer, wait command, multiple Gui possible
Replies: 0
Views: 328

Gui on Active Window without SetTimer, wait command, multiple Gui possible

Hi guys, I need your help. I have the following script that highlights the active window (I will use notepad class for the example): SetTimer, DrawRect, 50 border_thickness = 20 border_color = FFFF00 GroupAdd, XXX, ahk_class Notepad DrawRect: MouseGetPos,,, mousehwnd if (mousehwnd = WinExist("A")) {...
by teosc
11 Jan 2018, 11:46
Forum: Ask For Help
Topic: ifwinactive ahk_group XXX ... "and if mouse is on active window". How can I add?
Replies: 10
Views: 1833

Re: ifwinactive ahk_group XXX ... "and if mouse is on active window". How can I add?

After a long time I came to this: SetControlDelay, -1 GroupAdd, XXX, ahk_class Notepad CoordMode, Mouse, Relative Delete:: MouseGetPos,,, mousehwnd If WinExist("ahk_group XXX ahk_id " mousehwnd) { ControlClick, x82 y61, Ahk_id %mousehwnd%,, Left, 1, NA return } If !WinExist("ahk_group XXX ahk_id " m...
by teosc
09 Jan 2018, 03:58
Forum: Ask For Help
Topic: ifwinactive ahk_group XXX ... "and if mouse is on active window". How can I add?
Replies: 10
Views: 1833

Re: ifwinactive ahk_group XXX ... "and if mouse is on active window". How can I add?

Change return WinExist(WinTitle " ahk_id " Win) to return WinExist(WinTitle)=WinExist("ahk_id " Win) . Does not work, in the example I use notepad class: GroupAdd "XXX", "ahk_class Notepad" CoordMode "Mouse", "Relative" Delete:: MouseGetPos ,, mousehwnd If MouseIsOver("ahk_group XXX") Return SetCon...
by teosc
08 Jan 2018, 17:08
Forum: Ask For Help
Topic: ifwinactive ahk_group XXX ... "and if mouse is on active window". How can I add?
Replies: 10
Views: 1833

Re: ifwinactive ahk_group XXX ... "and if mouse is on active window". How can I add?

#if , see my example. Or... Thank you so much for the hotkeyit help. This last example works. 1. If I want to extend the controlclick even on non-active windows (but in any case of the XXX group) what is the way to go? 2. To return the classic function of delete in windows not XXX group? Many many ...
by teosc
08 Jan 2018, 06:52
Forum: Ask For Help
Topic: ifwinactive ahk_group XXX ... "and if mouse is on active window". How can I add?
Replies: 10
Views: 1833

Re: ifwinactive ahk_group XXX ... "and if mouse is on active window". How can I add?

I tried this without result:

Code: Select all

GroupAdd, XXX, Prova

CoordMode, Mouse, Relative

MouseGetPos,,, mousehwnd
if (mousehwnd = WinExist("ahk_group Prova")) {
Delete::
SetControlDelay -1
ControlClick, x82 y61, Ahk_id %mousehwnd%,, Left, 1, NA
Return
}

Go to advanced search