1. By continuing to use the site, you agree to the use of cookies .This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the cookie policy.Find out more.
    Dismiss Notice
  2. Follow Casinomeister on Twitter | Facebook | YouTube | Casinomeister.us US Residents Click here! |  Svenska Svenska | 
Dismiss Notice
REGISTER NOW!! Why? Because you can't do diddly squat without having been registered!

At the moment you have limited access to view most discussions: you can't make contact with thousands of fellow players, affiliates, casino reps, and all sorts of other riff-raff.

Registration is fast, simple and absolutely free so please, join Casinomeister here!

AutoKey on Linux distro (Ubuntu)?

Discussion in 'Computers and Internet Geekland' started by maxd, Nov 13, 2012.

    Nov 13, 2012
  1. maxd

    maxd Complaints (PAB) Manager Staff Member

    Occupation:
    The PAB Guy
    Location:
    Saltirelandia
    Anyone using AutoKey on a Linux distro? (not AutoHotKey on Windoz, been there done that not the same critter)

    I'm having probs with an AutoKey script to change case of text in a variable. AutoKey can apparently do Python code but my feeble -- and ill-informed -- attempts have thus far only frustrated me.

    What I'm trying to do is something like this:

    Code:
    mydate = system.exec_command("date")
    mydate.upper()                                      <<------- no worky
    keyboard.send_keys(mydate)
    
    Any recommendations would be much appreciated.
     
  2. Nov 13, 2012
  3. maxd

    maxd Complaints (PAB) Manager Staff Member

    Occupation:
    The PAB Guy
    Location:
    Saltirelandia
    Ah, typing it made me realise the problem: the upper() method returns a value, it doesn't change the string itself.

    So this works:

    Code:
    mydate = system.exec_command( "date")
    keyboard.send_keys( mydate.upper())
    
     
  4. Nov 13, 2012
  5. Casinomeister

    Casinomeister Forum Cheermeister Staff Member

    Occupation:
    Homemaker
    Location:
    Bierland
    It's too early in the morning for this sh**.
     
  6. Nov 13, 2012
  7. dionysus

    dionysus can turn wine into water CAG MM

    Occupation:
    n/a
    Location:
    I'm a Canucklehead
    If it were 3 in the afternoon rather than am it'd still be over my head lol
     
  8. Nov 13, 2012
  9. maxd

    maxd Complaints (PAB) Manager Staff Member

    Occupation:
    The PAB Guy
    Location:
    Saltirelandia
    :p The things we do for fun eh? ;)
     
  10. Nov 13, 2012
  11. vinylweatherman

    vinylweatherman You type well loads CAG MM

    Occupation:
    STILL At Leisure
    Location:
    United Kingdom
    Now try some IBM JCL:p
     

Share This Page