Search found 38 matches

by pgeugene
Yesterday, 03:23
Forum: Ask for Help (v1)
Topic: gosub to label not working Topic is solved
Replies: 4
Views: 517

Re: gosub to label not working Topic is solved

I got it working with

Code: Select all

^F8::goto, Label_DrawGui_KyRun
by pgeugene
21 May 2024, 01:39
Forum: Ask for Help (v1)
Topic: gosub to label not working Topic is solved
Replies: 4
Views: 517

Re: gosub to label not working Topic is solved

I don't know about the rest of your script, but maybe try... ^F8:: gosub, Label_DrawGui_KyRun Tried your method but not working. Assuming you didn't forget to add the sub... (I personally do that a lot) Label_DrawGui_KyRun: Confirmed it is added Below is some of the code hotkey, ^/, Label_DrawGui_K...
by pgeugene
20 May 2024, 04:15
Forum: Ask for Help (v1)
Topic: gosub to label not working Topic is solved
Replies: 4
Views: 517

gosub to label not working Topic is solved

I am trying to modify the way the GUI is opened but no Gui is opened.
Thank you for your help

From:

Code: Select all

hotkey,^',Label_DrawGui_KyRun
To:

Code: Select all

^F8::gosub, Label_DrawGui_KyRun
Source:
https://gitee.com/kawvin/kyrun/blob/master/KyRun.ahk
by pgeugene
17 May 2024, 03:41
Forum: 请求帮助
Topic: 中文内容的文件是乱码
Replies: 1
Views: 164

中文内容的文件是乱码

我的中文不是很好
我从以下网站下载了AHK文件。其中两个文件的各式是CSV.内容是中文的。
问题是下载后我用MS-Office Excel 打开那两个文件,但是内容都是乱码。
请问应该怎样解决这个难题?

网站地址:
https://github.com/acc8226/jiejian/blob/main/data.csv
https://github.com/acc8226/jiejian/blob/main/app.csv
by pgeugene
08 May 2024, 06:00
Forum: Ask for Help (v2)
Topic: How to send website URL to clipboard besides showing a Msgbox
Replies: 3
Views: 257

How to send website URL to clipboard besides showing a Msgbox

