topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Friday April 19, 2024, 7:50 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - czb [ switch to compact view ]

Pages: prev1 ... 5 6 7 8 9 [10] 11 12 13 14next
226
FARR Plugins and Aliases / Re: TodoTXT
« on: April 25, 2008, 04:53 AM »
rbeeger: I have changed it. ;)
BTW: you can easily change & to anything you wish by changing enter = "&"  (3rd line) in fscript.py ;)

227
Well I downloaded ActivePython 2.5.2.2 for Windows (x86) and then just pressing next all the time during installation ;) I must say that before ActivePython I had there normal python for a while (like two hours :) ) which I have uninstalled before ActivePython installation. I have WinXP SP2 ;) I have also installed Kudos or how it is called (from the same site) but it was just because I wanted somehow to turn JIT debugging on for python - was not succesful. But python script was working even without it...

228
Find And Run Robot / Re: FARR.setInterval(id, millisecond, pFunc);
« on: April 21, 2008, 06:34 AM »
I have tried following code and I get variance of type error (tranlated from czech) with setInterval and then I also get that FARR.killInterval(id); is not supported by object... any idea what to do with it?
Code: Javascript [Select]
  1. // plugin script :
  2. displayname="FScript";
  3. versionstring="1.0.0";
  4. releasedatestring="Jan 1st, 2008";
  5. author="Author";
  6. updateurl="";
  7. homepageurl="";
  8. shortdescription="FScript";
  9. longdescription="FScript";
  10. advconfigstring="FScript";
  11. readmestring="FScript";
  12. iconfilename="FScript.ico";
  13.  
  14. aliasstr="aa";
  15. regexstr="";
  16. regexfilterstr="";
  17. keywordstr="";
  18. scorestr="300";
  19.  
  20. // type
  21. UNKNOWN=0; FILE=1; FOLDER=2; ALIAS=3; URL=4; PLUGIN=5; CLIP=5;
  22. // Postprocessing
  23. IMMEDIATE_DISPLAY=0; ADDSCORE=1; MATCH_AGAINST_SEARCH=2;
  24. // search state
  25. STOPPED=0; SEARCHING=1;
  26.  
  27. function test(){
  28.   FARR.debug("test");
  29. }
  30.  
  31. function onSearchBegin(querykey, explicit, queryraw, querynokeyword) {
  32.         if(!explicit) {
  33.                 return;
  34.         }
  35.   FARR.setInterval(1, 5000, test());
  36.   FARR.killInterval(1);
  37. }

229
Find And Run Robot / Re: FARR.setInterval(id, millisecond, pFunc);
« on: April 21, 2008, 05:48 AM »
justice: I see... and does it work for you?

230
Find And Run Robot / FARR.setInterval(id, millisecond, pFunc);
« on: April 21, 2008, 05:08 AM »
Hi,
does it work inside javascript? I have tried it, but pFunc was allways called immediately.

231
Find And Run Robot / Re: Output to Farr's memo mode
« on: April 21, 2008, 01:13 AM »
I am sorry it is two posts up :) I didnt put it onto my website yet :)

http://czb.dcmembers.../Console/Console.zip

EDIT: or you can use dc updater ;)

232
FARR Plugins and Aliases / Re: TodoTXT
« on: April 20, 2008, 02:46 PM »
I am not coder, but I think you need activescript version of python

233
FARR Plugins and Aliases / Re: TodoTXT
« on: April 20, 2008, 01:45 PM »

234
Find And Run Robot / Re: Output to Farr's memo mode
« on: April 20, 2008, 05:58 AM »
Hi, I have uploaded new version (a little corrected one)
I have tested in on this:

cn "C:\Program Files\7-Zip\7z.exe" a -tzip "C:\Program Files\7-Zip\dsf.zip" "D:\dsf.txt"&&

and it worked fine ;)

PS: && acts here as command separator and as "enter"

235
FARR Plugins and Aliases / Re: TodoTXT
« on: April 20, 2008, 05:31 AM »
I have uploaded completely different version. It is pure python (Rewriting to javascript would take to long). So you need activepython installed to make it work - download here:
http://www.activesta...9d-a722-7a0c2dea2758

Colors and Birdseye should work. Timeline is there also but I do not know if it works or not (someone should test it)

So test it and tell me if everything works fine ;) I was not able to test everything

Settings can be found in the top of fscript.py file. Also you can change there colors.

BTW: now it could probably be possible to implement jabber bot, icq bot, todo cron etc ;)

