Home Download Screenshots Wiki Plugins Translations Developers Donate Forums/Help Contact Us |
StrokeIt
Help beta test .9.7 "enhanced"Posted by jeff
Okay, there's a new build that should fix the "fantom lua5 plugin" issue.
@Googer - I'm working on fixing the execute commands, if you keep seeing problems with the newest build, please keep sending crash logs. If you have any windows API experience and you're interested in doing fun stuff with the lua plugin, you'll probably want to grab the alien plugin. It lets you call Windows API functions from lua. Download http://luarocks.org/repositories/rocks/alien-0.5.0-1.win32-x86.rock Rename it to alien-0.5.0-1.win32-x86.zip and unzip it wherever you like. Create a directory called "alien" inside %APPDATA%\TCB Networks\StrokeIt\Scripts\lib Create a directory called "alien" inside %APPDATA%\TCB Networks\StrokeIt\Scripts\include copy lib\alien\core.dll to %APPDATA%\TCB Networks\StrokeIt\Scripts\lib\alien copy lib\alien\struct.dll to %APPDATA%\TCB Networks\StrokeIt\Scripts\lib\alien copy lua\alien.lua to %APPDATA%\TCB Networks\StrokeIt\Scripts\include Now you can call this plugin from your lua scripts like so: require [[alien]] local MessageBox = alien.User32.MessageBoxA MessageBox:types{ ret = 'long', abi = 'stdcall', 'long', 'string', 'string', 'long' } MessageBox(0, "Hello World!", "Hello", 64)) You can see example2.lua for a working example. It does the same thing example.lua does, but uses alien to call the windows functions directly instead of calling the strokeit plugins. Edited 2 time(s). Last edit at 12/07/2009 09:15AM by jeff.
Confirmed - the phantom lua5 entry in the plugins list is now gone. :)
I haven't yet played around with using Lua addons, including (obviously) Alien, but I love the potential here. We should be able to do some real interesting stuff if we get creative. To this point, I keep on meaning to play around with this and then haven't gotten a chance to. :p The latest build still crashes on my Vista x64 box with the execute commands. I uploaded a new log for a crash that happened upon executing web browser to the same location as before ( http://www.pobox.com/~googer/tcb.zip ). Edited 1 time(s). Last edit at 07/02/2009 09:17AM by Googer.
Besides still interfering with desktop doubleclicks :), every once in a while it freezes Shift/Ctrl keys and nothing but disabling StrokeIt will return keyboard to normal.
And the same problem here, it crashes when starting programs with gestures. http://sites.google.com/site/gemisigo/Home/tcb.zip?attredirects=0 Edited 1 time(s). Last edit at 07/03/2009 07:18AM by gemisigo.
There's a new build that might fix the crashes when executing programs. Let me know.
Also, starting with this new build the "Scripts\bin" folder has been renamed to "Scripts\lib" to stay in line with other lua standards. If you've installed alien or any of the other plugins, you'll want to go rename the "bin" folder to "lib". If you haven't played around with that, you don't need to worry. @gemisgo: What program are you using that detects the double clicks on the desktop?
Something odd with the latest build...Actions that run programs are complaining about invalid arguments - but there are no arguments in the definition, and those actions have worked correctly for years... I wonder if StrokeIt is appending some random characters to the command or something?
P.S. The config file entry says: outlook.exe = exec, run "%PROGRAMFILES%\\Microsoft Office\\Office12\\OUTLOOK.EXE" "" "" "" ... but when I execute it I get: Cannot start Microsoft Office Outlook. The command line argument is not valid. Verify the switch you are using. Edited 1 time(s). Last edit at 07/04/2009 09:16AM by MKairys.
@MKairys, There's a new build that should fix that. I reworked a lot of the exec plugin to fix the crashes and in doing so introduced that new bug.
If anyone is still seeing problems with the exec plugin, please let me know. And keep the crash reports coming, they are a big help. -- Jeff
strokeit and katmouse/wizmouse
i use katmouse for enable mouse wheel for incative windows/controls. since both wheel tools have an own hook for wheel, i can't use middle wheel up/down strokes. in katmouse i can exclude a program or class, then the strokes work. but then i loose scroll feature when window is inactive. is it possible for you to take block wheel hooks while right mouse is pressed? thanks
@jeff: it's a file manager called Directory Opus. Doubleclick on desktop is set up to open the default lister. With StrokeIt disabled or shut down it works. With enabled StrokeIt it does not. Gives no error messages it just simply does not do anything. Doubleclicking on icons does what it should, of course.
By the way, I tested program execution and it works for me.
Hello Jeff,
a little late but... I was testing mouse plugin and this occurred. http://www.files.to/get/725745/1j8ajbtva3 New Action { gesture = A New Command = utilities, Delay "2000" New Command = !lua5.1, script "new" "example2.lua" New Command = mouse, click "left" "click" "pos" "336" "14" "" New Command = mouse, click "left" "down" "pos" "358" "95" "" New Command = mouse, move "pos" "400" "89" "" New Command = mouse, move "pos" "400" "91" "" New Command = mouse, move "pos" "400" "92" "" New Command = mouse, move "pos" "400" "93" "" New Command = mouse, move "pos" "400" "94" "" New Command = mouse, move "pos" "400" "96" "" New Command = mouse, move "pos" "400" "98" "" New Command = mouse, move "pos" "400" "101" "" New Command = mouse, move "pos" "400" "104" "" New Command = mouse, move "pos" "401" "107" "" New Command = mouse, move "pos" "401" "110" "" New Command = mouse, move "pos" "402" "113" "" New Command = mouse, move "pos" "402" "115" "" New Command = mouse, move "pos" "402" "117" "" New Command = mouse, move "pos" "404" "120" "" New Command = mouse, move "pos" "404" "121" "" New Command = mouse, move "pos" "406" "122" "" New Command = mouse, move "pos" "407" "123" "" New Command = mouse, move "pos" "408" "124" "" New Command = mouse, move "pos" "409" "124" "" New Command = mouse, move "pos" "410" "125" "" New Command = mouse, move "pos" "412" "125" "" New Command = mouse, move "pos" "414" "125" "" New Command = mouse, move "pos" "416" "126" "" New Command = mouse, move "pos" "419" "126" "" New Command = mouse, move "pos" "420" "126" "" New Command = mouse, move "pos" "422" "126" "" New Command = mouse, move "pos" "423" "125" "" New Command = mouse, move "pos" "424" "125" "" New Command = mouse, move "pos" "424" "124" "" New Command = !lua5.1, script "new" "" New Command = mouse, click "left" "up" "pos" "424" "124" "" } so StrokeIt is drawing my "t" but why the long line and additional left click ? same in autoit works like it should http://www.files.to/get/725744/0difr98soq MouseMove(336, 14) MouseDown("left") MouseMove(336, 14) MouseUp("left") MouseMove(400, 89) MouseDown("left") MouseMove(400, 89) MouseMove(400, 91) MouseMove(400, 92) MouseMove(400, 93) MouseMove(400, 94) MouseMove(400, 96) MouseMove(400, 98) MouseMove(400, 101) MouseMove(400, 104) MouseMove(401, 107) MouseMove(401, 110) MouseMove(402, 113) MouseMove(402, 115) MouseMove(402, 117) MouseMove(404, 120) MouseMove(404, 121) MouseMove(406, 122) MouseMove(407, 123) MouseMove(408, 124) MouseMove(409, 124) MouseMove(410, 125) MouseMove(412, 125) MouseMove(414, 125) MouseMove(416, 126) MouseMove(419, 126) MouseMove(420, 126) MouseMove(422, 126) MouseMove(423, 125) MouseMove(424, 125) MouseMove(424, 124) MouseUp("left") with best regards -Leo
@Leo
The "click" command will save the current cursor position, move the cursor to the coordinates you specified, and then move the cursor back to where it started. In your case, that means it's moving to 358, 95 then left clicking, then moving back to where it started, and then moving to 400, 89. Add: New Command = mouse, move "pos" "358" "95" "" before New Command = mouse, click "left" "down" "pos" "358" "95" "" and you should see it work properly. I'm not seeing an "additional left click," let me know what you're seeing if it's still a problem. Thanks, Jeff
Actions are stored in your user profile under %APPDATA%\TCB Networks\StrokeIt\Actions
%APPDATA% is different on every OS (although you can type it into explorer just like that and it'll take you there) On English XP systems it should be C:\Documents and Settings\(your_user_name)\Application Data On English Vista sytems it should be C:\Users\(your_user_name)\AppData\Roaming\ On German systems, I don't know, but you're a smart guy and I'm sure you can find it :)
Thanks for the reply.
It would be awesome if you could implement reload actions command. --- I change "ActionsDir" in registry or ini with external program Run command ----- Strokeit command to load actions like startup StrokeIt (StrokeIt still running) = more flexibility http://www.tcbmi.com/strokeit/forum/read.php?4,3392,3395#msg-3395 http://www.tcbmi.com/strokeit/forum/read.php?4,3755,3756#msg-3756 -Leo
Hello Jeff,
Here is a demo http://www.files.to/get/726102/c656bs6oi4 normal action directory -> shutdown StrokeIt registry modify actions2 -> StrokeIt start -> actions changed shutdown StrokeIt -> registry modify actions -> StrokeIt start global action Reload Preferences [R] { gesture = R Reload = msg, send "49010" "4" "" "CLASS" "StrokeIt" New Command = osd, OSD "reload" "1275" "96" "Andale Mono IPA" "0" "255" "0" "1" "1" } actions NOT changed -> instead StrokeIt saved the same actions in actions2 too so what made I wrong ? Thanks -Leo
My mistake, that 4 should be a 5 and here's why:
49010 is the command to reload parts of the configuration, and the number passed to it flags which parts should be reloaded. #define FLAG_ACTIONS 1 #define FLAG_GESTURES 2 #define FLAG_PREFS 4 #define FLAG_PLUGINS 8 When reloading, it will first try to reload the preferences (if set), next the plugins (using the new preferences), next the gestures, and finally the actions. So, if you want to reset the preferences, and then reload the actions, 5 would be the appropriate set of flags (4 + 1).
@pi - Other hooks are already blocked when StrokeIt is active. It's likely that your program is using a low level hook, which lets it respond to the events before they're sent to SI. There's nothing I can do about this.
There's a new build up that should fix all of the reported crashes I've been sent. If anyone is experiencing any more crashes, please let me know and send me the crash reports. The new build also lets you pass arguments to your scripts, you can reference arg[1], arg[2] etc to get each parameter. -- Jeff
@Jeff - Sorry for not giving you feedback sooner but I was on vacation and didn't have access to my 64-bit Vista machine. Unfortunately the new build still has problems with the various launch actions. I uploaded a new crash dump generated from running launch web browser to http://www.pobox.com/~googer/tcb.zip .
There's a new build that adds the following features:
- If you have a fancy mouse, you can now use mouse buttons 4 and 5 to draw gestures - The example.lua script is updated to show usage of gesture.hwnd() and chained commands - Minor bugfixes @Googer - Please let me know if you still see crashes with today's build
What do you mean by fancy mouse? I do not see any other options to draw gestures besides left/middle/right buttons.
Cannot see gesture.hwnd() in examples either. By the way, the page shows StrokeIt Enhanced BETA 07.14.2009. It does not seem to be built today. There must be something broken... Sadly, the desktop leftdoubleclick still does not work... EDIT: and I forgot this one. From time to time it forgets to draw the line. I have to disable drawing (the checkbox is still ticked) and re-enable it to work again. Edited 1 time(s). Last edit at 07/21/2009 04:38AM by gemisigo.
I forgot to update the label, but the file should have still been build 200709. Buttons 4 and 5 should show up in the preferences in the dropdown to select the mousebutton to draw gestures with.
The reference to gesture.hwnd() is in example.lua (which, by default is in your installation directory, not your profile directory, under Default\Scripts\example.lua). Is should be displayed in the messagebox when you choose either the "Call SI Plugins" or the "Call Alien" commands.
Sorry, you can't reply to this topic. It has been closed.
|