Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Hitechs

Pages: 1 ... 4 5 [6] 7 8 9
76
Submit your Script / Re: Hitech's Master Control
« on: March 06, 2017, 10:45:55 PM »
Ic... I did get a parser working
Was good training

Nice to make progress

77
Submit your Script / Re: Hitech's Master Control
« on: March 06, 2017, 06:32:21 PM »
i understand your way, im trying to learn a diffrent way,

this fixes my issue,
but i will have to add the var to each sub, and its a sub i dont even want lol

Code: [Select]
;----------------------------------------

sub menuButtonAction
;--- menu Button {name} {x} {y} {width} {height} {text}
gosub sub_ , #menubutton
;display %1 %2 %3 %4 %5
menu delete button #menubutton
     if ! . #menubutton = #false
           {
            set ! . #menubutton #true
            menu font BGcolor red
            menu font color white
            ;menu Button #menubutton 120 105 30 23 #menubutton ;----- hmm location of each button ???
            menu Button #menubutton %x %y %w %h #menubutton ;--- maybe pass the location with gosub
             }
        else
            {
            set ! . #menubutton #false
            menu font BGcolor blue
            menu font color white
            ;menu Button #menubutton 120 105 30 23 #menubutton
            menu Button #menubutton %x %y %w %h #menubutton ;--- maybe pass the location with gosub
             }
       set #menubutton #false
        }

return

;---------------------------
;--- menu Button {name} {x} {y} {width} {height} {text}

;------------------------------------------
sub sub_EV
set %x 15
set %y 45
set %w 40
set %h 23
set %t ev
  return 15 45 40 23 EV

78
Submit your Script / Re: Hitech's Master Control
« on: March 06, 2017, 06:26:54 PM »
ty ... how many vars can i return from a sub?

79
Submit your Script / Re: Hitech's Master Control
« on: March 06, 2017, 06:24:31 PM »
i guess im just returning 1 var from a sub?

to use this setup ... i would need to put all numbers together and parse them apart?

80
Submit your Script / Re: Hitech's Master Control
« on: March 06, 2017, 05:58:47 PM »
im not geting the #results back from the sub, could someone take a look?

(script in first post works and is the result im looking for without all the if's)

something dumb im over looking, im sure

script runs and you can f7 through it {its just a menu, no client needed)


81
Submit your Script / Re: Hitech's Master Control
« on: March 06, 2017, 05:30:58 PM »
@ ghost my lpc is at 25 on slave script, but its built for that speed with castin, scan journals and targeting ect..

if i changed it i would have to change alot of other things

82
Submit your Script / Re: Hitech's Master Control
« on: March 06, 2017, 04:56:25 PM »
ty TrailMyx,

its longer then i want but its shorter then i had.

im thinking maybe something like s7's craft file for my button locations, but i forgot what that looks like so i need to study more


83
Submit your Script / Re: Hitech's Master Control
« on: March 06, 2017, 04:31:53 PM »
nice work ghost ty for help

84
Submit your Script / Re: Hitech's Master Control
« on: March 06, 2017, 04:22:20 PM »
I dont feel i need a gosub for every button.....

no matter what button i click the code does the same thing, except each button has a diffrent location so 1 sub should be fine

85
Submit your Script / Re: Hitech's Master Control
« on: March 06, 2017, 04:19:07 PM »
im still not following, let me recap

currently

Code: [Select]
if #menubutton = thing
{
do stuff
}
else
{
do other stuff
}

100 times

the gosub way

Code: [Select]
if #menubutton <> #false
       gosub #menubutton

sub thing
return

sub thing2
return

100 times

or do u mean something else?

86
Submit your Script / Re: Hitech's Master Control
« on: March 06, 2017, 04:13:44 PM »
this would do all my buttons with 2 subs


Code: [Select]
sub buttonlocation
blah blah
blah blah

gosub menuButtonClicked x y w h
return


Code: [Select]
sub menuButtonClicked
;----------- menu Button {name} {x} {y} {width} {height} {text}

if #menubutton = #false
          return
menu delete button #menubutton

        if ! . #menubutton = #false
           {
            set ! . #menubutton #true
            menu font BGcolor red
            menu font color white
           menu Button #menubutton 120 105 30 23 #menubutton ;----- hmm location of each button ???
           ;--menu Button #menubutton %1 %2 %3 %4 #menubutton ;--- maybe pass the location with gosub
             }
        else
            {
            set ! . #menubutton #false
            menu font BGcolor blue
            menu font color white
            menu Button #menubutton 120 105 30 23 #menubutton
            ;--menu Button #menubutton %1 %2 %3 %4 #menubutton ;--- maybe pass the location with gosub
             }
       set #menubutton #false
        }
       
return

87
Submit your Script / Re: Hitech's Master Control
« on: March 06, 2017, 04:10:11 PM »
@ ghost .... seems pointless
 
that seems pointless

100 if statements  or 100 gosubs ... i see no gain

88
Submit your Script / Re: Hitech's Master Control
« on: March 06, 2017, 04:08:32 PM »
its just a menu, you can test it without client open

89
Submit your Script / Re: Hitech's Master Control
« on: March 06, 2017, 04:07:27 PM »
I have all the locations loaded at start to build the menu,
granted a few buttons will need specail treatment, but that should be ok


90
Submit your Script / Re: Hitech's Master Control
« on: March 06, 2017, 04:04:57 PM »
ya , sure would make script smaller and adding new buttons easy

Pages: 1 ... 4 5 [6] 7 8 9