topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • June 21, 2018, 08:43 PM
  • Proudly celebrating 13 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 - me_7834539 [ switch to compact view ]

Pages: [1] 2next
1
ps some background: I don't typically want to use several Opera _windows_; I also did not want to use IE due to security reasons (I have set it up as ultra-restrictive=not usable), but thinking of it, I guess one could put leo into the trusted zone, so one could indeed use IE for this. startup-times of IE are quite short I think, at least on recent computers, and one could do it with a reuse-alogorithm if IE is already loaded... don't know.

2
Hello,

http://dict.leo.org is a very popular translation service in Germany. It also features Chinese. There is a commercial app, "Lion", that will translate any text, typically upon ctrl-rightclick, in a dedicated lion-browser window in which leo is then loaded.
The disadvantages: yearly 5 Euro-fee and more problems with ads.

Note: This is a fun idea, and perhaps s.b. finds it nice. Since I could purchase Lion etc, I am not going to set big bucks on this... :) Take it or leave it, perhaps some ideas within my suggestion are of interest , I don't know :-) Thanks! :-)

Here's my idea:
Let's say the user is reading Chinese text in some program and wants to translate a string of 2 Chinese signs.
If no dedicated program is installed, the user will do this:
1. select signs
2. ctrl-c
3. alt-tab to the browser
4.1 if leo-tab is open and active: proceed with 5
4.2 if leo-tab is loaded but not active: select leo-tab
4.3 if no leo-tab is loaded: load leo
5. if cursor not in text field: place cursor [usually no problem]
6. ctrl-v
7. return
=====

My idea:

1. select signs
2. press keyboardshortcut (or run an exe or click a .lnk) (or on some keyboards: Press an AppKey defined in registry that is associated with a special key on some e.g. Lenovo keyboards (is an exe necessary for this that is linked to the Appkey (shellexec...)?)
3. then the following is done automatically:
3.1.1 text is copied (UTF-8?)
3.1.2 if no text was selected: msg window: please select some text first!
3.2.1 If a window exists that contains "Chinesisch - Deutsch Wörterbuch - leo.org" within its title and that belongs to an opera.exe [/...] process (which means that the correct tab is loaded and active) -> activate that window, ctrg-v and return. (cursor placement never seems to be a problem)
3.2.2 If Opera is loaded but a leo tab is not active: activate Opera and show message: "please activate your existing leo-tab and then hit CTRL-V and Return. If no leo-tab exists, just click _here_ to launch a new leo tab and translate.", with here = https://dict.leo.org...ml#/search={{{COPIED TEXT}}}&searchLoc=1&resultOrder=basic&multiwordShowSingle=on
4. Additional idea: If currently a window is active that contains "Chinesisch - Deutsch Wörterbuch - leo.org", then the shortcuts/lnk/exe will behave differently: It will activate the window of the program from from where the last translation was launched  (i.e., usually switch back to that program).




3
hello, thank you for looking into this. yes, to have a real advantage it will have to be able to handle multiple processes. but it's really a bit niche, for people with multiple installations of chrome/opera/ff.

4
EDIT: I just realized that all-in-all, pssuspend, even though not toggling, should suffice for most users (it suspends *all* exes), and situations with multiple browser installations with identical exes (but naturally differing path names) are an exception.

I'll still leave this suggestion here because I think it points to an important problem and details what is needed to get an one-program-solves-every-situation solution. Perhaps someone finds this useful.

Sorry for the confusion...

5
(you may want to read my second post in this thread first)

Hello,

with browsers like Chrome and the new Opera browser, it has become a standard that dozens of chrome.exe/opera.exe processes are running on a system. With multiple installations, these processes do not necessarily belong to the same browser installation.

E.g. running processes:
C:\chrome 1\chrome.exe
C:\chrome 1\chrome.exe
C:\chrome 1\chrome.exe
C:\chrome 2\chrome.exe
C:\chrome 2\chrome.exe
C:\chrome 2\chrome.exe
C:\chrome 2\chrome.exe
C:\chrome 2\chrome.exe

To save battery, reduce heat and noise, and get more power out of the computer, it has proven to be very handy to suspend processes of programs (especially browsers with lots of tabs) that are not always in use but should be resumable within a millisecond. The typical user, both novice and professional, will leave their multi-tabbed browser running in the background.

The suggested program should work like this:

Either by launching/clicking a .lnk/... file with a command, and/or by means of a shortcut like e.g. Win-N, the specified processes *within the specified directory only* are all suspended/resumed. There could/should also be a toggle command suspend/resume as well as dedicated suspend/resume commands.

There are various kinds of programs out there, such as yawffer, pssuspend, nircmd with the the suspend command, BES Battle Encoder, and Process Lasso, that all feature various aspects of described program, but none is able to do what I described here. Put together, all the programs however prove it is feasible.

* yawffer cannot suspend by path, but can toggle by keystroke
* BES cannot suspend by path, but can toggle and even throttle CPU usage
* nircmd cannot suspend by path, but is lightweight command line
* pssuspend cannot suspend by path, but is lightweight command line
* Process Lasso can suspend by path, but only manually instance-by-instance (which is extremely (!) tedious), and also is heavy-weight/very complex. But PL proves the concept works.

(Also, I think some of these programs suspend *all* exes with the same name, and some just one, randomly.)

So, a common should suspend/resume all chrome.exe's running in c:\chrome 1\, but not those in chrome 2.

I think using a catchy name, the program might get some attention, e.g. hinting at Chrome (even though I personally use Opera), one could name it ChromeSuspender ... ;)


