Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
COPY AND PASTE FROM NOTEPAD TO BROWSER
#20
playkid Wrote:
Quote:str s sf.getfile("C:\Documents and Settings\test.txt")
foreach s sf
,spe 10
int w1=act(win("Welcome to your control panel - Windows Internet Explorer" "IEFrame"))
lef 458 491 w1; 1.38
'messaaaaaaage; 0.97
lef+ 1022 314 w1; 0.24
lef- 1019 366 w1; 0.19
lef 664 510 w1; 0.44
'messagggggge; 0.42
lef+ 1026 377 w1; 0.45
lef- 1022 446 w1; 0.20
lef+ 1018 450 w1; 0.84
lef- 1017 585 w1; 0.75
lef 483 624 w1
,
,web s 1

thats my current code, now it only types on the first URL and doesnt continue, it stops from there..


Gintaras gave you the answer a few posts up...

You're trying to run a foreach loop but you don't have the code you want executed each time inside the loop. The only way QMs knows what code is inside a loop is if the code is tab-indented underneath the loop statement.

A loop is a loop in QMs so any statement that repeats or loops works the same. You might want to read Programming in QM and Syntax of QM macro code


Your code should look like this:

Code:
Copy      Help
str s sf.getfile("C:\Documents and Settings\test.txt")
foreach s sf
,spe 10
,int w1=act(win("Welcome to your control panel - Windows Internet Explorer" "IEFrame"))
,lef 458 491 w1; 1.38
,'messaaaaaaage; 0.97
,lef+ 1022 314 w1; 0.24
,lef- 1019 366 w1; 0.19
,lef 664 510 w1; 0.44
,'messagggggge; 0.42
,lef+ 1026 377 w1; 0.45
,lef- 1022 446 w1; 0.20
,lef+ 1018 450 w1; 0.84
,lef- 1017 585 w1; 0.75
,lef 483 624 w1

,web s 1


Copy that then in QMs right click in the code panel and chose Other formats >> Paste escaped. That will keep the tab-indented formatting.

Hope that helps,
TwistMasterDeluxe


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)