[quote='olipcs',index.php?page=Thread&postID=138198 #post138198]..first of all, a big thank you,Freddie, for the massive informations on the hotkey.net website, i could get hotkey working, with almost every function i use (maximizer, switching-regions, do-not-pass-list, and the ftl-setup) in under an hour, and there are only some little features i must transistion from my keyclone-behavior to hotkeynet. (But as i see the power of the scripting language, this should no problem..)[/quote]
That's excellent news! I'm delighted to hear that.
[quote='olipcs',index.php?page=Thread&postID=138198 #post138198]..So i logged on, and testet simple following and targeting, and all worked great! -I had no problems at all, and will for (atleat an 2weeks testing period) use it in the future (which means for you, that i might have some specific questions).[/quote]
I really appreciate that you're willing to spend two weeks testing. That's terrific. Of course, any suggestions or problems or questions, fire away.
[quote='olipcs',index.php?page=Thread&postID=138198 #post138198]..PS: Only thing i noticed is, that keclone was a little bit faster in region-switching, but this could be because i simply hacked the one i used together from the hotkeynet reference.[/quote]
I'm very glad you told me this. Now that I know, I'd like to speed this up before the beta ends. Maybe, if you get a chance, you could help me figure out the cause. A little background:
The commands used in the sample script (SetWinRegion, SetWinSize, etc.) are just wrappers for operating system functions. For example, when you write "SetWinRegion" in a script, you're just calling the operating system function SetWindowRgn. When you write "SetWinPos," you're calling the operating system function MoveWindow. And so forth. Programmers sometimes call this "exposing" features to the user. HotkeyNet "exposes" the operating system functions to you.
Now, I can think of two reasons why Keyclone is faster:
1. The sample script uses a less-than-optimal set of commands or uses them in a less-than-optimal order. This is quite possible since I wrote the sample script very fast and didn't experiment very much.
2. Keyclone may use a method that isn't exposed by the set of wrappers I implemented. For example, there's a "mirroring" API in Windows that could possibly be used for this purpose.
It would be great if you could help me figure out which of these is the explanation, and then I'll improve the program.
One other thing. There are two relevant commands (i.e. wrapped operating system functions) in HotkeyNet that might be useful here which I didn't use in the sample. They're called [url='http://www.hotkeynet.com/ref/setwinredraw.html']SetWinRedraw[/url] and UpdateWin. I think maybe region changes might be faster if (a) you turn screen redrawing off for the affected windows, (b) resize and reposition and re-region them, (c) turn redrawing back on, and (d) redraw all the windows to reflect the new state.
Connect With Us