Search found 113 matches

by woshichuanqilz72
23 May 2019, 23:00
Forum: Ask For Help
Topic: Can I make any exe to tray instead of taskbar?
Replies: 1
Views: 214

Can I make any exe to tray instead of taskbar?

As the title said I need to open so many exe, which make my taskbar packed. So Is there a way to make any program to the tray ?
by woshichuanqilz72
16 Feb 2019, 21:04
Forum: Ask For Help
Topic: how to simulate the key send as the ahk L do in cpp? Topic is solved
Replies: 9
Views: 748

Re: how to simulate the key send as the ahk L do in cpp? Topic is solved

Use AhkGetVar to retrieve the variable value from the script https://hotkeyit.github.io/v2/docs/commands/ahkgetvar.htm sorry to asking you so many questions but these things really tough to get through google. One more question, how to make two ahk stament in a dll call. For example : CoordMode mou...
by woshichuanqilz72
15 Feb 2019, 09:22
Forum: Ask For Help
Topic: how to simulate the key send as the ahk L do in cpp? Topic is solved
Replies: 9
Views: 748

Re: how to simulate the key send as the ahk L do in cpp? Topic is solved

evilC wrote:
14 Feb 2019, 05:10
If all you want to do is send keys, then v1 or v2 will make no real difference I don't think.
Hi ~
what should I do if I want to use the wingetpos function, how to get the outputvar?

Any tutorial on it?
by woshichuanqilz72
14 Feb 2019, 03:40
Forum: Ask For Help
Topic: how to simulate the key send as the ahk L do in cpp? Topic is solved
Replies: 9
Views: 748

Re: how to simulate the key send as the ahk L do in cpp? Topic is solved

ahkExec("Msgbox AHK"); Msgbox AHK string literals need to be quoted in v2. AHK refers to an empty variable in this context, hence the empty msgbox. wrap it in quotes or download the v1.dll if u wanna keep writing it that way tnx my bro, the code worked. ahkExec(TEXT("Msgbox \"AHK\"")); //execute a ...
by woshichuanqilz72
14 Feb 2019, 01:33
Forum: Ask For Help
Topic: how to simulate the key send as the ahk L do in cpp? Topic is solved
Replies: 9
Views: 748

Re: how to simulate the key send as the ahk L do in cpp? Topic is solved

Maybe a simpler solution would be to use AutoHotkey.dll You could load that libary from your C code, then simply call AHK's send function from your C code. https://hotkeyit.github.io/v2/docs/AutoHotkeyDll.htm Don't worry about the V2 stuff, there is a dll for V1 too thx for your timely reply, but I...
by woshichuanqilz72
13 Feb 2019, 03:55
Forum: Ask For Help
Topic: how to simulate the key send as the ahk L do in cpp? Topic is solved
Replies: 9
Views: 748

how to simulate the key send as the ahk L do in cpp? Topic is solved

Hi, I am going to simulate key press in my cpp code directly. I use sendinput func in cpp, but is not work well. I don't know why sendinput just not worked in some window, even when I try the instructions mentioned on Stack Overflow to use the scancode. But when I try ahk exe the key send normally, ...
by woshichuanqilz72
17 Jan 2019, 23:52
Forum: Ask For Help
Topic: Any way to trigger hotkey itself in "HotKey keyword"? Topic is solved
Replies: 1
Views: 286

Any way to trigger hotkey itself in "HotKey keyword"? Topic is solved

I want to dynamic change the trigger hotkey when I run ahk script, which means I need to use the keyword "hotkey". I works fine, except I want to send the same key in the triggered label. As the code below, If I use e to trigger send e, it not worked. How to make it? Seem no help after go through th...
by woshichuanqilz72
29 Dec 2018, 10:53
Forum: Ask For Help
Topic: Why my remap to controller by using ucr not success?
Replies: 1
Views: 210

Re: Why my remap to controller by using ucr not success?

HI there, I am playing the witcher 3 on steam now. And I want to remap the key '-' to "rt" on the controller. I get the ucr on this forum. I follow the step and everything works fine even when I test it in the game controller setting in the control panel. But it not work in the game. I am a little ...
by woshichuanqilz72
29 Dec 2018, 09:13
Forum: Ask For Help
Topic: Why my remap to controller by using ucr not success?
Replies: 1
Views: 210

Why my remap to controller by using ucr not success?

HI there, I am playing the witcher 3 on steam now. And I want to remap the key '-' to "rt" on the controller. I get the ucr on this forum. I follow the step and everything works fine even when I test it in the game controller setting in the control panel. But it not work in the game. I am a little c...
by woshichuanqilz72
25 Aug 2018, 21:40
Forum: Ask For Help
Topic: how to use ahk in python 3 ?
Replies: 0
Views: 363

how to use ahk in python 3 ?

I just got pyahk which is written for python2 and AutoHotKey_H, I think AutoHotKey_L is better.

