Search found 52 matches

by holahapi
15 May 2019, 20:20
Forum: Ask For Help
Topic: Adding fucntion to Existing Hokeys
Replies: 3
Views: 263

Re: Adding fucntion to Existing Hokeys

Rohwedder wrote:
15 May 2019, 00:48
Possible but not recommended:
Thank you for the solution, but it is quiet like I expected.
I was thinking is there any AHK native syntax like Hotkey Modifier Symbols to do this.
swagfag wrote:
15 May 2019, 09:44
just... call the function?
This is what I am using, I think I will stick with it.
by holahapi
14 May 2019, 21:30
Forum: Ask For Help
Topic: Adding fucntion to Existing Hokeys
Replies: 3
Views: 263

Adding fucntion to Existing Hokeys

How can I make a Joy8 to trigger specifc program function and pre defined function? #If Joy8::ScreenShot() ;;I want to Keep this action all the time #IfWinActive ahk_exe notepad.exe ~Joy8::GamePad("A") ;;when I press Joy8, It will trigger {PrintScreen} and {A} #IfWinActive ahk_exe dog.exe ~Joy8::Gam...
by holahapi
12 May 2019, 22:49
Forum: Ask For Help
Topic: Event(guiescape) call function problem in class Topic is solved
Replies: 10
Views: 674

Re: Event(guiescape) call function problem in class Topic is solved

teadrinker wrote:
10 May 2019, 10:00
No, it allows as much instances as you need
Wow, I didnt realize the parameter's part, I was too careless.
It is compact and undestandable, thank you!
by holahapi
10 May 2019, 09:30
Forum: Ask For Help
Topic: Event(guiescape) call function problem in class Topic is solved
Replies: 10
Views: 674

Re: Event(guiescape) call function problem in class Topic is solved

depends on whether or not your class is intended to create many instances For this time, I juse have one instance for the class, using class is because dont want messy up with other messsy codes. The simpliest way I can think of with your specific requirement and how GuiClose label/function are des...
by holahapi
08 May 2019, 05:12
Forum: Ask For Help
Topic: Event(guiescape) call function problem in class Topic is solved
Replies: 10
Views: 674

Re: Event(guiescape) call function problem in class Topic is solved

Thank you for the solution. however, it is too difficult for me. The best solution I want is pack everthing inside the class, and use 1 line code to create a instance. After readings your links, I end up by using a guiclose-sub outside the class to call the class.function #SingleInstance, force tc :...
by holahapi
07 May 2019, 04:19
Forum: Ask For Help
Topic: Event(guiescape) call function problem in class Topic is solved
Replies: 10
Views: 674

Event(guiescape) call function problem in class Topic is solved

Trying to call a function when gui close. When putting the GUI inside a class.function Guiclose sub will not able to call the function. I found that Guiclose can be a function, But i dont know how it is work. need some help, thanks #SingleInstance, force tc := new TestClass() return Class TestClass ...
by holahapi
05 May 2019, 23:57
Forum: Ask For Help
Topic: How to use Guicontrol in [class.function2] to control [class.function1] Topic is solved
Replies: 8
Views: 424

How to use Guicontrol in [class.function2] to control [class.function1] Topic is solved

guicontrol works in CreateGui() but not in ButtonPress2() How can I fix it? #SingleInstance, force twin := new TimerWin twin.ButtonPress2() Class TimerWin { __New() { this.CreateGui() } CreateGui() { static Var2 gui Timer: new Gui Timer: Add, Text, vVar2 HWNDhtimeText, 000 GuiControl,Timer:, Var2, ...
by holahapi
02 May 2019, 06:41
Forum: Ask For Help
Topic: How to call [class.function] from [class.function.subroutine]? Topic is solved
Replies: 4
Views: 262

Re: How to call [class.function] from [class.function.subroutine]? Topic is solved

Thank you very much, Helgef

You code is very detail explained.
I never heard of BoundFunc before, it take me so long to understand part of it.
by holahapi
30 Apr 2019, 23:10
Forum: Ask For Help
Topic: How to call [class.function] from [class.function.subroutine]? Topic is solved
Replies: 4
Views: 262

How to call [class.function] from [class.function.subroutine]? Topic is solved

