SoftMaker.com

English-Language Support
It is currently Thu Oct 02, 2014 3:21 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Wed Feb 29, 2012 1:13 am 
Offline

Joined: Tue Feb 28, 2012 11:58 pm
Posts: 2
Hello,

I'm trying to complete a simple macro that inserts a footnote and customizes how it displays. My macro simply sends a bunch of keys to TextMaker. However, the SendKeys statement does not seem to send the keys to TextMaker. It does not generate an error, it just doesn't do anything.

For example, the simplified script below will display the dialog box saying the macro completed without inserting the text "hello" into TextMaker. Am I doing something wrong?

Code:
Sub Main

   AppTextMaker
   SendKeys "hello", True

   MsgBox "All done!"

End Sub

Edit: I tried the example program in the help file for the SendKeys statement that starts Calculator and sends it commands, and it also doesn't work. The Calculator starts, but none of the SendKeys statements do anything. I'm running on Windows 7 64-bit.

Also, how do I define a keyboard shortcut for a script once I've written it? The only way I can see to run a script is by using the Tools > Run Script menu command and then navigating to find the script. It defeats the purpose of automation if I have to do that every time! :)


Top
 Profile  
 
PostPosted: Wed Feb 29, 2012 8:28 am 
Offline
SoftMaker Team
SoftMaker Team

Joined: Wed Apr 09, 2008 7:26 am
Posts: 5362
Location: Nuremberg
I referred your problem to the developers and will inform you here as soon as I have more information.

_________________
Sven Leßmann
SoftMaker Software GmbH


Top
 Profile  
 
PostPosted: Wed Feb 29, 2012 9:02 am 
Offline
SoftMaker Team
SoftMaker Team

Joined: Wed Apr 09, 2008 7:26 am
Posts: 5362
Location: Nuremberg
Sendkeys doesn't work under Windows 7. the developers are working on a fix for this problem. You can attach the script to a user defined button (Basicmaker /s script.bas), then you can define a hotkey for it.

_________________
Sven Leßmann
SoftMaker Software GmbH


Top
 Profile  
 
PostPosted: Wed Feb 29, 2012 11:09 am 
Offline

Joined: Tue Feb 28, 2012 11:58 pm
Posts: 2
Thanks for the quick assistance, Sven. That's too bad -- hope it's fixed soon.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group