Search found 84 matches

by Dick99999
Thu Aug 04, 2022 11:46 am
Forum: Technical / Scripting
Topic: Press variable name within subroutine, can't get it work
Replies: 3
Views: 3531

Re: Press variable name within subroutine, can't get it work

Thanks, indeed with Enter it works. And my mistake to make a simple test! The issue is that I needed a shift TAB, however Notepadd++ does not record a shift Tab, so it is being send after all. I am a bit confused what to use in the Press command: Key names and/or System Variables? The latter lists, ...
by Dick99999
Thu Aug 04, 2022 7:53 am
Forum: Technical / Scripting
Topic: Press variable name within subroutine, can't get it work
Replies: 3
Views: 3531

Press variable name within subroutine, can't get it work

I cannot get the following script to work. The shiftKey_Var_1 variable is set to the right value, but nothing appears to happen in the notepad window. Any suggestion? // setfocus>t.txt* gosub>shiftKey,LF Exit srt>shiftKey press shift let>PRESS_ALLOWVARS=1 press shiftKey_Var_1 let>PRESS_ALLOWVARS=0 r...
by Dick99999
Thu Oct 20, 2016 11:10 am
Forum: Scripts and Tips
Topic: script debug if breakpoints not possible
Replies: 0
Views: 7132

script debug if breakpoints not possible

Sometimes debug mode interferes with script execution. For example when a Firefox add-on dialogue disappears as soon as debug becomes active. Inserting messages is an alternative. The following builds on that alternative. It collects message-texts and displays that collection at a chosen point(s) in...
by Dick99999
Mon Oct 17, 2016 12:40 pm
Forum: Technical / Scripting
Topic: GetCaretPos (rel) returns 0,1 for OneNote?
Replies: 2
Views: 3630

Re: GetCaretPos (rel) returns 0,1 for OneNote?

I investigated this a little further. The getCaretPos works in word, excel, outlook and powerpoint, but not in oneNote. So it might be a Microsoft issue?
by Dick99999
Tue Oct 11, 2016 7:10 am
Forum: Technical / Scripting
Topic: GetCaretPos (rel) returns 0,1 for OneNote?
Replies: 2
Views: 3630

GetCaretPos (rel) returns 0,1 for OneNote?

When I try to retrieve the relative caret position of OneNote, I always get 0,1. (Absolute returns the top left corner of the OneNote window.). Appreciate any help with the code below to make it working. SetFocus>OneNote:* wait>0.5 GetCursorPos>nXPos,nYPos,csType GetCaretPos>nXPosR,nYPosR,1 mdl>%nXP...
by Dick99999
Thu Aug 07, 2014 8:37 am
Forum: Technical / Scripting
Topic: GetActiveWindow suddenly not always working
Replies: 11
Views: 9634

Re: GetActiveWindow suddenly not always working

This morning another hit. And I think I know what's causing this. When I start a macro by a hot key, MS in the system tray shows a message like 'running name macro'. As long as that is active the empty window name may turn up. Have not tested it thoroughly though.
by Dick99999
Wed Aug 06, 2014 12:42 pm
Forum: Technical / Scripting
Topic: GetActiveWindow suddenly not always working
Replies: 11
Views: 9634

Re: GetActiveWindow suddenly not always working

My experience these last days is that the issue is intermittent. For example, if no window is open, the program manager should be the active window, at least that is what I get most times. Sometimes, however, I don't get Program Manager, and as described before, I get a empty string as the active wi...
by Dick99999
Tue Jul 29, 2014 4:48 pm
Forum: Technical / Scripting
Topic: GetActiveWindow suddenly not always working
Replies: 11
Views: 9634

Re: GetActiveWindow suddenly not always working

Indeed step 1 to 6 is what I also did. Thanks again for testing. Glad I could help to make your computers up to date :-) . I tried some MS older version, all same result on win 8.1/Surface pro 2. However,....... I changed the script a little and now it always displays the window name (except the MS ...
by Dick99999
Tue Jul 29, 2014 11:15 am
Forum: Technical / Scripting
Topic: GetActiveWindow suddenly not always working
Replies: 11
Views: 9634

Re: GetActiveWindow suddenly not always working

Thanks for trying. I tested your script on windows 7. Same result, does not display a process name after the first time. (That first time is OK.)
by Dick99999
Mon Jul 28, 2014 8:33 pm
Forum: Technical / Scripting
Topic: GetActiveWindow suddenly not always working
Replies: 11
Views: 9634

Re: GetActiveWindow suddenly not always working

I suspect the window (Notepad for example) doesn't have focus the second time around. The following code uses the Window_NewActive Event handler to grab window information each time a different window becomes active. If you run the following, does the message ever fail to provide the title and leng...
by Dick99999
Mon Jul 28, 2014 8:16 pm
Forum: Technical / Scripting
Topic: GetActiveWindow suddenly not always working
Replies: 11
Views: 9634

Re: GetActiveWindow suddenly not always working

I hope I'm not missing the point here... but... I ran this once, with a blank Notepad doc selected, and it gave me : active=<Untitled - Notepad> length=18 Running it a second time immediately gave me : active=<> length=0 When MessageModal pops up, it takes the focus. It doesn't return the focus to ...
by Dick99999
Sun Jul 27, 2014 3:25 pm
Forum: General Discussion
Topic: Build string of last names form a list of artists and roles
Replies: 6
Views: 15573

Re: Build string of last names form a list of artists and ro

Version 1.5 includes interactive editing of the result
by Dick99999
Sun Jul 27, 2014 10:33 am
Forum: Technical / Scripting
Topic: GetActiveWindow suddenly not always working
Replies: 11
Views: 9634

GetActiveWindow suddenly not always working

The code below sometimes does not get the name of the active window. Sometimes, meaning if I start notepad, then run the code by hot key, all is fine. When I try it a second time (after activating notepad) there is no window title, length is 0. This happened 'suddenly' probably from last week on. No...
by Dick99999
Mon Dec 02, 2013 7:49 am
Forum: Technical / Scripting
Topic: I cant disable a CUSTOM OnEvent handler.
Replies: 3
Views: 3767

Isn't that the same issue as in the on click event thread? When I took the disable event handler out of the event handler itself, it worked. see: http://www.mjtnet.com/usergroup/disable ... t8064.html ?
by Dick99999
Thu Nov 28, 2013 8:48 am
Forum: Technical / Scripting
Topic: Disable onEvent not working? And how to make ripple through?
Replies: 3
Views: 4262

Naturally this will fire several times as the event is detected several times WHILE the key is down. Perhaps detecting a key going UP is better? Don't think you can "ripple through". Thanks. I have modified the code and took the disable out of the click handler. So there is a little delay of 0.2 se...
cron
Sign up to our newsletter for free automation tips, tricks & discounts