I want to call [class.function] from [class.function.subroutine] but it did not work at all. timerWin := new TimerWin Class TimerWin { __New() { Gui, Add, Button, h300 w300 gDoSomething, Button Gui, Show, w500 h500 return DoSomething: this.do_thing() return } do_thing() { msgbox, do } }
by holahapi
07 Jan 2019, 12:02
Forum: Ask For Help
Topic: How to Send all keys up?
Replies: 2
Views: 261

Re: How to Send all keys up?

Rohwedder wrote:
07 Jan 2019, 08:41
Hallo,
try
Thenk you, after testing, seems works fine.
:D :P :D
by holahapi
07 Jan 2019, 05:15
Forum: Ask For Help
Topic: How to Send all keys up?
Replies: 2
Views: 261

How to Send all keys up?

How to send all the keys (include modifier keys) up if pressed. :P

I wan to use it before using "BlockInput, On", and perform some key script.
by holahapi
19 Dec 2017, 10:37
Forum: Ask For Help
Topic: use AHK create foreign language Dictionary (how to store database)
Replies: 1
Views: 313

use AHK create foreign language Dictionary (how to store database)

My first problem is not exactly about dictionay, I want to Convert between Tradition Chinese and Simplified Chinese . I find a script here But it does not work for me. Original script as follow, have 1 ahk and 1 txt Kanji(s,r:=""){ ; r= 1-简繁 ""-繁简 static f:=__Kanji() n:=r?f.1:f.2 Loop,Parse,s b.=n[A...
by holahapi
19 Dec 2017, 10:01
Forum: Ask For Help
Topic: Monitor Bitcoin Price
Replies: 8
Views: 1279

Re: Monitor Bitcoin Price

Hi, holahapi COM object "ScriptControl" works on 32 bit processes only. It won't work if you use 64 bit AHK. But there are some another ways to use JScript for parsing JSON. I used one of them in my class to get and convert JSON string to AHK object. Is it possible to get a error catch for the GetF...
by holahapi
18 Dec 2017, 04:02
Forum: Ask For Help
Topic: Monitor Bitcoin Price
Replies: 8
Views: 1279

Re: Monitor Bitcoin Price

thank you teadrinker and noname

The regex tester is very helpful for me to learn about it.

It is surprise that the Jason class can get the data directly, I will use it for this one.

:D
by holahapi
16 Dec 2017, 22:19
Forum: Ask For Help
Topic: Monitor Bitcoin Price
Replies: 8
Views: 1279

Re: Monitor Bitcoin Price

thank you noname and imustbeamoron The first one works fine and the second one get some error Line 22 SC := ComObjCreate("ScriptControl") <<<<<<<<<<Class not registered In addition how can I extract the JPY price from the follow ? https://api.coindesk.com/v1/bpi/currentprice/JPY.json and is there a ...
by holahapi
15 Dec 2017, 05:20
Forum: 脚本函数
Topic: 简繁转换
Replies: 4
Views: 5169

Re: 简繁转换

我AHK沒太好, 請問我的CODE有什麼錯誤? #f5:: { send, ^c temp:=Kanji(%Clipboard%,2) msgbox, %temp% } RETURN Kanji(s,r:=""){ ; r= 1-简繁 ""-繁简 static f:=__Kanji() n:=r?f.1:f.2 Loop,Parse,s b.=n[A_Loopfield]?n[A_Loopfield]:A_Loopfield Return b } __Kanji(){ FileRead,s,% A_ScriptDir "\Lib\Kanji2.txt" f:=[], h:=[],s:=Trim...
by holahapi
15 Dec 2017, 00:29
Forum: Ask For Help
Topic: Monitor Bitcoin Price
Replies: 8
Views: 1279

Monitor Bitcoin Price

Is there a way to get the Bitcoin price in AHK

I find some API, but dont have any clue to do that

https://www.coindesk.com/api/
https://blockchain.info/api/exchange_rates_api
by holahapi
29 Aug 2017, 03:56
Forum: Ask For Help
Topic: Disable LWIN problem
Replies: 2
Views: 431

Re: Disable LWIN problem

Thanks, work like a charm! :D
by holahapi
29 Aug 2017, 00:31
Forum: Ask For Help
Topic: Disable LWIN problem
Replies: 2
Views: 431

Disable LWIN problem

I uses LWIN+(Some key) to create whole bunch of shorcuts, sometime I miss press it and showing me the Start menu which I never use.
How can I disable the LWIN function without affecting my LWIN+(Some key) fucntions?

Code: Select all

LWin::
	return
#b::
Run http://www.google.com
return

Go to advanced search