Search found 53 matches

by Lo4438
03 Jan 2024, 09:07
Forum: Ask for Help (v1)
Topic: How to keep some windows always at bottom?
Replies: 1
Views: 216

How to keep some windows always at bottom?

Here is always on top code.
F12:: Winset, Alwaysontop, , A


How the write the always at bottom?
Many thanks.
by Lo4438
13 May 2023, 22:03
Forum: Ask for Help (v2)
Topic: How can i remove the (,) Comma in the number? Topic is solved
Replies: 2
Views: 344

How can i remove the (,) Comma in the number? Topic is solved

V4 is 1,173

How can i remove the comma to number 1173 ?
:?
by Lo4438
13 May 2023, 20:41
Forum: Ask for Help (v2)
Topic: If Var is not EMPTY, how to write the correct code in V2? Topic is solved
Replies: 2
Views: 356

If Var is not EMPTY, how to write the correct code in V2? Topic is solved

In V1 i can use

If Var <> ""
{
Do something
}

How to use "" in Autohotkey v2?
by Lo4438
16 Apr 2023, 04:41
Forum: Ask for Help (v2)
Topic: Autohotkey V2 UIA problem, please help.
Replies: 11
Views: 862

Re: Autohotkey V2 UIA problem, please help.

Descolada
, thanks for your support.
I must open more one window, please see the attachment.
The windows AutomationId are same name("btnRetrieve"), so it looks like can't use the command.
Now i just use AHK V1, i want to switch to V2, i think V2 is better.
by Lo4438
15 Apr 2023, 02:52
Forum: Ask for Help (v2)
Topic: Autohotkey V2 UIA problem, please help.
Replies: 11
Views: 862

Re: Autohotkey V2 UIA problem, please help.

Descolada ,AutomationId did not work for the training software. Now i use control click, but the ahkid will change when i login the trading software. Here is code-----> ControlClick, x777 y124, ahk_id 0x604d0, , left, 1, NA ControlClick, x777 y194, ahk_id 0x604d0, , left, 1, NA ControlClick, x777 y...
by Lo4438
15 Apr 2023, 01:16
Forum: Ask for Help (v2)
Topic: Autohotkey V2 UIA problem, please help.
Replies: 11
Views: 862

Re: Autohotkey V2 UIA problem, please help.

Descolada
brother, could you write the runtimeID & hwnd correct codes to me, because I don't know how to write, many thanks.

Please see the attachment.
by Lo4438
14 Apr 2023, 13:44
Forum: Ask for Help (v2)
Topic: Autohotkey V2 UIA problem, please help.
Replies: 11
Views: 862

Re: Autohotkey V2 UIA problem, please help.

@Descolada, It's a Futures and options trading software.
I have to open multiple identical windows in the trading software, it is (same) libraries on Autohotkey, i want to use invoke or control click them at the same time.
by Lo4438
14 Apr 2023, 13:03
Forum: Ask for Help (v2)
Topic: Autohotkey V2 UIA problem, please help.
Replies: 11
Views: 862

Re: Autohotkey V2 UIA problem, please help.

Descolada
,same problem.
I use your new version (UIA) files.
When i press Start capturing, the window is getting highlighted, when i press the Test script error too.

Please help 😭
by Lo4438
14 Apr 2023, 12:14
Forum: Ask for Help (v2)
Topic: Autohotkey V2 UIA problem, please help.
Replies: 11
Views: 862

Re: Autohotkey V2 UIA problem, please help.

@Descolada, thank you for your help.
I will try to study your answer and test.
by Lo4438
14 Apr 2023, 11:38
Forum: Ask for Help (v2)
Topic: Autohotkey V2 UIA problem, please help.
Replies: 11
Views: 862

Autohotkey V2 UIA problem, please help.

https://github.com/Descolada/UIA-v2/tree/main/Lib

I try to use UIA test script (button) , i get an error message.

I just click the UIA Invoke(), the function work very well.

Who can write the correct codes, many thanks.
by Lo4438
08 Apr 2023, 09:49
Forum: Ask for Help (v1)
Topic: Where can i find the UIAUTOMATION functions and examples? Many thanks .
Replies: 2
Views: 205

Where can i find the UIAUTOMATION functions and examples? Many thanks .

Where can i find the UIAUTOMATION functions and examples? :roll:
by Lo4438
06 Apr 2023, 03:30
Forum: Ask for Help (v1)
Topic: Help with UIAUTOMATION to click Topic is solved
Replies: 3
Views: 263

Re: Help with UIAUTOMATION to click Topic is solved

Descolada, than you for your answer.

Could you please help to write the correct code @in Autohotkey v2?
by Lo4438
06 Apr 2023, 02:28
Forum: Ask for Help (v1)
Topic: Help with UIAUTOMATION to click Topic is solved
Replies: 3
Views: 263

Help with UIAUTOMATION to click Topic is solved

What's error of my code? #include UIA_Interface.ahk UIA := UIA_Interface() F1:: loop 10 { InvestGOEl := UIA.ElementFromHandle("北斗星 ahk_exe InvestGO.exe") InvestGOEl.ElementFromPath("QIJQ/0/6").Click("left") InvestGOEl.ElementFromPath("QIrJQ/0/6").Click("left") InvestGOEl.ElementFromPath("QItJQ/0/6")...
by Lo4438
03 Mar 2023, 11:48
Forum: Ask for Help (v1)
Topic: How to use loop read line frome text file?
Replies: 6
Views: 327

Re: How to use loop read line frome text file?

Code: Select all

F1::

Loop 
{
FileReadLine, a, C:\Users\user\OneDrive\Desktop\No.txt, %A_Index%
If ErrorLevel
	break

click, 200, 700
send, % a
}


return

F2::Pause
Sorry bro, i have one more question, if %A_index% is in the last line, how can I loop again but no need to press F1 again?
by Lo4438
03 Mar 2023, 10:22
Forum: Ask for Help (v1)
Topic: How to use loop read line frome text file?
Replies: 6
Views: 327

Re: How to use loop read line frome text file?

The script doesn't work :?

Code: Select all

i=0

^1::
Loop 
{
FileReadLine, line, C:\Users\user\OneDrive\Desktop\No.txt, ++i
Click, 70, 249
Send, , % line
	Sleep % 50
Send, {enter}
Sleep % 2000
}
return

^2::Pause
by Lo4438
03 Mar 2023, 09:51
Forum: Ask for Help (v1)
Topic: How to use loop read line frome text file?
Replies: 6
Views: 327

Re: How to use loop read line frome text file?

Here is a text
Please help me to write the correct code.
Thank you very much.
by Lo4438
03 Mar 2023, 04:43
Forum: Ask for Help (v1)
Topic: How to use loop read line frome text file?
Replies: 6
Views: 327

How to use loop read line frome text file?

Code: Select all

^5::



loop, read, C:\Users\user\Desktop\no.txt
{
   
    Loop, parse, A_LoopReadLine, %A_Tab%
    {
    Send, %A_LoopField%.
    Send, {enter}
    Send, {enter}
    }
}

return
Many thanks.

Go to advanced search