Below is the script which capture website url and shows its result using Msgbox after pressing hotkey (!c) However what I want is to send the result to clipboard. Below is my attempt to send the result to clipboard but failed. Thank you for your help. !c:: {Msgbox GetUrl() url := GetUrl() A_Clipboar...
by pgeugene
25 Apr 2024, 03:19
Forum: Ask for Help (v2)
Topic: How to link action to Gui button
Replies: 1
Views: 122

How to link action to Gui button

I tried to configure the button to link to my program with below commands but not working. Btn11 := MyGui.AddButton("xm ym w80 h24", "Info").OnEvent("Click", ButtonClick) CreateImageButton(Btn11, 0, IBStyles["info"]*) ButtonClick(*) { Run (notepad) } Source code https://www.autohotkey.com/boards/vie...
by pgeugene
25 Apr 2024, 01:17
Forum: Ask for Help (v1)
Topic: Keyboard Gui showing strange symptom
Replies: 0
Views: 265

Keyboard Gui showing strange symptom

The Gui was working properly But it is showing strange symptom now. After triggered the keyboard and press the relevant key, it will trigger the action I assigned I removed both Ahk V2 and V1 and reinstalled both versions again But same problem I did not make any changes to the script. Below are com...
by pgeugene
24 Apr 2024, 00:37
Forum: Scripts and Functions (v2)
Topic: CreateImageButton() - 2024-01-01
Replies: 50
Views: 13249

Re: CreateImageButton() - 2024-01-01

I new to AHK
How to link the buttons to action ?
I tried below command but not working.
Thank you

Code: Select all

Btn11 := MyGui.AddButton("xm ym w80 h24", "Info").OnEvent("Click", ButtonClick)
by pgeugene
19 Apr 2024, 05:50
Forum: Ask for Help (v2)
Topic: Msgbox syntax help
Replies: 1
Views: 82

Msgbox syntax help

Code: Select all

MsgBox("'A_ScriptName' 'updated'", "Notice", "T1")
I am trying to use A_ScriptName variable in Msgbox to show the script name as text
But below is the wrong result
image.png
(4.04 KiB) Downloaded 42 times
by pgeugene
16 Apr 2024, 03:39
Forum: Scripts and Functions (v2)
Topic: ApplicationSwitcher for v2
Replies: 6
Views: 964

Re: ApplicationSwitcher for v2

vysmaty wrote:
14 Apr 2024, 07:47
And when I'm not such a newbie here, and I will be able to edit a post here, I'll rename "Hotkey" for individual applications to "Key" so that it's not so misleading. And I will update the script.
Thank you for your clarification.
I am able to use the script now
by pgeugene
14 Apr 2024, 02:32
Forum: Scripts and Functions (v2)
Topic: ApplicationSwitcher for v2
Replies: 6
Views: 964

Re: ApplicationSwitcher for v2

I tried your script but it is totally not working Below is what I tried for Notepad and VSCode.But both are not working at all I opened Notepad and switch to other program.Then I pressed Hotkey(^9) but nothing happened app.Push( Map( "Hotkey", "^9", ; <- Set ME "Name", "Notepad", "EXE", "C:\Windows\...
by pgeugene
09 Apr 2024, 02:26
Forum: Ask for Help (v1)
Topic: How to modify so that I can insert multi lines strings Topic is solved
Replies: 2
Views: 83

How to modify so that I can insert multi lines strings Topic is solved

Below is the script After pressing the hotkey {^;} , a menu pop up so that I can select the items using Up|Down keys and hit {Enter} which will paste the selected string into my Text Editor Currently all strings are in single line. I have tried to make it into multi lines strings by using "Hello, Ho...
by pgeugene
21 Feb 2024, 01:23
Forum: Scripts and Functions (v2)
Topic: [V2] Tooltip2 to follow mouse with timeout
Replies: 12
Views: 2499

Re: [V2] Tooltip2 to follow mouse with timeout

I am not very good about AHK Can you provide an example about how to use your tooltip function ? Hi @pgeugene, open a text file, copy the below code, save it as test.ahk and run it #Requires AutoHotkey >=v2.0 ShowToolTipForTime(TTtext, timeOut:=3000, TTnumber:=2, posX:="", posY:="") { if IsInteger(...
by pgeugene
20 Feb 2024, 01:30
Forum: Ask for Help (v2)
Topic: Newly converted script not working
Replies: 9
Views: 314

Re: Newly converted script not working

I don't use VSCode. Perhaps the script needs admin rights? Try: #Requires AutoHotkey v2.0 #SingleInstance Force if !(A_IsAdmin or RegExMatch(DllCall("GetCommandLine", "str"), " /restart(?!\S)")) try A_IsCompiled?Run('*RunAs "' A_ScriptFullPath '" /restart') :Run('*RunAs "' A_AhkPath '" /restart "' ...
by pgeugene
19 Feb 2024, 03:19
Forum: Ask for Help (v2)
Topic: Newly converted script not working
Replies: 9
Views: 314

Re: Newly converted script not working

Hallo, (untested), try: #Requires AutoHotkey v2.0 Global WinTag := winTitlePart := "" +!c:: ; alt+shift+c to copy to the selected window { ; V1toV2: Added bracket Global If !WinTag { MsgBox("You pressed the combination of CopyToApp. First, tag a target window in NotePad , WordPad or a GUI edit fiel...
by pgeugene
19 Feb 2024, 02:58
Forum: Ask for Help (v2)
Topic: Newly converted script not working
Replies: 9
Views: 314

Re: Newly converted script not working

niCode wrote:
17 Feb 2024, 05:03
[Mod edit: Removed very long quote contents. Please use quotes more selectively.]

Thank you for your lengthy explaination.I have benefitted from it.My knowledge about AHK variable has improved a lot
by pgeugene
18 Feb 2024, 06:10
Forum: Ask for Help (v2)
Topic: Newly converted script not working
Replies: 9
Views: 314

Re: Newly converted script not working

Hi,
Thank you for your solution.
It is working properly on Notepad, Text Editor Pro, Notepad++
Unfortunately it is not working on VSCode portable version..It was totally blank content
There was no text being pasted when I tried with VSCode
by pgeugene
17 Feb 2024, 05:30
Forum: Scripts and Functions (v2)
Topic: [V2] Tooltip2 to follow mouse with timeout
Replies: 12
Views: 2499

Re: [V2] Tooltip2 to follow mouse with timeout

@AHK_user and @NPerovic Thank you both for this beautiful function. Works nicely and found it's way to my standard library, too. Before finding this thread, i have created a function that does not follow the mouse cursor, but just shows the tooltip for a given time, without blocking execution of th...
by pgeugene
17 Feb 2024, 03:11
Forum: Ask for Help (v2)
Topic: Newly converted script not working
Replies: 9
Views: 314

Re: Newly converted script not working

Hello, Hotkeys are now functions in AHK v2. As with v1, variables in functions are local to the function, by default. See v2 documentation about variable scope. In v2, a variable must be defined before it is accessed. Assigning a global variable inside a function requires declaring the variable as ...

Go to advanced search