Author |
Topic |
|
Rob
USA
2615 Posts |
Posted - 08/03/2012 : 10:10:03
|
********************************************************** This is a very minor patch. If you're new to S+, install 2.2.7 first:
http://www.strokesplus.com/forum/topic.asp?TOPIC_ID=456
Then replace the EXE and DLL with the contents of this release. **********************************************************
BACKUP your StrokesPlus.xml file before enabling the password encryption as it cannot be recovered if you lose the password or something goes wrong since this is a new feature that hasn't been thoroughly tested in the wild. I would recommend sticking to ASCII characters for the password to avoid any odd behavior
32-bit:
Portable/ZIP Download - Changed Files Only: http://www.strokesplus.com/files/StrokesPlus_2.2.8_x86_chg.zip
64-bit:
Portable/ZIP Download - Changed Files Only: http://www.strokesplus.com/files/StrokesPlus_2.2.8_x64_chg.zip
Change Log: - Made a couple small tweaks to ensure password dialog becomes the foreground window when opening from various code paths. |
|
cyberalex4life
53 Posts |
Posted - 08/10/2012 : 05:13:56
|
What if I would like to create 2 gestures, one to set right mouse button as stroke button and a cancel delay of 6000 for when I use the mouse and one to set left mouse button and a cancel delay of 600 for when I use touchpad? |
|
|
cyberalex4life
53 Posts |
Posted - 08/10/2012 : 07:03:53
|
never mind, please only post if you have a more elegant solution (like not showing the S+ Window:
acShowPrefs() local iHandle = acGetForegroundWindow() acMaximizeWindow(nil, gsx, gsy) acDelay(500) acMouseMove(55,104) acMouseClick(55,104, 2, 1, 1) acMouseMove(115,364) acMouseClick(115,364, 2, 1, 1) acMouseClick(115,364, 2, 1, 1) acSendKeys("6000") acDelay(500) acSendKeys("{ENTER}") |
|
|
cyberalex4life
53 Posts |
Posted - 08/10/2012 : 09:00:07
|
local nID = acGetProcessIDFromPattern("StrokesPlus.*") local x_Mouse = acGetMouseLocationX() local y_Mouse = acGetMouseLocationY() acShowPrefs() local iHandle = acGetWindowFromProcessID(nID) acMaximizeWindow(iHandle, 0, 0) acDelay(500) acMouseMove(55,104) acMouseClick(55,104, 2, 1, 1) acMouseMove(115,364) acMouseClick(115,364, 2, 1, 1) acMouseClick(115,364, 2, 1, 1) acSendKeys("6000")
This is the new enhanced code. I managed to determine the aproximative space where to click to select the options I wanted modified. Nothing too complicated |
|
|
cyberalex4life
53 Posts |
Posted - 08/14/2012 : 16:15:40
|
I have this code in batch file:
@echo off RunDll32.exe shell32.dll,Control_RunDLL mmsys.cpl,,0 exit It opens sound divices window. I have a gesture that runs it:
acShellExecute("open", "D:\\Kit-uri Lite\\Strokes Plus\\Sound.bat", "", "", 0)
I guess there is a way of doing it (opening sound devices in Windows 7) by alien scripts. Please tell me how to do it without using this *.bat file, if it can be done this way. Thank you.
PS: I have an extern speaker from Logitech that connects by USB and it uses a general sound card driver, so sometimes I have to choose between the Realtek and Logiteck cards. |
|
|
Rob
USA
2615 Posts |
Posted - 08/14/2012 : 19:54:35
|
Why not just execute it directly:
acRunProgram("c:\\windows\\system32\\rundll32.exe","shell32.dll,Control_RunDLL mmsys.cpl,,0",0, 1) --Open sound Control Panel applet Of course, make sure that's the right path on your machine, but it works fine for me on Win7 64-bit. |
|
|
cyberalex4life
53 Posts |
Posted - 08/15/2012 : 04:29:02
|
same OS, thank you very much, works fine :) |
|
|
|
Topic |
|
|
|