topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Tuesday March 17, 2026, 9:26 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

Recent Posts

Pages: prev1 ... 135 136 137 138 139 [140] 141 142 143 144 145 146next
3476
Developer's Corner / Re: Choosing an Installer
« Last post by Ath on January 28, 2011, 07:29 AM »
When creating the installer for JottiQ together with worstje, I published the Inno Setup script-base on my blog
It's a bit more modular then the template by kyrathaba, but also a bit more complex maybe... If you need any support, just ping ;)

3477
General Software Discussion / Re: Simple Commandline to send Keystrokes
« Last post by Ath on January 27, 2011, 05:52 AM »
My "Tool Properties" window fields are:
Title: WinSendKeys
Program: C:\Users\Tyler\Books\Software\Ripping books\WinSendKeys.exe
Working Dir: C:\Users\Tyler\Books\Software\Ripping books\
Parameters: (blank)
That looks alright to me, now add the below stuff into 'Parameters:'

WinSendKeys <50> <"Materials"> <"{RIGHT}">
WinSendKeys [-t 50] [-d] [-w] <"Materials"> <"{RIGHT}">
WinSendKeys [-t 50] [-d] [-w] "Materials" "{RIGHT}"

The window is "Materials Science and Engineering: An Introduction, 8th Edition - CourseSmart Bookshelf". I've tried using the full name and different lengths, different times, different keys... :/
Hm, I've used the default documentation conventions for including optional parameters in square-brackets '[]' and 'explaining words' in angle-brackets '<>', and those shouldn't be actually included in the parameter list.
If you need to use a title with multiple words separated by spaces, then surround that with double-quotes.

So your parameters could be:
"- CourseSmart Bookshelf" {RIGHT}
To select the application CourseSmart Bookshelf with an opened document (the dash before CourseSmart indicates that), and send it a 'cursor right' keystroke, just like you pressed that key on the keyboard. If you want the PgDn key pressed, replace {RIGHT} with {PGDN}. You obviously found the list I referred. ;)
The timedelay should only be changed if your application can't handle the current speed of sending multiple keystrokes. It's only applied if the keystroke names/mnemonics are separated by spaces, so:
"{RIGHT} {RIGHT}" : Sends Right-Cursor, Space, Right-Cursor without any delay
{RIGHT} {RIGHT} : Sends Right-Cursor, (delay for 100 msec), Right-Cursor
You can (and probably should) experiment/test from a cmd-prompt.
3478
General Software Discussion / Re: Simple Commandline to send Keystrokes
« Last post by Ath on January 25, 2011, 05:19 PM »
I updated the original script, to write to WinSendKeys.log when -d parameter is used, effectively re-enabling this option. The compiled attachment is ofcourse also updated.

Thanks a ton in advance!
This might have triggered me, even though I just yet read close enough to spot it :-*

Now let's wait for the OP to comment on this.
3479
Timns Apps / Re: Build 89
« Last post by Ath on January 25, 2011, 03:55 PM »
Also, I'd like to know if we're doing better with things like ctrl+enter, win+G, alt-something-or-other
Tested the Ctrl-Enter issue and build 91 at least fixes that (didn't get to see build 89, just saw 91 today).

I now have 2 issues, 1st that double-clicking the systray icon doesn't restore the main screen (like others reported), and 2nd, right-click/Show pops the main screen up at my secondary monitor, to the left of my main monitor, even though it was closed when on the main monitor...
3480
The new MS installers pick the drive with the most free space for their temp stuff extraction, and it was your external drive that won the match ;)
You may need to return to that friend and use the same account on his PC to be able to remove the directory, if you can't after taking ownership of that directory. (That's hiding behind one of several Advanced buttons in that Properties screen) Also be sure not to access the directory with Explorer before your try to remove it, it might get locked by Explorer scanning it's content and also the AV scanning it again.
3481
General Software Discussion / Re: Simple Commandline to send Keystrokes
« Last post by Ath on January 25, 2011, 11:39 AM »
Ath, I think we're not upx'ing them anymore because they're more likely to show up AV-positive if they are, so you might want to re-upload non-upx'd version.

