The following string passed to Excel via DDE will properly execute the save.as macro comand. Note that the filename has quotes around it.
[SAVE.AS("testsave.xls")]
So, the following SHOULD work via Aspect.
macrostring="[SAVE.AS(`"testsave.xls`")]"...
I'm fairly new to PYTHON, but so far I like what I see. I've been able to build functions to do a variety of useful things that I would like to call from a different language.
How would one go about converting the Python code to a .dll so that the function calls can be called from other...
OK! FINE! I GIVE UP!!! I'll use the minimize/restore already! :)
Here's what I finally settled on. Will wakeup only if no alarms received for greater than 10 minutes and it remembers the last time it wokeup. That keeps things happy...
integer lastwake=$ltime ;Global Variable
main...
Darn it, it looks like the same holds true for movement. I implemented this in my script and it failed to wake the monitor. Worked fine during testing though.... Arrgh!!
Also, to update the issue with winactivate not putting procomm "on top", it seems to do with the Task List. As...
Finally, a solution! A "mouse wiggle" works great! Here's how:
Use "setpointer" twice (to ensure a change of position). Also, Procom MUST be the active task for this to work. Example below
proc main
pause 90
if $TASK != $PWTASK ; Is current task PW...
When I looked in the help files under the DLLCALL command, I found the following:
Only .dlls that have been written with the ASPECT DLL interface specification can be used with this command. Calling an arbitrary .dll may cause a critical application error to occur!
Anyone have any more info on...
Winfocus is supposed to change the active window for keyboard input, but it does not seem to be accomplishing that task. See code below...
This code should check for focus every 10 seconds and if Procomm doesn't have it, it should take it.
Run this and while running, click on another app...
Revised: look below... Run this and while running, click on another app. According to what Procomm can see, it IS changing the focus, but that doesn't mean it's on top?!? Anyone know how to solve this? We can't do much window navigation at all if this command doesn't work. Winfocus is...
Does anyone have a clue why the following does not work? This test script should steal the focus every 10 seconds. I'm trying to get Procomm to put itself ontop when events occur. IF the winfocus would work the winactivate would kill the screensaver.
proc main
while 1 ;loop indefinitely...
One handy way to do this is to set up all your "clean up" activity in a batch file. Once you've tested it to run, put the "c:\program files\procomm\programs\pw4.exe" as the first line of your batch.
From here on out use the batch to start Procomm. The batch will hold...
Knob,
This is for an "Alarm Server". I simply want it to wake up from the screen saver when activity occurs. Sometimes alarms come within the same second. If I use minimize/restore on every alarm instance, it will wake up the from the screen saver, but you'll have a hard time...
Did you make sure that Procomm was NOT the active window? To test, activate the script and quickly click on another app to take the focus away from procomm, then let the screensaver start.
If PW is minimized, the Maximize command will kill the screensaver. However, if it's NOT minimized and...
Good solution! But not perfect... The winactivate will ONLY work when the main procomm window has the focus. If it's minimized or another application is on top, winactivate fails to kill the screensaver.
I used winfocus to put Procomm on top but it doesn't seem to do anything. It stays in...
That would work great if I had an NT4 box, but I'm running Win2000 Pro.
"c:\winnt\system32\scrsvr" does not exist. Not only that but I can't locate ANY executable that triggers the screensaver from the command-line.
If you double-click on "Misc.SCR" from explorer it...
I've written a nifty script that runs in line with our system alarm printer. (I work on an Intecom E-14 PBX.) All the alarms that hit the printer also display to the screen in my work area in color coded format. It also pages/emails out on certain alarms, plays wave files on others, and even...
I've had similar issues with Procomm Scheduler. The easiest solution I've found is also to use Windows Task Scheduler.
I've found this works better anyway as I have other processes that need to run AFTER procomm scripts have completed. So you can just create a .BAT that contains something...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.