Yoko

All sides of Injection
It is currently 2025-10-09 10:49:12

All times are UTC+02:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: 2006-07-01 15:02:03 
Offline

Joined: 2006-06-28 22:19:05
Posts: 13
Code:
st == 0 then
 posit=UO.GetX()
 posit=posit+5
 while UO.GetX() < posit
  UO.Press (39, 1, 500)
 wend
 st=1
 goto start
endif

if st == 1 then
 posit=UO.GetY()
 posit=posit+5
 while UO.GetY() < posit
  UO.Press (40, 1, 500)
 wend
 st=2
 goto start
endif

if st == 2 then
 posit=UO.GetX()
 posit=posit-5
 while UO.GetX() > posit
  UO.Press (37, 1, 500)
 wend
 st=3
 goto start
endif

if st == 3 then
 posit=UO.GetY()
 posit=posit-5
 while UO.GetY() > posit
  UO.Press (38, 1, 500)
 wend
 st=0
 goto start
endif

Как мне сделать чтоб он ходил по кругу? плиз помагите[/code]


Top
   
PostPosted: 2006-07-01 15:14:04 
Offline

Joined: 2006-04-14 10:51:44
Posts: 121
Harpoon wrote:
Code:
st == 0 then
 posit=UO.GetX()
 posit=posit+5
 while UO.GetX() < posit
  UO.Press (39, 1, 500)
 wend
 st=1
 goto start
endif

if st == 1 then
 posit=UO.GetY()
 posit=posit+5
 while UO.GetY() < posit
  UO.Press (40, 1, 500)
 wend
 st=2
 goto start
endif

if st == 2 then
 posit=UO.GetX()
 posit=posit-5
 while UO.GetX() > posit
  UO.Press (37, 1, 500)
 wend
 st=3
 goto start
endif

if st == 3 then
 posit=UO.GetY()
 posit=posit-5
 while UO.GetY() > posit
  UO.Press (38, 1, 500)
 wend
 st=0
 goto start
endif

Как мне сделать чтоб он ходил по кругу? плиз помагите[/code]
а смысл какой?


Top
   
 Post subject:
PostPosted: 2006-07-01 15:17:12 
Offline

Joined: 2006-06-28 22:19:05
Posts: 13
ну мне надо чтоб он ходил по квадрату, а то если по этим он у меня идет по премой и потом реска в низ и не останавливается :(


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 3 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited