multi pre-position cursor script-pls check logic & syntax.

Moderators: 666philb, Forum moderators

Post Reply
boof
Posts: 587
Joined: Sat Aug 15, 2020 9:17 am
Been thanked: 8 times

multi pre-position cursor script-pls check logic & syntax.

Post by boof »

It's faster to press keys that move the mouse and re-focus my old eyes, so I've developed a script to multi-position the cursor on the main screen where the program can decide if the second keypress is/is not <ENTER>. The syntax looks right, but I'm asking for someone to check it. single characters are decimal ASCHII equivalents, unless there's a better way? I've probably blended several programming languages/techniques here, forgive me, I'm getting old and get confused. The brain is not what it once was.

CODE:

#!/bin/sh

repeat:
keypress:
{
getche (char)
}

while (keypress != 113d)
do
{
# Buy
if (keypress=98d);
(xdotool mousemove 600 284
keypress); ;

# Sell
if (keypress=115d);
(xdotool mousemove 1728 294
keypress); ;

# Amt
if (keypress=97d)
(xdotool mousemove 1435 284
keypress); ;

# One Click
if (keypress=111d);
(xdotool mousemove 1450 317
keypress); ;

# Row 1
if (keypress=49d);
(xdotool mousemove 1873 818
keypress); ;

# Row 2
if (keypress=50d);
(xdotool mousemove 1073 844
keypress); ;

# Row 3
if (keypress=51d);
(xdotool mousemove 1073 893
keypress); ;

# Row 4
if (keypress=52d);
(xdotool mousemove 1072 919
keypress); ;

# Close
if (keypress=99d);
(xdotool mousemove 1028 755
keypress); ;

# AUD USD
if (keypress=117d);
(xdotool mousemove 162 230
keypress
xdotool mousemove 186 485
keypress); ;

repeat
}
end do

Post Reply

Return to “Fossapup64”