6
Post New Requests Here / Re: IDEA: Generic saving reminder
« on: October 10, 2013, 11:10 AM »
Just an update, I have been using this program for over a year now and it worked great to remind me to save e-mail drafts in Windows Live Mail, which I still prefer to most other Clients for various reasons.
It also works well for OpenOffice, if one does not want to use the built-in saving feature.
Thanks again, skwire! :)  :Thmbsup:

7
Post New Requests Here / Re: IDEA: Generic saving reminder
« on: September 29, 2012, 11:09 AM »
Here's some general comments and instructions:

- Copy and rename and you can watch additional programs (simply configure the additional ini file)

- It also works nicely with OpenOffice (classname is SALFRAME)

- Set up to autostart at windows boot (and configure tray icons to be fully hidden)

- Pressing Ctrl-S will activate the first of the windows that needs attention (unless it's in the foreground already), press Ctrl-S
again to save (super ergonomic! :) ). (If more than one window has been detected (as shown in the box), you may want to go through all opened Windows that need care in terms of saving.)

- Sending Ctrl-S directly to the application is _generally_ something unreliable and will also interfere with your work. This program is _the best you can get_ in terms of saving your work regularly, unless the program you use has a good built-in autosave function.

- You may want to combine this program with commercial programs like e.g. SecondCopy. You'll have e.g. 25 former versions, with e.g. 10 minutes of work between each.

- I have been using and testing this beautiful script and it works like a charm and has actually prevented data loss for me. It is as unobstrusive as it can be, and did not interfere with work at all.

- You must can use e.g. the window spy function of ahk (right click AHK tray icon) to find out the classname of your program.
##however, the window spy function has been forgotten to be shown in meReminder's tray context menu (@skwire -> you may want to add this.) Anyway, otherwise just install AHK and just use Window Spy from its startmenu group.

- For testing, you can set the ini file to e.g. IntervalMins=0.1 so it will pop up the saving reminder every 6 seconds.

- If this program saved you from data loss or if it helps you to regularly save/and or backup your work, please consider showing some appreciation to skwire by means of a small donation (like I did), I am really so happy with this little program, thanks skwire!!! :)



--------------------------------------
Here's some tags: save, remind, autosave, save reminder, regularly, intervals; here's some German tags: Speichern, Speicher-Erinnerung, ans Speichern erinnern, Erinnerungsprogramm, regelmäßige Erinnerung

8
Post New Requests Here / Re: IDEA: Generic savíng reminder
« on: September 04, 2012, 10:29 AM »
Hi,

Window Class = ATH_Note
Window Caption is irrelevant
WLM version in use is 2009

All of that is not really important, since the script should work generically for any Window Class, by simply subsitituting the Window Class name. No need to install WLM.

:-)

9
Post New Requests Here / Re: IDEA: Generic savíng reminder
« on: September 04, 2012, 06:54 AM »
hello, ATH_Notes is the name of WLM's e-mail composure windows!

Thanks for asking. :)


10
Post New Requests Here / IDEA: Generic saving reminder
« on: August 25, 2012, 07:54 AM »
Savíng reminder request

Hello, some time ago, an ahk forum member kindly wrote an AHK script for me
that would autosave message drafts in windows live mail. sadly, for some odd
reason it wouldn't work and would send typed letters into the draft quite often.
The script was also fairly complicated. (I am once again thanking the author for
their efforts tough!!) Today my system froze (win 7, usually stable) and I once
more lost a draft. So I decided this is a problem that needs solving, and probably
applies to many more programs other than WLM.

My idea is as follows: a script that will do this:

- at certain times, ideally every 15 minutes, i.e. 24h/d starting 00:00, 00:15, ... 23:45
it will simply pop up a save reminder popup box window (ideally with an OK button) if,
only if, at least one ATH_Note windows is currenly open.

bonus features would be:
- don't show another reminder box if one reminder box is already in display.
- show the total amount of currently opened ATH_Notes in the message
- option: choose key that will close the message (to prevent closure whilst
  typing space, which one obviously will be typing fairly often).
- experimental option: closing the message box will automatically
  send ctrl-S to all opened ATH_Note windows.
- you may want to check out above mentioned sophisticated yet partially problematic
  autosave script at: http://www.autohotke....php?f=1&t=85296

...thanks to all who consider this idea's, uhm, implementation... !!!!  :-*

11
Post New Requests Here / Re: IDEA: Alt-Tab with AltGr-.
« on: July 12, 2012, 07:20 AM »
no, >!:::ShiftAltTab does not work, but I think this is not really such an important feature, and it can be implemented with an additional key that ideally is near to the "dot key".
thanks again!!!

12
Post New Requests Here / Re: IDEA: Alt-Tab with AltGr-.
« on: July 11, 2012, 05:51 PM »
@tomos

that's cool, I always though AltGr needs to be specified by both ctrl and alt.

Btw,

RAlt & .::AltTab

works too.

Thanks. For 95% of cases, your help may well solve the problem! Thank you!!

13
Post New Requests Here / Re: IDEA: Alt-Tab with AltGr-.
« on: July 11, 2012, 03:32 PM »
no  8)  :)

14
Post New Requests Here / Re: IDEA: Alt-Tab with AltGr-.
« on: July 11, 2012, 01:57 PM »
i found this, http://www.autohotke...iewtopic.php?t=56870

perhaps this is of help...

but I'm a bit suspicious... at least there seems to be a comma missing (or too much) in the "suspend" lines...

15
Post New Requests Here / Re: IDEA: Alt-Tab with AltGr-.
« on: July 11, 2012, 01:33 PM »
Hello, as far as I can see, AltGR is not defined. They say you need to use LControl and RAlt, however

LControl & RAlt & .::AltTab

will not work, either.


16
Post New Requests Here / IDEA: Alt-Tab with AltGr-.
« on: July 11, 2012, 10:03 AM »
Hello,
I know of skwire's AltEdge (and variations thereof), and I wanted to suggest that alt-tab behavior be easily accesible from the touchpad region, even without mouse gestures etc. This could be done by using AltGr in combination with "." (dot) since these two keys are very easily/ergonomically accessible from the touchpad area, especially on netbooks (might also do with altgr-space, but i'd prefer the dot...).

