Hotkey for Source/Destination List

Discussion in 'Software' started by Mada_Milty, Sep 12, 2006.

  1. Mada_Milty

    Mada_Milty MajorGeek

    G'day all,

    I am trying to automate a tedious process for our poor, overworked human resources manager. What it does is synchronize the date and time on her computer with a punch clock out on the manufacturing floor, but that's aside from the point.

    I am using shell commands (ie sending keys to the active window) to navigate through the GUI, and I've come to a source/destination type dialog. (Please see attached screenshot) I cannot for the life of me find a key combination that will move the source item over to the destination box. I know that not every program is coded the same way, but I was hoping there might be some generic keystroke that would work with these GUI controls. A million thanks to anyone who can offer input.

    Regards,

    Milty
     

    Attached Files:

  2. matt.chugg

    matt.chugg MajorGeek

    What are you using to do the key stroke sending ?

    Unfortunatly there isn't a generic key code for a key sometimes you will see a "_" under a letter in a menu, this is normally a short cut key. possible you could ittereat the keys by sending 'tabs'

    It all depends on how the program was made, its a bit hit and miss sending keystrokes though. I remember a program called autoit that seemed quite good a while back. i'll have a hunt on the mg downloads
     
  3. theefool

    theefool Geekified

    Well, since the highlighted area is the OK button, hitting the tab key two or three times, shold bring the "Site:...." area up, hitting Space then, tab, then space for the ">" area might be in order.

    Just some thoughts. :) Probably bad ones. :(
     
  4. Mada_Milty

    Mada_Milty MajorGeek

    I am using VBScript to code this. I am sending keys using the sendkeys method of the shell object. Yes, hit and miss, I know, but the app isn't com compliant, and I don't want to do any decompilation of source, as it won't be supported, and may in fact, break our warranty.

    Sadly, you cannot tab to the arrows. They're not in the tab order. :rolleyes:

    btw, your thoughts aren't BAD. They're much appreciated. I'm glad someone will at least TRY to help me out. Thanks both of you.

    I'll have a look into a few other means of automating this...maybe I can find a way to send mouse-clicks.
     
  5. Mada_Milty

    Mada_Milty MajorGeek

    Sweeeeeeeeeeeeet! Turns out I didn't have to go any further than Majorgeeks after all! I found this sweet little app called AutoHotkey on the download pages that recorded all my mouse clicks and keystrokes and automatically generated a nice script for me. It also came with a compiler, so I made the script into a standalone exe. I'm completely blown away! THIS ROCKS!
     
  6. matt.chugg

    matt.chugg MajorGeek

    I saw that this morning! I was about to post it here lol, its actually something to do with AutoIt that I posted about earlier
     
  7. Mada_Milty

    Mada_Milty MajorGeek

    Heh, yeah...I actually found it searching for AutoIt, so I guess you're due thanks...again. Cheers, amigo!
     
  8. matt.chugg

    matt.chugg MajorGeek

    No problem, if I remember correctly autoit was pretty powerful once you got used to it, its basically a scripting language like vbscript
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds