sab0tage Posted March 21, 2013 Share Posted March 21, 2013 I've made a script to automate some printing functions using ControlCommand and class Id's etc; it works perfectly on my Windows 7 machine, however if I run it on an XP machine all it can do is open the print dialogue without doing any tab navigation, adding text to edit boxes or pressing buttons. I've checked the class Ids are the same on the printer dialogue on both PCs and they are. For the life of me I can't figure out why one might work and the other not, other than one being XP but I can't find anything in the help one way or another. If someone could throw some suggestions my way I would be grateful. Many thanks, sab. Link to comment Share on other sites More sharing options...
Mechaflash Posted March 21, 2013 Share Posted March 21, 2013 we can haz see code? Spoiler “Hello, ladies, look at your man, now back to me, now back at your man, now back to me. Sadly, he isn’t me, but if he stopped using ladies scented body wash and switched to Old Spice, he could smell like he’s me. Look down, back up, where are you? You’re on a boat with the man your man could smell like. What’s in your hand, back at me. I have it, it’s an oyster with two tickets to that thing you love. Look again, the tickets are now diamonds. Anything is possible when your man smells like Old Spice and not a lady. I’m on a horse.” Link to comment Share on other sites More sharing options...
flownzu Posted March 21, 2013 Share Posted March 21, 2013 Yeah a code snippet would be nice, but as I see it it's not a XP issue since I am on XP too and I tried out nearly every ControlCommand and it worked here Link to comment Share on other sites More sharing options...
sab0tage Posted March 26, 2013 Author Share Posted March 26, 2013 Sorry, code would have been a good idea! Run('rundll32 printui.dll,PrintUIEntry /e /n "NBS Technologies JAVELIN Driver"') WinWaitActive("NBS Technologies JAVELIN","") sleep(500) ControlCommand("NBS Technologies JAVELIN", "", "SysTabControl32", "TabRight", "") ControlCommand("NBS Technologies JAVELIN","Track 2:","","Check") ; check track 2 checkbox ControlSetText("NBS Technologies JAVELIN","","[CLASS:Edit; INSTANCE:10]", $encdata) ; enter encoding data ControlClick("NBS Technologies JAVELIN","E&ncoding","[CLASS:Button; INSTANCE:13]") ; encoding button sleep(3000) ControlClick("NBS Technologies JAVELIN","Card Ejec&t","[CLASS:Button; INSTANCE:15]") ; eject button Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now