236
FARR Plugins and Aliases / Re: TodoTXT
« on: April 15, 2008, 11:30 AM »
An example is here:
http://www.youtube.c...com/library/todo.sh/

Well, what I am working on now is rewriting todo.py into todo.js :) I am on 300th line out of 1000 lines :) But it takes some time...  So I do not want to bother making todo.py work ;)

237
FARR Plugins and Aliases / Re: TodoTXT
« on: April 15, 2008, 11:02 AM »
I have no idea :) it is because of py2exe... I actualy dont know python, but I have found one can use __file__ to get path of the file but it works only as todo.py file.. when I tried the same with todo.exe there was an error that __file__ doesnt exist :(

238
FARR Plugins and Aliases / Re: TodoTXT
« on: April 15, 2008, 02:31 AM »
Thanks for replies :up:

Frunch:
colors: I do not think it is possible.. the only way would be to rewrite whole todo.py into js...or at least rewrite parts of it with colors.. I will take a look and see what I can do about it :)
clrscr: I will do it ;)
enter: Not possible right now, but I hope mouser is working on correction ;) Now only printable characters can be used...

EDIT: I have added clrscr option ;)

239
FARR Plugins and Aliases / Re: TodoTXT
« on: April 14, 2008, 11:49 AM »
yeah.. with the fixed path it is no good. But you do not have to move FARR:) it is enough if you just create empty folder here:
C:\Program Files\FindAndRunRobot\Plugins\TodoTXT
and it will store txt files there ;) I could put there any other fixed path (like C:\TODOTXT) if you like

240
FARR Plugins and Aliases / Re: TodoTXT
« on: April 14, 2008, 10:54 AM »
I am sory but I do not have much time :)
but the point is that the plugin path must be:
C:\Program Files\FindAndRunRobot\Plugins\TodoTXT
it is where todo.exe creates txt files...
otherwise you get following error:
Can't open todo directory: C:\Program Files\FindAndRunRobot\Plugins\TodoTXT

So try to type "td ?," (dont forget comma at the end) and you should see list of options ;)

241
FARR Plugins and Aliases / TodoTXT - discontinued
« on: April 14, 2008, 09:24 AM »
discontinued

242
Find And Run Robot / Re: Output to Farr's memo mode
« on: April 14, 2008, 04:38 AM »
I have coded something. But I do not know if it is what you expect :)

http://czb.dcmembers.../Console/Console.zip

Just tell me if it needs some modifications ;)

edit: type something like "cn cd C:\ && dir &&"

edit2: to mouser: in the moment when I type "\" (try above example) memo hint disapears... why is that?

edit3: unfortunately I do not know hot to make it work with aliases...

243
Fruch:One option would be to convert pthon into javascript and then I would be able to do something with it :)
Or if you know python well you can try this:
https://www.donation...ex.php?topic=12232.0 ;)

244
FARR Plugins and Aliases / Re: Dicts Thesaurus
« on: April 10, 2008, 07:40 AM »
great you like it ;)

245
FARR Plugins and Aliases / Dicts Thesaurus - closed
« on: April 09, 2008, 03:09 PM »
This topic has been discontinued.
See:
https://www.donation...ex.php?topic=17153.0

246
Find And Run Robot / Re: I cannot use numpad.
« on: April 06, 2008, 02:28 AM »
Well, I had exactly the same problem. You can disable numpad in setting/interface. Still you can call programs by F1,F2...

247
FARR Plugins and Aliases / Re: Character Table
« on: April 05, 2008, 02:56 AM »
Yes.. but it is problem of JS SDK.. so let us hope it gets repaired somehow  :Thmbsup:

