topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Saturday December 6, 2025, 3:19 am
  • 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
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.
3477
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.
3478
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)
3479
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
3480
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:
3481
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?
3482
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:
3483
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.
3484
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 :-[
3485
No. What for?
3486
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.
3487
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:
3488
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.
3489
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
3490
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)

3491
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.
3492
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
3493
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 ;)
3494
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:
3495
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:
3496
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).
3497
Developer's Corner / Re: Executing a file from a link
« Last post by Ath on January 14, 2011, 02:33 PM »
I wanted the links in the report to be "live" so that you can do <a href="file:\\c:\DCDisplay\DCDisplay.exe c:\path\file.cbr">FileName</a> but this doesn't work.

Does it help if you use forward slashes instead of backslashes? And I recall a 'file:' prefix needs a triple-slash if a local file is involved, like file:///c:/DCDisplay/DCDisplay.exe bladibla
3498
Official Announcements / Re: January 2011 Giveaway is open for entry
« Last post by Ath on January 13, 2011, 03:51 PM »
...Looks a bit old, but hey, I haven't got too big and important needs anyhow,...
If you look at HelpScribble, you'll notice it's also not very modern, but since XP, Vista and 7, all stuff created/screenshot'ed in the Windows 98/2000 era looks archaic...
The last time HS was updated was September 2010, so it's still 'alive', but the history shows that it's a 'slow mover' these days.

You don't happen to know any specific arguments that took you to H&M or away from other tools, do you?

I wasn't involved in the selection process, so I don't know what or why, but I'll ask around, somebody should know :P
3499
General Software Discussion / Re: Skwire's DC member site marked as suspicious
« Last post by Ath on January 13, 2011, 03:28 PM »
You must have been leaching that site way too much :P
3500
Official Announcements / Re: January 2011 Giveaway is open for entry
« Last post by Ath on January 13, 2011, 03:25 PM »
@worstje
We are using Help & Manual in our company, after being with Robohelp for many years until they sort of 'gave up' (we also did).
H&M was chosen after a thorough selection procedure over several other packages because of robustness, usability and support-options, features that Robohelp didn't (properly) have.
I'm not one of the guys working with this tool, but you can give it to anyone that's a bit of a writer and at least computer-literate, and get very nice result from it.

If you shouldn't win it here, and the price is a blocker; I've always been fond of HelpScribble (created by another Dutchman ;)), I bought when I ran my little software firm.
Pages: prev1 ... 135 136 137 138 139 [140] 141 142 143 144 145 146next