Search found 540 matches

by RobertL
30 Dec 2016, 09:14
Forum: Wish List
Topic: Support Unicode Characters in ErrorStdOut message
Replies: 0
Views: 2555

Support Unicode Characters in ErrorStdOut message

Syntax error message of Unicode AHK can't display Unicode Characters correctly, it shows "??" instead. It's unrelated with editor or command line stdout. For example, 1) code with compile-time syntax error around Chinese character, and 2) path with Chinese character would shows like: D:\??...
by RobertL
25 Apr 2016, 09:38
Forum: 相关工具
Topic: SciTE4AHK 扩展
Replies: 4
Views: 7343

Re: SciTE4AHK 扩展

lnpx wrote:请问对于初学者来说,SciTe和Vim应该首选哪个?它们各有什么优缺点。非常感谢!

没用过Vim,SciTE配置也是独自的一套,但SciTE4AHK中多是用AHK扩展的,便于学习、自定义。
不知道Vim对AHK的调试支持怎样,SciTE也够用了。
by RobertL
17 Dec 2015, 08:48
Forum: Bug Reports
Topic: ~LWin Up blocked
Replies: 8
Views: 2110

Re: ~LWin Up blocked

I found my problem, code above is incomplete, should be: asterisk is option ~*LWin:: ~*LWin Up::return will block start menu. I think Up is stand alone, so didn't metion key-down, which is there and take effect . is unexpected because the independence I conceived. Thank you for pointing that section...
by RobertL
17 Dec 2015, 04:39
Forum: Bug Reports
Topic: ~LWin Up blocked
Replies: 8
Views: 2110

Re: ~LWin Up blocked

Strange, ~LWin Up::return or ~*LWin Up::return now can open the "start" button. I can't reproduce the error.

LWin up:: will block the key-up event. It will also block the key-down event if you don't have ~LWin::
is unexpected comprehend, be it so.

Thank you.
by RobertL
17 Dec 2015, 02:51
Forum: Bug Reports
Topic: ~LWin Up blocked
Replies: 8
Views: 2110

Re: ~LWin Up blocked

Currently, I Send {Lwin} in ~LWin Up:: to open start menu. Although don't know the effect of ~ here.
by RobertL
16 Dec 2015, 22:28
Forum: Bug Reports
Topic: ~LWin Up blocked
Replies: 8
Views: 2110

Re: ~LWin Up blocked

So, ~ is not necessary here, and could use $LWin Up::Send {LWin up} instead?
by RobertL
16 Dec 2015, 20:05
Forum: Bug Reports
Topic: ~LWin Up blocked
Replies: 8
Views: 2110

~LWin Up blocked

~LWin Up::return nor ~*LWin Up::return can open the "start" button when release.
1.1.22.09 Win7 64bit AHK 64bit
by RobertL
09 Nov 2015, 09:52
Forum: Bug Reports
Topic: [Fixed] throw didn't work correctly in user defined Enum/Next
Replies: 1
Views: 866

[Fixed] throw didn't work correctly in user defined Enum/Next

Code: [Select all] [Expand]GeSHi © Codebox Plus

Throw would just jump out, and gose on. It should pop-up unhandle exception, and abort current thread.
by RobertL
05 Nov 2015, 08:13
Forum: Wish List
Topic: [meaningless]Object in comparison (not to compare object)
Replies: 2
Views: 1135

Re: Object in comparison

Since condition of empty is treated as false, there still will be some conflict, even compare returns empty - need to use (a<0)=false to confirm false . Maybe I over misused weak type, which simplify variable define and assign , I'd better check type first, if necessary. Thank you @nnnik
by RobertL
05 Nov 2015, 05:48
Forum: Wish List
Topic: [meaningless]Object in comparison (not to compare object)
Replies: 2
Views: 1135

[meaningless]Object in comparison (not to compare object)

If either of the inputs is not a number, both are compared alphabetically Currently, {}<0 (or o<0 which o is an object) is true and then, {}>0 , o>0 are false . It seems object is convert to empty string, then ""<0 are compared alphabetically. I think can't compare between object (or anyt...
by RobertL
05 Nov 2015, 00:36
Forum: Ask For Help
Topic: script stopped working after adding a second script
Replies: 10
Views: 1288

Re: script stopped working after adding a second script