248
Coding Snacks / Re: mouse speed switcher
« on: April 04, 2008, 06:05 AM »
I have found following:
Code: AutoIt [Select]
  1. /*
  2. AutoHotkey Version: 1.x
  3. Language:   English
  4. Platform:   WinXP
  5.  
  6. Title:      Laptop Mouse Monitor
  7. Author:      Wesley Treat, www.wesleytreat.com
  8. Date:      May 2006
  9.  
  10. Script Function:
  11. If a USB mouse is plugged into the laptop, optimize the pointer speed and
  12. precision settings for the mouse. If it's not, optimize the settings
  13. for the touch pad. Monitor for changes in mouse's presence.
  14. */
  15.  
  16.  
  17. ; ============================================================
  18. ; CONFIGURATION
  19. ; ============================================================
  20.  
  21. ; ------------------------------------------------------------
  22. ; USER POINTER SETTINGS
  23.  
  24. ; Mouse ID
  25. ; Check HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Mouclass\Enum
  26. ; to determine the ID of your mouse. This should be the value of the key that
  27. ; appears and disappears when you plug in and unplug your mouse. You can
  28. ; probably just use "HID."
  29.  
  30. MouseID = HID
  31.  
  32.  
  33. ; Pointer Speed (1-20)
  34. PadSpeed = 10
  35. MouseSpeed = 12
  36.  
  37. ; Enhance Pointer Precision
  38. PadEnhance = 1
  39. MouseEnhance = 0
  40.  
  41. ; Precision Thresholds
  42. PadThreshold1 = 6
  43. PadThreshold2 = 10
  44. MouseThreshold1 = 0
  45. MouseThreshold2 = 0
  46.  
  47. ; For details on precision and threshold settings, see
  48. ; http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wceui40/html/cerefSystemParametersInfo.asp
  49. ; under SPI_SETMOUSE. By default, thresholds 1 and 2 are "6" and "10" respectively.
  50.  
  51.  
  52. ; Use a tray icon?
  53. TrayIcon = 1
  54.  
  55. ; Tray Icons
  56. ; If you want the tray icon to reflect the current settings, enter a valid
  57. ; PadIcon and PadIconGroup. To use the only standard AutoHotkey icon, comment
  58. ; out all the icon locations.
  59.  
  60. MouseIcon = %A_WinDir%\system32\main.cpl
  61. MouseIconGroup = 1
  62.  
  63. ; The likely location of the Alps Touch Pad icon.
  64. ; PadIcon = %ProgramFiles%\Apoint\Apoint.exe
  65. ; PadIconGroup = 1
  66.  
  67. ; The likely location of the Synaptics Touch Pad icon.
  68. ; PadIcon = %ProgramFiles%\Synaptics\SynTP\SynTPEnh.exe
  69. ; PadIconGroup = 1
  70.  
  71.  
  72. ; If you like, you can change the names for your devices. These names are
  73. ; reflected in the tooltips.
  74. MouseName = Mouse
  75. PadName = Touch Pad
  76.  
  77. ; ------------------------------------------------------------
  78. ; SCRIPT SETTINGS - YOU SHOULDN'T NEED TO CHANGE ANYTHING BELOW THIS LINE.
  79.  
  80. If !TrayIcon
  81.    Menu, Tray, NoIcon
  82.  
  83. ; Constants
  84. ; Read more at the following:
  85. ; http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/systemparametersinfo.asp
  86. ; http://www.pinvoke.net/search.aspx?search=SPI&namespace=%5BAll%5D
  87. SPI_GETMOUSE =      0x0003
  88. SPI_SETMOUSE =      0x0004
  89. SPI_GETMOUSESPEED =   0x0070
  90. SPI_SETMOUSESPEED =   0x0071
  91.  
  92. ; Watch for hardware changes
  93. OnMessage(0x219, "HardwareUpdate")
  94.  
  95. ; Check whether or not the mouse exists to begin with and make sure the pointer
  96. ; settings match.
  97.    Gosub, MouseCheck
  98.    Gosub, ChangeSettings
  99.    If !MousePresent and !FileExist(PadIcon) and FileExist(MouseIcon)
  100.       Menu, Tray, Icon, %MouseIcon%, %MouseIconGroup%
  101.    MouseLast = %MousePresent%
  102.    ToolTip, Pointer Settings Set To: %CurrentName%
  103.    Sleep, 2000
  104.    ToolTip
  105.    Return
  106.  
  107.  
  108. Exit ; Everything above this line is run when the script is loaded.
  109.  
  110.  
  111. ; ============================================================
  112. ; FUNCTIONS & SUBROUTINES
  113. ; ============================================================
  114.  
  115. HardwareUpdate()
  116. {
  117.    Global MouseLast
  118.    Global MousePresent
  119.    Global CurrentName
  120.    Gosub, MouseCheck
  121.    ; We might get phantom hardware-change messages, so make sure the status
  122.    ; of the mouse has actually changed before changing any settings.
  123.    If MousePresent = %MouseLast%
  124.       Exit
  125.    Else
  126.    {
  127.       Gosub, ChangeSettings
  128.       MouseLast = %MousePresent%   ; Update mouse status.
  129.       ToolTip, Pointer Settings Changed To: %CurrentName%
  130.       Sleep, 2000
  131.       ToolTip
  132.    }
  133.    Return
  134. }
  135.  
  136. MouseCheck:
  137.    MousePresent = 0
  138.    Sleep, 1000   ; Give the registry a moment to update.
  139.    Loop, HKEY_LOCAL_MACHINE, SYSTEM\CurrentControlSet\Services\Mouclass\Enum, 0, 0
  140.    {
  141.       RegRead, CurrentValue
  142.       IfInString, CurrentValue, %MouseID%
  143.       {
  144.          MousePresent = 1
  145.          Break   ; Don't check any more values.
  146.       }
  147.    }
  148.    Return
  149.  
  150. ChangeSettings:
  151.    If MousePresent
  152.    {
  153.       CurrentName = %MouseName%
  154.       DeviceSpeed = %MouseSpeed%
  155.       DeviceEnhance = %MouseEnhance%
  156.       DeviceThreshold1 = %MouseThreshold1%
  157.       DeviceThreshold2 = %MouseThreshold2%
  158.       If TrayIcon and FileExist(MouseIcon)
  159.          Menu, Tray, Icon, %MouseIcon%, %MouseIconGroup%
  160.       Menu, Tray, Tip, Current Pointer Settings: %CurrentName%
  161.    }
  162.    Else
  163.    {
  164.       CurrentName = %PadName%
  165.       DeviceSpeed = %PadSpeed%
  166.       DeviceEnhance = %PadEnhance%
  167.       DeviceThreshold1 = %PadThreshold1%
  168.       DeviceThreshold2 = %PadThreshold2%
  169.       If TrayIcon and FileExist(PadIcon)
  170.          Menu, Tray, Icon, %PadIcon%, %PadIconGroup%
  171.       Menu, Tray, Tip, Current Pointer Settings: %CurrentName%
  172.    }
  173.  
  174.    VarSetCapacity(DeviceArray, 12, 0)
  175.    InsertInteger(DeviceThreshold1, DeviceArray, 0)   ; Reg. Value MouseThreshold1
  176.    InsertInteger(DeviceThreshold2, DeviceArray, 4)   ; Reg. Value MouseThreshold2
  177.    InsertInteger(DeviceEnhance, DeviceArray, 8)      ; Reg. Value MouseSpeed
  178.  
  179.    InsertInteger(pInteger, ByRef pDest, pOffset = 0, pSize = 4)
  180.    ; The caller must ensure that pDest has sufficient capacity.  To preserve any existing contents in pDest,
  181.    ; only pSize number of bytes starting at pOffset are altered in it.
  182.    {
  183.       Loop %pSize%  ; Copy each byte in the integer into the structure as raw binary data.
  184.          DllCall("RtlFillMemory", "UInt", &pDest + pOffset + A_Index-1, "UInt", 1, "UChar", pInteger >> 8*(A_Index-1) & 0xFF)
  185.    }
  186.  
  187.    ; Keep this here for future reference.
  188.    ; DllCall("SystemParametersInfo", UInt, SPI_GETMOUSESPEED, UInt, 0, UIntP, SpeedCurrent, UInt, 0)
  189.  
  190.    ; Change the pointer speed.
  191.    DllCall("SystemParametersInfo", UInt, SPI_SETMOUSESPEED, UInt, 0, UInt, DeviceSpeed, UInt, 1)
  192.    ; Change the pointer precision settings.
  193.    DllCall("SystemParametersInfo", UInt, SPI_SETMOUSE, UInt, 0, Str, DeviceArray, UInt, 1)
  194.    Return
It changes mouse/touchpad setting according to if USB mouse is present or not. It would be even better if anyone could add option to switch mouse/touchpad manualy through program menu. Unfortunately I do not know autohotkey to do it by myself.

249
Coding Snacks / Re: mouse speed switcher
« on: April 04, 2008, 04:07 AM »
I have found:
http://www.autohotke...viewtopic.php?t=5605
So I will play a little with it and see :up:

250
Coding Snacks / mouse speed switcher
« on: April 04, 2008, 04:01 AM »
Hi,
what I really would like to have is a tiny program which would stay in tray and after clicking on it, it would change speed of mouse (so that I can switch between usb mouse and touchpad). Two predefined speeds of mouse would be fine. Also ability to assign some key to it would be great. Is that possible with autohotkey? If so, just tell me pls the function which changes mouse speed and I will code it by myself. There exists already mouseswitcher, but it is paid.
Thanks for any ideas ;)

Pages: prev1 ... 5 6 7 8 9 [10] 11 12 13 14next