Search found 725 matches

by A_AhkUser
06 Feb 2018, 23:07
Forum: Ask For Help
Topic: GUI with +E0x08000000 DDL clicks through activating other HWND controls.
Replies: 4
Views: 97

Re: GUI with +E0x08000000 DDL clicks through activating other HWND controls.

Hi Arempi :wave: , Since it seems that MouseGetPos actually retrieves the hwnd to the picture behind the control, one tricky way could be to check whether or not the list is currently visible and that the mouse is actually over the control (using ControlGetPos instead) at the time you press LButton ...
by A_AhkUser
06 Feb 2018, 22:30
Forum: Ask For Help
Topic: unexpected return values using StrReplace as a BoundFunc object
Replies: 3
Views: 101

Re: unexpected return values using StrReplace as a BoundFunc object

Hi jeeswg , I haven't thought about wrapping the command into a wrapper to see if it concerns only built-in functions, thanks for tightening the problem;) I searched my txt copy of the documentation, and there weren't any examples of binding the func and calling it, in a one-liner. All of the exampl...
by A_AhkUser
06 Feb 2018, 20:52
Forum: Ask For Help
Topic: unexpected return values using StrReplace as a BoundFunc object
Replies: 3
Views: 101

unexpected return values using StrReplace as a BoundFunc object

I fail to understand why all these MsgBoxes don't show the same value respectively. Can someone shed a light on this? It seems to occur only if Needle does not appear in Haystack . #NoEnv #Warn #SingleInstance force ; Windows 8.1 64 bit ; Autohotkey v1.1.27.04/v1.1.27.07 32-bit Unicode ; encodage: u...
by A_AhkUser
05 Feb 2018, 22:33
Forum: Ask For Help
Topic: Including a Gui directly into a window?
Replies: 5
Views: 95

Re: Including a Gui directly into a window?

theimmersion wrote:So much about me thinking it would be more or less simple code.


I added some comments and references alongside the source. ;)
by A_AhkUser
05 Feb 2018, 22:16
Forum: Ask For Help
Topic: Return to Where?
Replies: 4
Views: 64

Re: Return to Where?