Glad to hear you find the issue. Also, new experience got: Problem may happen if using multi keyboard such as peripheral device, especially which have entity keys like your Expreeskey on Wacom. It seems only use regular keyboard or one from Cintiq will be OK. Imagin that, KeyWait didn't know to wait...
by RobertL
03 Nov 2015, 19:16
Forum: Ask For Help
Topic: script stopped working after adding a second script
Replies: 10
Views: 1288

Re: script stopped working after adding a second script

My F10 hotkey procedure sends out {Right} if pressed short and k if pressed long. If I add LWin to the script it still sends out {Right} but not k . Simplifying this, LWin break out the time out part ( ErrorLevel always equal false) of KeyWait in the whole script, even LWin never pressed . If so, t...
by RobertL
03 Nov 2015, 08:11
Forum: Ask For Help
Topic: script stopped working after adding a second script
Replies: 10
Views: 1288

Re: script stopped working after adding a second script

BTW, what does 'stopped working' mean in the top post? Means F13 or whatever hotkey won't be triggered if there is LWin ? so, procedure under that hotkey is never reached. Check keyboard / language layout, IME, or test other combination with LWin , like ~LWin , RWin , a & LWin etc. Sorry, I have...
by RobertL
02 Nov 2015, 23:31
Forum: Ask For Help
Topic: script stopped working after adding a second script
Replies: 10
Views: 1288

Re: script stopped working after adding a second script

I test again, works as uaual. Using LWin instead of c::, and split the two hotkey procedure in different script.
Is there any conflict in your other script? e.g. LWin in another script, with any context?
by RobertL
02 Nov 2015, 19:44
Forum: Ask For Help
Topic: script stopped working after adding a second script
Replies: 10
Views: 1288

Re: script stopped working after adding a second script

I test this which should be the same, it works, can't recur any error. a:: KeyWait, a, T0.5 If ErrorLevel { SendInput k ;LONG - k KeyWait, a }Else { SendInput {b} ;SHORT - right } Return c:: toggle:=!toggle if toggle { SendInput, 2 }Else { SendInput, 1 } Return
by RobertL
02 Nov 2015, 19:35
Forum: Ask For Help
Topic: [Open] Send {Tab} won't invoke OnFocus. Need SetKeyDelay?
Replies: 3
Views: 680

Re: [Open] Send {Tab} won't invoke OnFocus. Need SetKeyDelay?

@MJs
I found if put a::Send {Tab} in another script (new process), it would work.
And I'm afaid that send messages internal won't invoke complete procedure, need send KillFocus (if it be monitored too) and some other chain message all myself?

Thank you.
by RobertL
01 Nov 2015, 23:15
Forum: Wish List
Topic: nest class definition level
Replies: 2
Views: 1074

Re: nest class definition level

I use class to store static struct and data, also to organize method. Instead of object , it's more clear and better formated , for reading and writing. e.g. using external .ahk file as config , which could be load automatic when #include . And, could get the nest level information from __Class . Co...
by RobertL
01 Nov 2015, 21:24
Forum: Wish List
Topic: nest class definition level
Replies: 2
Views: 1074

nest class definition level

class a{ class b{ class c{ class d{ class e{ class f{ ;This class definition is nested too deep. } } } } } } Why there is the limit? Use static , __Class would do the same? thing. class a{ class b{ class c{ class d{ class e{ static f:={__Class:"a.b.c.d.e.f",g:{__Class:"a.b.c.d.e.f.g&...
by RobertL
01 Nov 2015, 19:47
Forum: Ask For Help
Topic: Move between GUI controls
Replies: 6
Views: 1605

Re: Move between GUI controls

@MJs Gui, WINDOWLABEL:New Gui, Add, Edit,vOne, 1 Gui, Add, Edit,vTwo, 2 Gui, Add, Edit,vThree , 3 Gui, Add, Edit,vFour, 4 ;GuiControl, +TabStop, Three ; do this and the tabbing order goes back to one, two, three, four. Gui, Show,,MyWindow Order:=["One", "Two", "Four", &...
by RobertL
01 Nov 2015, 07:15
Forum: Ask For Help
Topic: Hide Taskbar And Desktop Icons
Replies: 1
Views: 986

Re: Hide Taskbar And Desktop Icons

Code: [Select all]GeSHi © Codebox Plus

#SingleInstance,Force
c:=WinExist("Program Manager ahk_class Progman ahk_exe explorer.exe")
WinHide
WinHide ahk_class Shell_TrayWnd
OnExit,Exit
return
Esc::
Exit:
WinShow,% "ahk_id" c
WinShow ahk_class Shell_TrayWnd
ExitApp

Go to advanced search