Search found 1147 matches

by A_AhkUser
22 Aug 2020, 12:36
Forum: Ask for Help (v1)
Topic: GuiControl,(Blank) is not updating Text control with new Value Topic is solved
Replies: 2
Views: 546

Re: GuiControl,(Blank) is not updating Text control with new Value Topic is solved

Hi Joe, Although the new window is set as the default for the current thread, non-GUI threads still default to GUI number 1. (...) If the GUI has no name and is not the default GUI, it must be identified by its HWND. source Gui,1:New,AlwaysOnTop,Test Gui,Add,Text,vCurrentTime,%A_Now% Gui,Show,w200 S...
by A_AhkUser
20 Aug 2020, 17:32
Forum: Ask for Help (v1)
Topic: Find Process Add Picture
Replies: 2
Views: 282

Re: Find Process Add Picture

Hi, I've you tried something Epialis ? If so, what is not working, where you get stuck specifically ? Have you already some code, albeit a pseudo-code? :) How about a way to click on add.... it opens up a window for you to search a process, or exe... click on the file.... click add and it adds the l...
by A_AhkUser
19 Aug 2020, 14:31
Forum: Ask for Help (v1)
Topic: Showing a ToolTip when Mouse over on item of ListBox Topic is solved
Replies: 6
Views: 751

Re: Showing a ToolTip when Mouse over on item of ListBox Topic is solved

Here's my attempt base on kczx3 's suggestion and using LBEX_ItemFromCursor and some functions of the LBEX library all by just me : #NoEnv #Warn SendMode Input SetWorkingDir %A_ScriptDir% #SingleInstance force delimiter := "`n" list= (join%delimiter% Lorem ipsum dolor sit amet, consetetur Lorem ipsu...
by A_AhkUser
19 Aug 2020, 06:12
Forum: Ask for Help (v1)
Topic: cannot detect elements of IE by class
Replies: 10
Views: 2055

Re: cannot detect elements of IE by class

Hola SirZoX, I did not notice you give two replies the last time; I've only see the last one, where you quoted me.. (in my defence, it occupies the entire screen so it hid me the previous one) I should have mentionned that not every HTML elements have a value property. You should try instead either ...
by A_AhkUser
18 Aug 2020, 17:51
Forum: Ask for Help (v1)
Topic: Button Add Image Topic is solved
Replies: 2
Views: 242

Re: Button Add Image Topic is solved

Here a sample example (using an html document): #NoEnv #Warn SendMode Input SetWorkingDir %A_ScriptDir% #SingleInstance force html = ( <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge" charset="utf-8"> <title>title</title> <style> #test { display: flex; fl...
by A_AhkUser
18 Aug 2020, 17:39
Forum: Ask for Help (v1)
Topic: Creating New GUI's Topic is solved
Replies: 3
Views: 198

Re: Creating New GUI's Topic is solved

Hi Epialis This should help you start: #NoEnv #Warn SendMode Input SetWorkingDir %A_ScriptDir% #SingleInstance force GUI, 2:New GUI, 1:New ; https://www.autohotkey.com/docs/commands/GuiControls.htm#Edit editOptions := "Number Limit4" ; https://www.autohotkey.com/docs/commands/GuiControls.htm#Edit_Op...
by A_AhkUser
18 Aug 2020, 17:17
Forum: Ask for Help (v1)
Topic: cannot detect elements of IE by class
Replies: 10
Views: 2055

Re: cannot detect elements of IE by class

Tried with "length" and "value" without parenthesis, but still dont work :( Hola, In this case, it is likely that web_browser variable is empty or is not a instance of Windows Internet Explorer. Btw, how are you creating/retrieving your instance of the web browser? Is it using ComObjCreate("Interne...
by A_AhkUser
17 Aug 2020, 15:38
Forum: Scripts and Functions (v1)
Topic: LBEX - some functions for ListBoxes
Replies: 23
Views: 23482

Re: LBEX - some functions for ListBoxes

Hi just me , This set of functions proved to be a a reliable work when using listbox in projects; this is a great work that helped me a lot. I have one question though, a doubt regarding the LBEX_GetTopIndex function: LBEX_GetTopIndex(HLB, Index) { Static LB_GETTOPINDEX := 0x018E SendMessage, % LB_G...
by A_AhkUser
16 Aug 2020, 13:07
Forum: Pedir Ayuda
Topic: Encontrar un texto en una página web y hacer click sobre el
Replies: 2
Views: 2514

Re: Encontrar un texto en una página web y hacer click sobre el

Hola SirZoX, Algunas sugerencias además de algunos vínculos para que pueda aprovechar de la mejor manera posible el Internet Explorer objeto y javascript: #NoEnv #Warn SendMode Input *SetWorkingDir %A_ScriptDir% #SingleInstance force ; DEFINIR VARIABLES ;--------------------------------------------...
by A_AhkUser
16 Aug 2020, 12:57
Forum: Ask for Help (v1)
Topic: cannot detect elements of IE by class
Replies: 10
Views: 2055

Re: cannot detect elements of IE by class

Hola amigo, I'm trying to get all elements from the DOM of IE which have a certain class. :arrow: HTML DOM getElementsByClassName() Method Elements := {} Elements := web_browser.document.getElementsByTagName("span") nItems := Elements.length() MsgBox, items = %nItems% | elements = %Elements% Your fi...
by A_AhkUser
15 Aug 2020, 08:51
Forum: Ask for Help (v1)
Topic: check if string contains special unicode charset function
Replies: 2
Views: 969

Re: check if string contains special unicode charset function

Do any of you know of any good functions that can do this? maybe the built-in RegExMatch :?: - example for Cyrillics: ; https://unicode-table.com/en/blocks/cyrillic/ KomiDe := Chr(1280) ; Cyrillic Capital Letter Komi De (https://unicode-table.com/en/blocks/cyrillic-supplement/) strings := ["привет ...
by A_AhkUser
15 Aug 2020, 08:40
Forum: Ask for Help (v1)
Topic: Groupadd in a loop only add the last window Topic is solved
Replies: 4
Views: 1922

Re: Groupadd in a loop only add the last window Topic is solved

The following should also work (not tested):

Code: Select all

; ...
Loop, Parse, GroupList, |, %A_Space%%A_Tab%
{
	; ...
}
; ...
AhkUser
by A_AhkUser
15 Aug 2020, 08:36
Forum: Ask for Help (v1)
Topic: Unable to refresh in background Topic is solved
Replies: 2
Views: 1332

Re: Unable to refresh in background Topic is solved

Hi Epialis , If you're looking at the other page or writing the email from another browser ( e.g. firefox) something like the following might work as a possible solution: #NoEnv ; #Warn SendMode Input SetWorkingDir %A_ScriptDir% #SingleInstance force ; note: requires acc.ahk (https://github.com/Drug...
by A_AhkUser
14 Aug 2020, 13:53
Forum: Ask for Help (v1)
Topic: Help with Opening the about: links used specifically for Firefox from File explorer?
Replies: 2
Views: 1319

Re: Help with Opening the about: links used specifically for Firefox from File explorer?

HI Netmano , Hi gregster :wave: , As already pointed out, a specific option can be used to specify one or more startup urls when running Firefox from the command line . On another note, FileCreateShortcut allows you to programmatically create shortcut (.lnk) files: ff := "C:\Program Files (x86)\Mozi...
by A_AhkUser
12 Aug 2020, 17:14
Forum: Ask for Help (v1)
Topic: Import Variables from file Topic is solved
Replies: 4
Views: 1596

Re: Import Variables from file Topic is solved

Both the Ini and JSON data-interchange formats have an advantage that can be significant; data can be layered. Here's a another possible solution for a non-hierarchical list a key-values pairs (cf. convert list to simple array ): file := FileOpen(A_Desktop . "\testing.txt", 4, "UTF-8") ; 4 (0x4) rep...
by A_AhkUser
12 Aug 2020, 06:04
Forum: Ask for Help (v1)
Topic: can't change semi transparency
Replies: 1
Views: 786

Re: can't change semi transparency

Hi deontopolis, my code for a window look like this: As I see it, the problem has to do with the fact that the GUI window has no been yet shown or is not currently visible. You have at least two options to operate upon the hidden GUI window: Gui, +HwndGuiHwnd +AlwaysOnTop +LastFound ; ... WinSet, Tr...
by A_AhkUser
11 Aug 2020, 17:40
Forum: Ask for Help (v1)
Topic: Stringreplace function
Replies: 5
Views: 2206

Re: Stringreplace function

Thank you A_AhkUser that was good information :) i'm glad that was helpful :D (...) Normally yes, but in this case I had to include the ':=' because it is required EasyINI syntax for write to inis. I would agree without reservation for the last example but, unless I'm missing something, I am more d...
by A_AhkUser
11 Aug 2020, 16:09
Forum: Ask for Help (v1)
Topic: Stringreplace function
Replies: 5
Views: 2206

Re: Stringreplace function

hi majstang, I tried it in an another way but its hard executing functions inside in expressions. string := "test" returnValueIfFalse := "It is false!" MsgBox % var := (string = "") ? "never executed..." : (returnValueIfFalse, stuffIfFalse()) ; the left most expression in the winning branch will be ...
by A_AhkUser
05 Aug 2020, 19:08
Forum: Ask for Help (v1)
Topic: trigger listbox via enter and doubleclick Topic is solved
Replies: 6
Views: 3627

Re: trigger listbox via enter and doubleclick Topic is solved

Hi, I might mention that, in future cases where you will have more than one focus-capable control in your GUI, you can take advantage of GuiControlGet or of the following (cryptic admittedly): ; ... #If (DllCall("User32.dll\GetFocus", "Ptr") = hListBox) ; hListBox should contains the hwnd of your li...
by A_AhkUser
05 Aug 2020, 18:35
Forum: Ask for Help (v1)
Topic: Is there any easy method to randomise an array
Replies: 7
Views: 4764

Re: Is there any easy method to randomise an array

teadrinker Your answer is, as always, great and - unlike mine - as closely as possible to the question : "Is there any easy method to randomise an array?" : your function is maybe one of the most transparent way to achieve this. Nevertheless, I think it is preferable in this case to handle a list b...

Go to advanced search