So I want to know can python 3 use ahk now or any good alternative?
by woshichuanqilz72
23 Aug 2018, 04:30
Forum: Ask For Help
Topic: how to make a hotstring with out show the trigger abbrev string?
Replies: 3
Views: 287

Re: how to make a hotstring with out show the trigger abbrev string?

Rohwedder wrote:Hallo,
try:

Code: Select all

:*:wt::want
Hi thank you. But I want the "want" show out when "t" pressed, before that nothing show on the screen even "w"
by woshichuanqilz72
23 Aug 2018, 02:42
Forum: Ask For Help
Topic: how to make a hotstring with out show the trigger abbrev string?
Replies: 3
Views: 287

how to make a hotstring with out show the trigger abbrev string?

As the title said.

I want to make,
::wt::want. But I don't want the "wt" show on the screen how to make it?
by woshichuanqilz72
11 Jul 2018, 04:39
Forum: Ask For Help
Topic: how to make the function name as the variable and put in the array?
Replies: 1
Views: 231

how to make the function name as the variable and put in the array?

here is my code I can use 'q' to toggle the timer which is reading the array and execute the corresponding label, it works fine. Sendkey will iterate the array. But when the label get complicated, I want to pass parameter into it. global start := true ArrOrMaxNum :=["test1", "test2", "test3"] global...
by woshichuanqilz72
05 Jul 2018, 23:04
Forum: Ask For Help
Topic: how to run two hotkey simultaneously?
Replies: 2
Views: 299

how to run two hotkey simultaneously?

#MaxThreadsPerHotkey 3 #MaxThreads 2 $a:: { loop, 3 { Send, a Sleep, 1000 } } Return $b:: { loop, 3 { Send, b Sleep, 1000 } } Return I write the code like this , I want the output should be like ababab, but it seems just one thread, one the output is abbbaa. My question is how to make the two hotke...
by woshichuanqilz72
02 Jul 2018, 22:32
Forum: Ask For Help
Topic: how to call excel com to insert a image to a excel file ? Topic is solved
Replies: 5
Views: 758

Re: how to call excel com to insert a image to a excel file ? Topic is solved

Hi bro, tnx for your code, works for me. The image can insert well. One more question where can learn the com api, so I can make the code by myself in the future. Tnx again bro ~ MSDN Microsoft is a good start for reference. For example this link shows the Shape object. https://msdn.microsoft.com/e...
by woshichuanqilz72
29 Jun 2018, 01:41
Forum: Ask For Help
Topic: how to call excel com to insert a image to a excel file ? Topic is solved
Replies: 5
Views: 758

Re: how to call excel com to insert a image to a excel file ? Topic is solved

As the title said, I found a post before, which said PasteSpecial can do the job. And I try the code like this: error occur : cant get the PasteSpecial property. So any other way to make it? FileSelectFile, Path Xl := ComObjCreate("Excel.Application") Xl.Workbooks.Open(Path) ;open an existing file ...
by woshichuanqilz72
28 Jun 2018, 03:16
Forum: Ask For Help
Topic: how to call excel com to insert a image to a excel file ? Topic is solved
Replies: 5
Views: 758

how to call excel com to insert a image to a excel file ? Topic is solved

As the title said, I found a post before, which said PasteSpecial can do the job. And I try the code like this: error occur : cant get the PasteSpecial property. So any other way to make it? FileSelectFile, Path Xl := ComObjCreate("Excel.Application") Xl.Workbooks.Open(Path) ;open an existing file X...
by woshichuanqilz72
02 Apr 2018, 06:45
Forum: Ask For Help
Topic: why Getrawinputdevicelist call failed?
Replies: 0
Views: 221

why Getrawinputdevicelist call failed?

I download the file from here. But get this error on my win 10 how to fix this problem?

I get the error msg like:
Getrawinputdevicelist call failed.

https://github.com/rshipp/ahk-libs/blob ... AHKHID.ahk
by woshichuanqilz72
22 Mar 2018, 06:33
Forum: Ask For Help
Topic: what is the version of the ahk ?
Replies: 8
Views: 873

Re: what is the version of the ahk ?

It's because the script is compiled to an .EXE file. If you want the tray menu above, you have to run the .AHK version of the script. If you don't have the .AHK version of the script, then you can use a program called Resource Hacker to get the script out from the .EXE file. 1. Download Resource Ha...
by woshichuanqilz72
22 Mar 2018, 06:14
Forum: Ask For Help
Topic: what is the version of the ahk ?
Replies: 8
Views: 873

Re: what is the version of the ahk ?

It's because the script is compiled to an .EXE file. If you want the tray menu above, you have to run the .AHK version of the script. If you don't have the .AHK version of the script, then you can use a program called Resource Hacker to get the script out from the .EXE file. 1. Download Resource Ha...

Go to advanced search