See notification here.
Oh, I missed/forgot that announcement, though I read a lot about upx'ed exe's being flagged by virusscanners :-[
Fixed it. And that's the second reason I published the source (first being this free-for-all), so anybody not trusting external exe's can re-compile it in a trusted environment.
3482
General Software Discussion / Re: Simple Commandline to send Keystrokes
« Last post by Ath on January 24, 2011, 04:58 PM »
Ok, I've not searched the internet, but just wanted to write a little AutoIt3 script that does exactly that for you:

Latest release & download moved to separate thread

WinSendKeys [-t Timedelay] [-d] [-w] <WindowName> <Keystrokes to send>
It takes 3 options and as much parameters (keystrokes) as you would like:
- -w <WindowName> : A window name or expression, as detailed in this page
- -t <Timedelay> : A number of milliseconds to wait between each set of keystrokes to send
- -d : Debug mode, writes some info into WinSendKeys.log in the current directory
- <Keystrokes to send> : Any amount of keystrokes that will fit the commandline, using the syntax from this page
(Be sure to double up any ^ marker for Control as it has a special feature in cmd.exe, so ^^n becomes Ctrl-N)

Updated to a newer version below, 1.0 is hiding here...
This is the script:
Code: AutoIt [Select]
  1. #Region ;**** Directives created by AutoIt3Wrapper_GUI ****
  2. #AutoIt3Wrapper_UseUpx=n
  3. #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
  4. ; WinSendKeys
  5. ; By Ath, 2011-01-24
  6. ; Updated 2011-01-25, upx disabled, debug mode writes to .log file, formatted helpmessage a little better
  7. ; options:
  8. ; -t timeout
  9. ; -w windowname
  10. ; -d : Debug mode
  11. ; Keystrokes: http://www.autoitscript.com/autoit3/docs/appendix/SendKeys.htm
  12.  
  13. $dela = 100 ; msec delay between keystrokes sent
  14. $win = "" ; Name of Window to activate, naming according to these rules: http://www.autoitscript.com/autoit3/docs/intro/windowsadvanced.htm
  15. $dbg = 0 ; Debug mode
  16. $dbgfile = "" ; Write logging to this file
  17.  
  18. If $CmdLine[0] < 2 Then
  19.         ShowHelp()
  20.  
  21.         $p = 1
  22.         $n = 1
  23.         While $n <= $CmdLine[0]
  24.                 If ($p = $n) And (StringLeft($CmdLine[$n],1) = "-") Then
  25.                         If (StringLower($CmdLine[$n]) = "-t") And ($n < $CmdLine[0]) Then
  26.                                 $n = $n + 1
  27.                                 $dela = $CmdLine[$n]
  28.                                 $p = $n + 1
  29.                         EndIf
  30.                         If (StringLower($CmdLine[$n])) = "-w" And ($n < $CmdLine[0]) Then
  31.                                 $n = $n + 1
  32.                                 $win = $CmdLine[$n]
  33.                                 $p = $n + 1
  34.                         EndIf
  35.                         If StringLower($CmdLine[$n]) = "-d" Then
  36.                                 $dbg = 1
  37.                                 $p = $n + 1
  38.                                 $dbgfile = StringReplace(@ScriptName,".au3",".log")
  39.                                 If $dbgfile = @ScriptName Then
  40.                                         $dbgfile = StringReplace(@ScriptName,".exe",".log")
  41.                                 EndIf
  42.                         EndIf
  43.                 EndIf
  44.                 $n = $n + 1
  45.         WEnd
  46.         If $win = "" Then
  47.                 $win = $CmdLine[$p]
  48.                 $p = $p + 1
  49.         EndIf
  50.         If Not $win = "" Then
  51.                 If $dbg Then writeLogLine("Window: " & $win & @CRLF)
  52.                 AutoItSetOption("WinTitleMatchMode",2)
  53.                 $w = WinActivate($win, "")
  54.                 If $dbg Then writeLogLine("Windowhandle: " & $w)
  55.                 If $w <> 0 Then
  56.                         SendKeepActive($w)
  57.                         For $n = $p to $CmdLine[0]
  58.                                 If $dbg Then writeLogLine("Send: " & $CmdLine[$n] & @CRLF)
  59.                                 Send($CmdLine[$n])
  60.                                 Sleep($dela)
  61.                         Next
  62.                 EndIf
  63.         EndIf
  64.  
  65. Func ShowHelp()
  66.         MsgBox(0,"WinSendKeys : Send keystrokes to a named window","Usage:" & @CRLF _
  67.         &       "WinSendKeys [-t keydelay] [-d] [-w] <WindowName> <Keystrokes to send>" & @CRLF _
  68.         & "-t keydelay = msec value, default 100" & @CRLF _
  69.         & "-d = Debug mode, writes extra information to WinSendKeys.log" & @CRLF _
  70.         & "-w <WindowName> = name value as defined here:" & @CRLF _
  71.         & @TAB & "www.autoitscript.com/autoit3/docs/intro/windowsadvanced.htm" & @CRLF _
  72.         & "<Keystrokes> = Keystroke values as defined here:" & @CRLF _
  73.         & @TAB & "www.autoitscript.com/autoit3/docs/appendix/SendKeys.htm" & @CRLF)
  74.  
  75. Func writeLogLine($message)
  76. ; Write a line to the logfile, with a prefix of "yyyy-MM-dd hh:mm:ss.msec, ", as the generic _FileWriteLog function gave errors
  77.         Local $openLogFile = FileOpen($dbgfile,1)
  78.         If $openLogFile > -1 Then
  79.                 FileWriteLine($openLogFile,@YEAR&"-"&@MON&"-"&@MDAY&" "&@HOUR&":"&@MIN&":"&@SEC&"."&StringFormat("%03d",@MSEC)&", " & $message)
  80.                 FileClose($openLogFile)
  81.         EndIf


The compiled/non-upx'd exe is attached (updated: 2011-01-26)
3483
If it's a powered wheelchair you may have to wear a helmet.   :(

I won't mind, I'll be glad to be around... :D
3484
Living Room / Re: why is it so difficult to pick out a new computer?
« Last post by Ath on January 23, 2011, 01:14 PM »
You hit the nail right on the head, 40hz :Thmbsup:
3485
Finished Programs / Re: IDEA: play a mp3 file at (almost) random intervals
« Last post by Ath on January 23, 2011, 01:12 PM »
Doesn't WinAmp have a Shuffle option?
3486
If you crash badly enough on a motorcycle that a helmet might save your life, you'll probably end up in a wheelchair for the rest of your life - better off dead, then.
But sitting in a wheelchair, it's probable that I'd still be able to do coding, so I'd better be alive to prove that :tellme:
3487
I check 'em directly at the local TLD registrar site, as they offer a 'who owns this domain' service. Never failed, and never got an unregistered domain grabbed right before my eyes.
3488
Timns Apps / Re: Auspex Suggestions
« Last post by Ath on January 20, 2011, 03:31 PM »
Hm, IMHO you already have quite a few issues on Redmine that need to be taken care of, before new features should be added :-[
3489
No. What for?
3490
General Software Discussion / Re: Dual Booting Win XP and Win 7
« Last post by Ath on January 18, 2011, 11:56 AM »
... and then Win7 in Virtual  PC.  Their would be no reason to Dual Boot , instead use it on Virtual PC.

But then don't make the mistake of installing VirtualPC (any version)!
Use at least VirtualBox for that, or get a free or payed copy of VMWare's stuff (Player 3 or Workstation) to get a decently working virtual PC image, that can actually be configured the way you want it. And has working USB support.
3491
N.A.N.Y. 2011 / Re: NANY 2011 Release: Park Cursor Aside
« Last post by Ath on January 18, 2011, 06:04 AM »
Oh, and Skype hides the cursor when you are typing, so I'll add that to the ignore list when we have that ;)
The cursor is moved to the designated position, though, as expected :up:
3492
N.A.N.Y. 2011 / Re: NANY 2011 Release: Park Cursor Aside
« Last post by Ath on January 18, 2011, 05:54 AM »
Ath, have faith. There is some reason why I could not give more than 10 keystrokes.
Don't worry, but I was already afraid, when you didn't go past 9, it was something special...

1. Is the 'park relative to window' option working correctly ?
3. Is this option keeps the mouse cursor in the secondary monitor where it was originally, instead of moving to the primary monitor ?
Yup, it solves my dual-monitor request for now.

2. Is this option works perfectly with x-mouse behavior enabled ?
Don't use that, so can't comment on it.
3493
General Software Discussion / Re: Mother of all video player discussion threads
« Last post by Ath on January 17, 2011, 02:43 PM »
What recommends MediaRevolution over free, powerful, play-anything options like KMPlayer, SMPlayer, SPlayer, etc?

Guess 3 times.... :D End of the week small money ofcourse :P
3494
Announce Your Software/Service/Product / Re: dot Net complaints
« Last post by Ath on January 17, 2011, 12:23 PM »
I helped worstje getting his Inno Setup installer for JottiQ into place, for that I grabbed an existing feature from the internet, and expanded that to support .NET 4.0. It's also posted back on the internet, ofcourse. Everybody was quite happy, including me 8)

3495
Living Room / Re: Windows 7 Breaks Week Numbering
« Last post by Ath on January 17, 2011, 01:52 AM »
AFAIK, January 1st and 2nd are part of week 52 of last year or indeed week 0 of this year, depending on convention. This with Monday being the first day of the week, that is ;)
I've been implementing this 'week' (or was it 'weak' :-[) function some 15 years ago, and had kind of the same trouble then, but without the internet to search it was a lot harder to find a proper solution... eventually the 3 or 4 day minimum length (depending on Sunday or Monday as the first weekday) for week 1 popped up, and I was able to resolve it by dropping the extra days in week 52/53 of last year. Week 0 has always seemed quite impossible to me...
Though it looked odd to me for a long time, I've just been ignoring the 'strange' week numbers at the start of the year, but ofcourse in my case there's nothing life-threatening depending on it.
3496
Timns Apps / Re: Auspex
« Last post by Ath on January 16, 2011, 04:14 PM »
And the %hour% in tha example should probably %hour12% :D
3497
N.A.N.Y. 2011 / Re: NANY 2011 Release: Park Cursor Aside
« Last post by Ath on January 16, 2011, 11:42 AM »
Hi Anand,

Thanks for the update.  :up:
I requested a higher number of keystrokes, before the cursor would be parked, and still think 9 is a very low number. The original request of 140 was no joke, but any limit removed would also be just fine, imho. It's just that a spinner wouldn't be needed any more then, just a suggestion that 5 to 10 keystrokes would be a nice default.
The other feature requests I'll wait for a bit more ;)
3498
Developer's Corner / Re: C# & Visual Studio Problem
« Last post by Ath on January 16, 2011, 05:40 AM »
Ugh, what a nasty VS bug >:(. Glad you caught it, I guess I can help some ppl with that! :up:
3499
General Software Discussion / Re: Word Processor OS
« Last post by Ath on January 16, 2011, 05:20 AM »
Thanx 4wd, that's a really good find! :Thmbsup:
3500
Developer's Corner / Re: C# & Visual Studio Problem
« Last post by Ath on January 15, 2011, 07:30 AM »
You have compiled in Debug mode, I presume? Try a Clean and Build on the project/solution.
Is it targeting .NET 4 or a lower version?
And pressing the refresh buttons doesn't make a difference?
Any plug-ins messing up VS (2010 I guess?), try to disable 'm one by one to find the culprit. Or reboot your PC, or at least restart VS (but I expect you did that already).
Pages: prev1 ... 135 136 137 138 139 [140] 141 142 143 144 145 146next