Search found 112 matches
- 12 Jun 2016, 13:39
- Forum: Ask for Help (v1)
- Topic: regarding modular scripting practice
- Replies: 4
- Views: 1161
Re: regarding modular scripting practice
I also got surprised when I used a 'super global' variable by defining a variable in 'autostart' section of the script with `global` keyword - turned out the local variables I used inside my Calculator class where accessing super globals, so you should absolutely avoid using them if you care about ...
- 11 Jun 2016, 12:06
- Forum: Ask for Help (v1)
- Topic: huawei calculation Topic is solved
- Replies: 5
- Views: 1120
Re: huawei calculation Topic is solved
I'm not sure what you're trying to do, but this will probably help: SubStr
- 11 Jun 2016, 12:03
- Forum: Ask for Help (v1)
- Topic: Send python command
- Replies: 4
- Views: 1916
Re: Send python command
Can't you open a console or something in Blender? http://blenderartists.org/forum/archive/index.php/t-253236.html Once you have the shortcut, you can simulate it in AHK. You could also make AHK script to click on the menu elements to open the console, or to press ALT key to highlight menu shortcuts ...
- 11 Jun 2016, 11:54
- Forum: Ask for Help (v1)
- Topic: regarding modular scripting practice
- Replies: 4
- Views: 1161
Re: regarding modular scripting practice
It seems recently OOP gains more enemies than friends. Modular programming is especially good when you create libraries to be used in different scripts, especially by someone else. This way you can encapsulate some functionality in a module and document it's behavior. Reusing code that is part of a ...
- 03 Jun 2016, 15:22
- Forum: Ask for Help (v1)
- Topic: MS Keyboard Buttons
- Replies: 9
- Views: 2352
Re: MS Keyboard Buttons
This may also be helpful to you. NOTE: Some keys do not generate events and thus will not be visible here. If this is the case, you cannot directly make that particular key a hotkey because your keyboard driver or hardware handles it at a level too low for AutoHotkey to access. For possible solutio...
- 03 Jun 2016, 11:17
- Forum: Ask for Help (v1)
- Topic: Window Switching
- Replies: 12
- Views: 3015
Re: Window Switching
I have Windows 10 64 bit.
Autohotkey 1.1.22.09
I don't remember if it's 32 or 64 bit version.
Autohotkey 1.1.22.09
I don't remember if it's 32 or 64 bit version.
- 03 Jun 2016, 07:03
- Forum: Ask for Help (v1)
- Topic: MS Keyboard Buttons
- Replies: 9
- Views: 2352
Re: MS Keyboard Buttons
I had a similar problem with my Logitech keyboard. What I did was using the Logitech control panel to map my G1-G12 keys to simulate F13-F24 real keys. Now I can register F13-F24 hotkeys in AHK.
- 03 Jun 2016, 02:54
- Forum: Ask for Help (v1)
- Topic: Alternating Keys
- Replies: 3
- Views: 1172
Re: Alternating Keys
SetKeyDelay, 50, 50 v:: While ( GetKeyState("v") ) { Send {Left} Sleep 10 Send {Right} } Return If this doesn't work as well, try running the script as administrator. If still no success, you can try SendMode, Play SetKeyDelay, 50, 50 v:: While ( GetKeyState("v") ) { Send {Left} Sleep 10 Send {Righ...
- 02 Jun 2016, 14:58
- Forum: Ask for Help (v1)
- Topic: SetKeyDelay in Menu?
- Replies: 10
- Views: 2732
Re: SetKeyDelay in Menu?
You could also for example create a searchable interface. For example pressing a Windows key could popup a field to search for a command. Because pressing Windows key alone is done only to access Windows Menu, it wouldn't interfere, and could detect a mouse click and hide itself in such case. But if...
- 02 Jun 2016, 12:08
- Forum: Ask for Help (v1)
- Topic: SetKeyDelay in Menu?
- Replies: 10
- Views: 2732
Re: SetKeyDelay in Menu?
The good news, is that when I tried the same syntax for the ahk menu labels, it works! ...just put an asterisk "&" in front of the label letter anywhere in the label you want to use as a trigger... i.e. "Rebe&ka" to trigger "Rebeka" As long as that labeled letter is a unique within any one menu, it...
- 02 Jun 2016, 09:13
- Forum: Ask for Help (v1)
- Topic: [SOLVED]Confine mouse cursor to a circular shape?
- Replies: 9
- Views: 3462
Re: Confine mouse cursor to a circular shape?
That's awesome!
EDIT: It works on my Windows 10, apparently it doesn't work elsewhere, so it's less awesome now.
EDIT: Apparently it was fixed, so still pretty awesome.
EDIT: It works on my Windows 10, apparently it doesn't work elsewhere, so it's less awesome now.
EDIT: Apparently it was fixed, so still pretty awesome.
- 02 Jun 2016, 04:34
- Forum: Ask for Help (v1)
- Topic: Piano autoplayer error... Topic is solved
- Replies: 1
- Views: 953
Re: Piano autoplayer error... Topic is solved
It works for me:
pfjzojfpfjzojfpfjz...
There's no fjzhere: pfjzo[HERE]jfpfjzo[HERE]jfpfjz because you're releasing the keys and not pressing them.
pfjzojfpfjzojfpfjz...
There's no fjzhere: pfjzo[HERE]jfpfjzo[HERE]jfpfjz because you're releasing the keys and not pressing them.
- 02 Jun 2016, 04:29
- Forum: Ask for Help (v1)
- Topic: An email question
- Replies: 2
- Views: 795
Re: An email question
You can try using Send {Tab} to switch from subject to body.
- 02 Jun 2016, 04:27
- Forum: Ask for Help (v1)
- Topic: Alternating Keys
- Replies: 3
- Views: 1172
Re: Alternating Keys
This?
Code: Select all
v::
While ( GetKeyState("v") ) {
Send {Left}
Sleep 10
Send {Right}
}
Return
- 02 Jun 2016, 04:23
- Forum: Ask for Help (v1)
- Topic: [SOLVED]Confine mouse cursor to a circular shape?
- Replies: 9
- Views: 3462
Re: Confine mouse cursor to a circular shape?
That would be my approach: smoothness := .8 ;should be between 0 and 1 radius := 135 RButton:: CoordMode, Mouse, Screen MouseGetPos, x, y While ( 1 ) { GetKeyState, rmb, Rbutton,P if ( rmb = "U" ) { break } MouseGetPos, nx, ny dx := nx - x dy := ny - y dist := sqrt( (dx ** 2) + (dy ** 2) ) if ( dist...
- 02 Jun 2016, 03:24
- Forum: Ask for Help (v1)
- Topic: SetKeyDelay in Menu?
- Replies: 10
- Views: 2732
Re: SetKeyDelay in Menu?
;======= above goes autoexecute part of your script flag = %1% ;first parameter paramNum = %0% if ( !flag ) { if ( paramNum ) { ;at least one parameter was passed, so the flag was just switched Tooltip, Fast typing } SetKeyDelay, 0, 0 } else { Tooltip, Slow typing SetKeyDelay, 200, 200 } Sleep, 200...
- 02 Jun 2016, 03:09
- Forum: Ask for Help (v1)
- Topic: SetKeyDelay in Menu?
- Replies: 10
- Views: 2732
Re: SetKeyDelay in Menu?
SetKeyDelay Every newly launched thread (such as a hotkey, custom menu item, or timed subroutine) starts off fresh with the default setting for this command. That default may be changed by using this command in the auto-execute section (top part of the script). I couldn't find how to change the def...
- 02 Jun 2016, 02:52
- Forum: Ask for Help (v1)
- Topic: Window Switching
- Replies: 12
- Views: 3015
Re: Window Switching
Weird, I have Win10 too. Try this: #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. #WinActivateForce ; #Warn ; Enable warnings to assist with detecting common errors. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWo...
- 01 Jun 2016, 16:17
- Forum: Ask for Help (v1)
- Topic: UndoHistory
- Replies: 8
- Views: 1895
Re: Undo Queue Associative Array
Well I kind of attacked you with OOP, but I thought You will understand what I mean in my first post (I forgot to subscribe to the thread too). So when I wrote: Here's how to implement undo: undoHistory := [] Here, done. :) Confused? Here's the UndoHistory class: class UndoHistory { history := [] do...
- 01 Jun 2016, 14:37
- Forum: Ask for Help (v1)
- Topic: UndoHistory
- Replies: 8
- Views: 1895
Re: UndoHistory
uH := new UndoneHistory() msgbox % uH.do(param1) ; need to get the UndoOperation value (UndoMoveCopy) before it gets deleted in the next call. undoHistory := uH.undo() ;---- undoHistory := ParamToObj() I don't get it. uH becomes an instance of UndoneHistory class. Then undoHistory becomes whatever ...