Hi ark , I think in this case return amounts to Exit , which terminates the current thread. I know if you call a subroutine with GoSub, the Return at the end of the subroutine will return you to the next line of code after the GoSub. Unless Exit is used instead of return precisely (sometimes it coul...
by A_AhkUser
05 Feb 2018, 21:45
Forum: Ask For Help
Topic: Including a Gui directly into a window?
Replies: 5
Views: 95

Re: Including a Gui directly into a window?

Try something like the following: ; Windows 8.1 64 bit - Autohotkey v1.1.27.04 32-bit Unicode #NoEnv SetBatchLines, -1 ; in order to make the window docking smoother SetWinDelay, -1 ; in order to make the window docking smoother global menuItems := [] ; an arry in which will be store all AHKID of me...
by A_AhkUser
05 Feb 2018, 16:38
Forum: Pedir Ayuda
Topic: copiar primeros dos caracteres (letras) de una linea Topic is solved
Replies: 6
Views: 122

Re: copiar primeros dos caracteres (letras) de una linea Topic is solved

Hola Daenerys, Puedes tambien utilizar funciones nativas . #NoEnv input := "- SI8787 dsajdklsajdklsajkldaskj" input := LTrim(input, "- ") ; remueve si procede los espacios y el guion desde la izquierda de la cadena de caracteres y pone al dia 'input' con la nueva cadena devuelta ...
by A_AhkUser
05 Feb 2018, 16:29
Forum: Pedir Ayuda
Topic: Conflicto con las teclas [Alt] [Ctrl] [Win] Topic is solved
Replies: 5
Views: 110

Re: Conflicto con las teclas [Alt] [Ctrl] [Win] Topic is solved

Hola beral235 , pero esto cumple una función importante ya que al reasignar el teclado completo se complica usar Ctrl+z, Ctrl+v, Ctrl+c, Ctrl+d... etc. En efecto, un remap implica que el hotkey dispara incluso cuando, al presionar, un modificador ( Ctrl , Shift etc. ) esta mantenido apretado de mane...
by A_AhkUser
05 Feb 2018, 16:17
Forum: Pedir Ayuda
Topic: Manejo de ventanas emergentes ayuda!!!
Replies: 1
Views: 73

Re: Manejo de ventanas emergentes ayuda!!!

Hola Doke , El script básicamente es para realizar un ajuste de datos sobre un programa, el problema es el siguiente... Lo mas simplemente posible y utilizando unicamente lo que ahk propone de manera nativa (ejemplo con la bloca de notas): #Persistent SetTimer, monitoreo, -1 return ; fin de la parte...
by A_AhkUser
05 Feb 2018, 15:37
Forum: Ask For Help
Topic: Image Following mouse
Replies: 9
Views: 136

Re: Image Following mouse

This also can be done using a combination of geometric shapes sufficiently significant: #NoEnv blackSquare := Chr(9632), whiteSquare := Chr(9633) LButton := blackSquare . whiteSquare . whiteSquare MButton := whiteSquare . blackSquare . blackSquare RButton := whiteSquare . whiteSquare . blackSquare D...
by A_AhkUser
04 Feb 2018, 12:37
Forum: Ask For Help
Topic: objects: enumerator object queries
Replies: 7
Views: 148

Re: objects: enumerator object queries

Hi jeeswg , - I have one basic query here, why don't the 'doesn't work' lines work? ._NewEnum() retrurns an enumerator object; ["a","b","c"] is an array, while ["a", "b", "c"]._NewEnum() or ObjNewEnum(this) is actual...
by A_AhkUser
03 Feb 2018, 23:12
Forum: Ask For Help
Topic: problem with script
Replies: 1
Views: 28

Re: problem with script

Hi Natqo , Try this: #SingleInstance force #NoEnv #Warn ; Windows 8.1 64 bit - Autohotkey v1.1.27.04 32-bit Unicode isChecked := false Gui, Add, CheckBox, Checked%isChecked% w100 h30 visChecked glabel, test Gui, Show, AutoSize return label: Gui, Submit, NoHide return #If isChecked ; create a context...
by A_AhkUser
01 Feb 2018, 18:31
Forum: Ask For Help
Topic: FGP (FileGetProperties) returning 0 when trying to get page count for PDF files
Replies: 20
Views: 272

Re: FGP (FileGetProperties) returning 0 when trying to get page count for PDF files

Assuming Foxit Reader is installed on the target computer here's the hacky hacky way that occurs to me to retrieve the page count of pdf files - the more surprising is that it seems to work :o #NoEnv #SingleInstance force SetWorkingDir % A_ScriptDir SendMode, Input CoordMode, ToolTip, Screen #Warn ;...
by A_AhkUser
01 Feb 2018, 16:45
Forum: Ask For Help
Topic: Extract table element from a page
Replies: 2
Views: 79

Re: Extract table element from a page

Hi sqlcode , Try the following: #NoEnv HTML = (Ltrim Join <!DOCTYPE html> <html> <head> <meta http-equiv='X-UA-Compatible' content='IE=edge'><meta charset='utf-8' /> <title>HTMLFile</title> </head> <body> <div class='row' id='DtlId'> <div class='col-md-12' style='-ms-overflow-x: auto;'> <table class...
by A_AhkUser
01 Feb 2018, 12:05
Forum: Offtopic
Topic: « What's on your mind? » Topic is solved
Replies: 3737
Views: 396521

Re: « What's on your mind? » Topic is solved

Micrographia - Wikipedia https://en.wikipedia.org/wiki/Micrographia It reminds me an idea we discussed about in class (Cultures visuelles: aspects historiques et anthroplogiques) - one could illustrate it like this: Sans titre.png The grey is the invisible - the visible range is in blue = 0.0000000...
by A_AhkUser
01 Feb 2018, 11:36
Forum: AutoHotkey v2 Development
Topic: objects: backport AHK v2 Gui/Menu classes to AHK v1
Replies: 19
Views: 312

Re: objects: backport AHK v2 Gui/Menu classes to AHK v1

GUI: AFC ( fincs ) CGui ( evilC ) Hopefully I found and started most part of my own redist classes not starting from scratch but using run1e 's ones instead. There are accessible for eternal beginners like me who, resolutely, don't want to go into detail (but yearning for sufficiently safe a efficie...
by A_AhkUser
30 Jan 2018, 18:54
Forum: Ask For Help
Topic: Best coding practices with modular AHK scripts
Replies: 5
Views: 170

Re: Best coding practices with modular AHK scripts

Hi tempuser , Because in many #included modules I have e.g. SetTimer and defining at least one hotkey, so after #including first module if any hotkey is defined then any top code (auto-execute section) in other modules are ignored. Here's for example a workaround: main.ahk #NoEnv #SingleInstance for...
by A_AhkUser
30 Jan 2018, 18:15
Forum: Ask For Help
Topic: GuiControl + Edit
Replies: 4
Views: 79

Re: GuiControl + Edit

Hi nnnik , The following works for me: #NoEnv #SingleInstance force SetWorkingDir % A_ScriptDir SendMode, Input CoordMode, ToolTip, Screen #Warn ; Windows 8.1 64 bit - Autohotkey v1.1.27.04 32-bit Unicode index0 := 0 index1 := 0 index2 := 0 GUI, 1:New Gui, Add, Text, , using SetTimer GUI, Add, Edit,...
by A_AhkUser
30 Jan 2018, 17:00
Forum: Ask For Help
Topic: AHK GUI - Only Display over one application.
Replies: 1
Views: 42

Re: AHK GUI - Only Display over one application.

Hi opc121177 , You can for example make the GUI [url=https://www.autohotkey.com/docs/commands/Gui.htm#Options#Owner]owned[/url] by another window by specifying +Owner%ID% (where ID is a variable containing the hWnd (ID) of a window) immediately after the GUI command as an option. Here's an example w...
by A_AhkUser
30 Jan 2018, 15:19
Forum: Ask For Help
Topic: Simple ActiveX WB event listener question
Replies: 3
Views: 58

Re: Simple ActiveX WB event listener question

If you don't want to connect the object's event target using ComObjConnect and despite this use this source in the body of your function it is necessary to explicitly bind it - for this use a bound func object instead. You should use ComObjConnect instead. #NoEnv #SingleInstance force SetWorkingDir ...

Go to advanced search