If this is too difficult, or too error-prone, I'd also be happy if altgr-. would at least switch between the current and the previously active window.

(I did some research to find apps that might do this, prior to posting this, and also tried to, uhm, "code" on my own, but results were... very buggy... (stuck control key etc...) :) )

AltGr should remain usable for other applications.

here's a link to alt-tab... http://www.autohotke...eys.htm#AltTabDetail


17
General Software Discussion / Re: sorting units of text
« on: July 06, 2012, 09:41 AM »
great!!

i posted the "bug" here
http://www.autohotke....php?f=1&t=88471

so, let's see if anyone knows the answer!

18
General Software Discussion / Re: sorting units of text
« on: July 06, 2012, 09:26 AM »
the L ansi version works properly, too. and both unicode and ansi version do not work properly in described case...
I'd like to ask an important question: Do you think it's likely that your script will (on autohotkey vanilla) produce even more problems, other than the first-line-sorting bug? Would you find it interesing if i re-posted my tests in the ahk forum? I would do so, if you think it's a good idea.

19
General Software Discussion / Re: sorting units of text
« on: July 06, 2012, 08:20 AM »

hello,

i did tests with

(a) the vanilla install
(b) the l version, unicode
(c) the l version, ansi

and two snippets of text which are different only due to line breaks before and after the text;
text start immediately after/before the "<<<"/">>>" delimiters.

(1)
>>>>>>>>


qqq   aldkjf

baa   aldfkjad

abb   aldjfaldfj

<<<<<<<<

(2)
>>>>>>>>>>>qqq   aldkjf

baa   aldfkjad

abb   aldjfaldfj<<<<<<<<


results, reproducible:

(a)(1) wrong sorting
(b)(1) wrong sorting
(c)(1) wrong sorting
(a)(2) wrong sorting
(b)(2) correct sorting
(c)(2) correct sorting

wrong sorting = first line wrongly stays on top, following lines are sorted correctly

editor used = notepad.

personally, I am fine with the script as it is, despite the minor inconvenience. perhaps it would be more efficient
to ask for help in the ahk forums, at this point, really, if you are curious what the problem is...  

For the record, i am using a (German) Sony Vaio X.

(re)installing ahk l version / vanilla version seemed, and was in fact, very easy and unproblematic, so i didnt wait for the test machine. :)

ps. i might not find time to reply/do more tests these days. thx for understanding.

20
General Software Discussion / Re: sorting units of text
« on: July 05, 2012, 05:59 PM »
hello, thanks a lot. I will be installing it on a test machine on sunday. I don't like overwriting (resp. later reinstalling) the vanilla version, due to the compatiblity warnings. (I can't understand why this replaces AHK. they should make a separate installtion and define a separate extension, like ".ahkl" or so. But I may be missing s.th.)

21
General Software Discussion / Re: sorting units of text
« on: July 05, 2012, 04:51 PM »
@skwire
just out of curiosity, did you find out why the sorting does not work for the first line...?

oh, and, from my point of view, the script did not seem completed because of this "bug", when in fact, from your pov it was. so, since this is just a minor annoyance, I think it's time to say a huge thank you for the script which essential solved my problem! thank you!!!!!!!  :-*

22
General Software Discussion / Re: sorting units of text
« on: July 02, 2012, 04:29 PM »
hello, it will show a message box displaying aenpqr. so yes, it starts with a, if this is what you wanted to find out. :)

23
General Software Discussion / Re: sorting units of text
« on: July 02, 2012, 12:00 PM »
btw, I am wondering if donation coder is the right forum for discussing AHK... seems like the ahk forums might solve the problem faster at this point... just an idea though.

24
General Software Discussion / Re: sorting units of text
« on: July 02, 2012, 11:57 AM »
hello, the script's behavior is all a bit too voodoo to me... hmm. first of all:

this:
qqq   testtest

