Jump to content
Sign in to follow this  
Esquared

Holding down three keys at the same time

Recommended Posts

Esquared

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

Share this post


Link to post
Share on other sites
Melba23

Esquared,

Surely the validation code is a one-time "get your account reopened" sort of thing - why do you need to script it? :huh:

M23


Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
Esquared

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

Share this post


Link to post
Share on other sites
Melba23

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? :huh:

M23


Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
Esquared

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! :thumbsup:

Share this post


Link to post
Share on other sites
Melba23

Esquared,

I trust we will still be here - have a good weekend. :)

M23


Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
Esquared

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!

Share this post


Link to post
Share on other sites
kylomas

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

Share this post


Link to post
Share on other sites
Esquared

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!

Share this post


Link to post
Share on other sites
rudi

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!

Share this post


Link to post
Share on other sites
Esquared

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

Share this post


Link to post
Share on other sites
Esquared

Ok, I got it!

Send("{CTRLDOWN}{r down}{p down}")

Works perfect!

Thanks for you help!

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×