[RESOLVED but ....] Press CTRL fails

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
ABIVEN
Pro Scripter
Posts: 71
Joined: Sun Aug 07, 2005 7:22 pm
Location: PARIS

[RESOLVED but ....] Press CTRL fails

Post by ABIVEN » Mon Mar 05, 2012 12:42 pm

Sorry,

However very simple but Press CTRL fails ! (I even tried SK_LEGACY & SK_DELAY for better results)

Have a look:

let>SK_LEGACY=1
Let>SK_DELAY=100
press CTRL
wait>0.2
Send>f
WaitWindowOpen>Rechercher et remplacer
wait>0.2
release CTRL
wait>0.2
Exit

That fails but if I exit Macro Scheduler and reopen that works one time but second time fails again!
Last edited by ABIVEN on Tue Mar 06, 2012 8:46 am, edited 1 time in total.

User avatar
JRL
Automation Wizard
Posts: 3501
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Tue Mar 06, 2012 12:02 am

Since it works once then fails I'm guessing there is something wrong with the Release ctrl line and the CTRL key press is not getting canceled.

Try moving that line up to just after the send>f line and make sure there are no trailing spaces.

ABIVEN
Pro Scripter
Posts: 71
Joined: Sun Aug 07, 2005 7:22 pm
Location: PARIS

Post by ABIVEN » Tue Mar 06, 2012 8:55 am

Thanks

But I also found an old post
by support Posted: Fri Mar 04, 2005 11:13 am

So I add those lines!

RDown
Wait>0.2
RUp
press esc
wait>0.2
press CTRL
Send>f
Release CTRL

Not very neat but...

idiot
Macro Veteran
Posts: 152
Joined: Thu Mar 01, 2007 9:21 am

Post by idiot » Mon Mar 12, 2012 7:26 pm

bro simple fix use vk_keys i had same problem in past that was the only viable fix here is the code
you will need this code and website
http://www.mjtnet.com/vkcodes.htm

Code: Select all

Let>VK_control=51
Let>ExtendedKey=1
Let>KeyUp=2
LibFunc>user32.dll,keybd_event,r,VK_control,0,ExtendedKey,0
Let>FLAGS={%ExtendedKey% OR %KeyUp%}
wait>2
LibFunc>user32.dll,keybd_event,r,VK_control,0,FLAGS,0


the wait is how long to hold the key down it releases the pressed key after the wait all you need to do to edit it for the keys you wish to use is change the VK_control={here is number code from site you will put}
and wait is always in seconds so how ever long you wanna hold key is the wait
if idiots rule the world then im the king!!!!
i want a free t-shirt give me all of your rep!!!
please give me pro version of macro scheduler and appnavigator!!!

ABIVEN
Pro Scripter
Posts: 71
Joined: Sun Aug 07, 2005 7:22 pm
Location: PARIS

Post by ABIVEN » Tue Mar 13, 2012 2:12 am

Thanks

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts