Understanding some cursor state
Moderators: JRL, Dorian (MJT support)
Understanding some cursor state
Hello
I have a five programmable mouse : via MacroScheduler the Fifth Button generally assignes a listbox.
But when I am in a given application , for example IrfanView, the Fifth Button assignes a specifical action via a shortcut (for example resizing an image)
That ‘s good ; but I wish something more : use the Fifth Button as backspace when a word or part of a word is highlighted by the cursor
Any ideas ?
Thanks
I have a five programmable mouse : via MacroScheduler the Fifth Button generally assignes a listbox.
But when I am in a given application , for example IrfanView, the Fifth Button assignes a specifical action via a shortcut (for example resizing an image)
That ‘s good ; but I wish something more : use the Fifth Button as backspace when a word or part of a word is highlighted by the cursor
Any ideas ?
Thanks
Hello JRL
1) I try , thanks to MS , to do the max with the Mouse and not with the Keyboard
2) Generally the 5th button (Ctrl Alt X) opens a listbox for somethings much more complicated than a simple BACKSPACE
3) In that case (BACKSPACE) the opening of a listbox would be a nuisance
4) The event "HILIGHTED CARACTERS" detected by the first lines of the macro must trigger BACKSPACE and exit
Regards
1) I try , thanks to MS , to do the max with the Mouse and not with the Keyboard
2) Generally the 5th button (Ctrl Alt X) opens a listbox for somethings much more complicated than a simple BACKSPACE
3) In that case (BACKSPACE) the opening of a listbox would be a nuisance
4) The event "HILIGHTED CARACTERS" detected by the first lines of the macro must trigger BACKSPACE and exit
Regards
I understand, you want to do the backspace with the mouse not the keyboard.1) I try , thanks to MS , to do the max with the Mouse and not with the Keyboard
Does the fifth mouse key send (Ctrl Alt X)? If you set a Macro Scheduler macro's hotkey to (Ctrl Alt X) does the mouse button execute the macro?2) Generally the 5th button (Ctrl Alt X) ...
Are you saying that the macro must detect that there are highlighted characters before it performs a backspace?4) The event "HILIGHTED CARACTERS" detected by the first lines of the macro must trigger BACKSPACE and exit
So if there are no highlighted characters, backspace would not occur?
Hello JRL
Thanks Wholly Understood
I do it for other types of occurence and it works out fine ; here I searche the "ON EVENT HILIGHTED" process
Regards
Thanks Wholly Understood
Yes backspace would not occur and the listbox will openAre you saying that the macro must detect that there are highlighted characters before it performs a backspace?
So if there are no highlighted characters, backspace would not occur?
I do it for other types of occurence and it works out fine ; here I searche the "ON EVENT HILIGHTED" process
Regards
In fact I didn’t work out the ON EVENT HIGHLIGHTED macro ... too bad
but the followings (idem old post jpuziano) inserted in the global macro are enough for what I was trying to find :
//Clear clipboard
Let>i0=
PutClipboard>i0
//Capture highlighted text to clipboard
Press CTRL
Send Character/Text>c
Release CTRL
Wait>0.2
GetClipboard>j0
If>j0=i0,Continue
//Highlighted text --> Backspace and Exit
Press Backspace
goto>Exit
Label>Continue
//Global Macro ; opens ListBox
but the followings (idem old post jpuziano) inserted in the global macro are enough for what I was trying to find :
//Clear clipboard
Let>i0=
PutClipboard>i0
//Capture highlighted text to clipboard
Press CTRL
Send Character/Text>c
Release CTRL
Wait>0.2
GetClipboard>j0
If>j0=i0,Continue
//Highlighted text --> Backspace and Exit
Press Backspace
goto>Exit
Label>Continue
//Global Macro ; opens ListBox
Thanks... I'm guessing it was the following post:
Detect Image Data on Windows Clipboard plus Save and Restore
Ah yes... good times...
By the way, for those learning the ins and outs of the Windows Clipboard, the link I posted in that old post above is still working, its an interesting read... and you might want to download these utilities while they are still available. Here's that link again:
ClipboardToFile.exe and FileToClipboard.exe
Thanks for considering the potential new commands suggested above Marcus and take care.
Detect Image Data on Windows Clipboard plus Save and Restore
Ah yes... good times...
Well Marcus, have we come to the point in the road where Macro Scheduler might add these commands? Could these at least be added to the Wish List for future consideration? It would make things easier for those of us that write macros that make use of the Windows Clipboard to move data around... while allowing us to preserve whatever data the user may have just put into the clipboard via some other application.Out-Take from the above old post wrote:Beyond the above two methods, I'd still like to see (one day) commands added to Macro Scheduler that could accomplish this, something like this perhaps:
...but I know the Windows Clipboard is a complex thing and there are many more mainstream things to work on with the beta etc., so I know something like this might be a long time coming. Until then, at least we have the methods worked out so far.jpuziano wrote:TakeClipBoardSnapShot>
- writes to a structure in memory (or disk?) created by Macro Scheduler
- must be called before RestoreClipBoardfromSnapShot
RestoreClipBoardfromSnapShot>
- reads from a structure in memory (or disk?) created by Macro Scheduler
If anyone has any more ideas on this, please jump in.
By the way, for those learning the ins and outs of the Windows Clipboard, the link I posted in that old post above is still working, its an interesting read... and you might want to download these utilities while they are still available. Here's that link again:
ClipboardToFile.exe and FileToClipboard.exe
Thanks for considering the potential new commands suggested above Marcus and take care.
jpuziano
Note: If anyone else on the planet would find the following useful...
[Open] PlayWav command that plays from embedded script data
...then please add your thoughts/support at the above post -
Note: If anyone else on the planet would find the following useful...
[Open] PlayWav command that plays from embedded script data
...then please add your thoughts/support at the above post -