ppp   testtest

will sort correctly for you? that's really strange. I am using windows notepad and win-i as a shortcut; win 7 32bit (German). autohotkey recently installed.

(side remark, I suppose the capital D in your suggestion is of no importance, I seem to get identical results). so, adding CL yields lots of errors:

qqq   test1a

qqq   test1b

aaa   test2

ppp   test3

....is turned into......:

§aaa   test2

ppp   test3

qqq   test1bÂqqq   test1a

however, note that aaa is now the first item.

what is strange, too: text is NOT broken when it contains "§". (I tested this in your original script, not in the one with CL added).


25
General Software Discussion / Re: sorting units of text
« on: July 02, 2012, 09:37 AM »
hello jody,

what do you mean by "all" blank lines? only one "type" of blank lines would have been possible in the text example you gave, which are blank lines that separate each item from another.

different "types" of blank lines are, afaics, only thinkable if there are several items of the same category involved (which typically is the case, of course). if this is what you meant, here's an example:

this is original, non-transformed text:

(note: the line numbering is not part of the text, obviously)
Code: Text [Select]
  1. cat1    Here is some cat1 text.
  2.         Here is some continued cat1 text.
  3.  
  4. cat3    Here is some cat3 text.
  5.         Here is some continued cat3 text.
  6.  
  7. cat2    Here is some cat2 text.
  8.         Here is some continued cat2 text.
  9.         Here is some more continued cat2 text.
  10.  
  11. cat2    Here is ANOTHER cat2 item.

this is what your original script currently does:

Code: Text [Select]
  1. cat1    Here is some cat1 text.
  2.         Here is some continued cat1 text.
  3.  
  4. cat2    Here is ANOTHER cat2 item.
  5.  
  6. cat2    Here is some cat2 text.
  7.         Here is some continued cat2 text.
  8.         Here is some more continued cat2 text.
  9.  
  10. cat3    Here is some cat3 text.
  11.         Here is some continued cat3 text.

here is what I meant by removing blank lines:

Code: Text [Select]
  1. cat1    Here is some cat1 text.
  2.         Here is some continued cat1 text.
  3. cat2    Here is ANOTHER cat2 item.
  4. cat2    Here is some cat2 text.
  5.         Here is some continued cat2 text.
  6.         Here is some more continued cat2 text.
  7. cat3    Here is some cat3 text.
  8.         Here is some continued cat3 text.

here is what is it would look like if it differentiated between blank lines that sperated items, versus seperating blocks of same-category-items. I suppose this would be a bit difficult to code and is not really necessary, though it would be neat, of course.

Code: Text [Select]
  1. cat1    Here is some cat1 text.
  2.         Here is some continued cat1 text.
  3.  
  4. cat2    Here is ANOTHER cat2 item.
  5. cat2    Here is some cat2 text.
  6.         Here is some continued cat2 text.
  7.         Here is some more continued cat2 text.
  8.  
  9. cat3    Here is some cat3 text.
  10.         Here is some continued cat3 text.

(side rematk: I am now outing myself as a total idiot, I just noticed that the script temporarily replaces blank lines by §, I am curious as to why this does not break text that originally contains §.)

and here is an example of text where your script will not sort the first item:

Code: Text [Select]
  1. qqq     this is a test line (q)
  2.  
  3. aaa     this is a test line (a)
  4.  
  5. ccc     this is a test line (c1)
  6.  
  7. bbb     this is a test line (b)
  8.  
  9. ccc     this is a test line (c2)
  10.  
  11.  
  12. -------------------------------
  13.  
  14. here's the faulty result:
  15.  
  16. qqq     this is a test line (q)
  17.  
  18. aaa     this is a test line (a)
  19.  
  20. bbb     this is a test line (b)
  21.  
  22. ccc     this is a test line (c1)
  23.  
  24. ccc     this is a test line (c2)

thanks for your efforts!!

matthias

Pages: [1] 2next