Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Procomm Go To Command

Status
Not open for further replies.

RoReaves

Technical User
Mar 1, 2007
1
US
I am new at this. I am trying to write a Procomm Script. I need to know how to write a go to command. I need the cursor to go to a specific place on the screen. I can put in each individual space movements or think I can go to the place faster using a some type of "go to" command which will carry me to the specific place. Help!!
 
You need to define a label at the location you want to jump to and then use goto with that label to jump there. Here's the example from the help file:

proc main
integer Loops = 0 ; Integer to count loops.

Label: ; Define a label to jump to.
Loops++ ; Increment our loop counter.
if Loops < 3 ; If the number of loops is still
goto Label ; less than 3, jump to label.
endif
usermsg "%d" Loops ; Display number of loops.
endproc

 
I think he meant moving the cursor, which see below for usage of "setpointer" command, it's just copied out of help. Honestly, I think that's not what he/you wants/want either.. Outline the problem that you're trying to solve a little better and someone, maybe even me, will try to help :)


proc main
integer NewX, NewY ; New X and Y location for mouse cursor.

for NewX = 0 upto 639 by 10 ; Loop through every 10 pixels X.
for NewY = 0 upto 479 by 10 ; Loop through every 10 pixels Y.
setpointer NewX NewY ; Set cursor location to X and Y.
endfor
endfor
endproc
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top