Esquared Posted October 26, 2012 Share Posted October 26, 2012 Hi, I've looked through the forum and haven't found much on this topic, most entries were related to people wanting to inquire about games and such and I know that's off limits. What I'm trying to do is script QuickBooks 2013 and I had it all put together and working and then my account was locked. I called QB and they told me I had reached my registration limit. They gave me a validation code but to reach the validation screen I need to press Ctrl + r + p when the help and about screen is displayed. Can anyone help me with this? I have no problem getting to the screen it's just the three key combo? Thanks Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted October 26, 2012 Moderators Share Posted October 26, 2012 Esquared,Surely the validation code is a one-time "get your account reopened" sort of thing - why do you need to script it? M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Esquared Posted October 26, 2012 Author Share Posted October 26, 2012 The validation code is used if the registrations have been all filled up, I need to script it because we have about 40 licenses for users who come and go, either for school or changing positions, that need it installed and uninstalled and then reinstalled again. Last years software didn't have the ristriction on the registration so it wasn't an issue of uninstalling and reinstalling. The install takes about 20 min so all those installs add up to lots of saved time if I can script it. Thanks Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted October 26, 2012 Moderators Share Posted October 26, 2012 Esquared,Understood. Try this:Send("{p down}") ; Hold "p" Send("^r") ; Press "Ctrl-r" Send("{p up}") ; Release "p"You may need to add a short Sleep between each line. Any luck? M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Esquared Posted October 26, 2012 Author Share Posted October 26, 2012 Thank you very much! I'll keep you posted, I have to work on another script at the moment, I'll let you know on Monday when I go back at Quickbooks! Thanks again! Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted October 26, 2012 Moderators Share Posted October 26, 2012 Esquared, I trust we will still be here - have a good weekend. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Esquared Posted October 29, 2012 Author Share Posted October 29, 2012 Hey, hope you had a good weekend! So, I'm back on QuickBooks and the combination you indicated doesn't seem to work. I've tried several variations with no sucess either? Any other ideas? I've never used arrays or anything, could they be applied here? Thanks! Link to comment Share on other sites More sharing options...
kylomas Posted October 29, 2012 Share Posted October 29, 2012 Esquared, Post the code that does not work so M23 has something to work with. kylomas Forum Rules Procedure for posting code "I like pigs. Dogs look up to us. Cats look down on us. Pigs treat us as equals." - Sir Winston Churchill Link to comment Share on other sites More sharing options...
Esquared Posted October 31, 2012 Author Share Posted October 31, 2012 I tried what M23 had displayed, I also tried, the below examples with different sleeps in between, with no luck... Send("^ down}") Sleep(200) Send("{r down}") Sleep(200) Send("{p down}") and Send("^r") Send("{p down}") Send("{p up}") Thanks again for your help! Link to comment Share on other sites More sharing options...
rudi Posted October 31, 2012 Share Posted October 31, 2012 Hi. Use _IsPressed() to check, if the "key-pressed-situation" really meets your requirements. Regards, Rudi. Earth is flat, pigs can fly, and Nuclear Power is SAFE! Link to comment Share on other sites More sharing options...
Esquared Posted November 1, 2012 Author Share Posted November 1, 2012 Ok, I was able to check the key presses with this code, if I press the "CTRL + r + p" it displays that it is being pressed and released but I don't understand how it helps me? I feel like I'm missing something but can't put my finger on it? How do I capture it or make it simulate me pressing it from this? #include <Misc.au3> Local $hDLL = DllOpen("user32.dll") While 1 If _IsPressed("11",$hDLL) AND _IsPressed("52",$hDLL) AND _IsPressed("50",$hDLL) Then ConsoleWrite("_IsPressed - was pressed." & @CRLF) ; Wait until key is released. While _IsPressed("11", $hDLL) Sleep(250) WEnd ConsoleWrite("_IsPressed - was released." & @CRLF) ElseIf _IsPressed("1B", $hDLL) Then MsgBox(0, "_IsPressed", "The Esc Key was pressed, therefore we will close the application.") ExitLoop EndIf Sleep(250) WEnd DllClose($hDLL) Thanks Link to comment Share on other sites More sharing options...
Esquared Posted November 1, 2012 Author Share Posted November 1, 2012 Ok, I got it! Send("{CTRLDOWN}{r down}{p down}") Works perfect! Thanks for you help! 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