Jump to content

saprouzy

Member
  • Posts

    46
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Lebanon

Everything posted by saprouzy

  1. i think this could work, since it's not necessary to catch the msgbox instantly, i can do a check every 10 minutes what am trying to do, is to check whether an application among the ones running generated an error msgbox, if so, kill it's process and run it again... can the enumwindow get the name of the application that caused a msgbox to appear? i know i can do this in another way but then it would need modification to all the apps ( ) to put a record in a database that it had an error...so trying to do a system hook would be better anyways am still reading and checking examples to get to the bottom of this
  2. no worries dude thanks for your help
  3. Hey there, i hope me asking alot of questions doesn't annoy anyone... is there a way to catch events that happen in another applications, for example, if app1 poped up a msgbox, i want app_catcher to notice this event and act accordingly am currently reseaching on event handling stuff, but if anyone already knows how to do this or where i can read about it i would be greatful thanks
  4. delprat's way didn't work ,am getting type mismatch when the c is assigned a control that isn't a filelistbox during the for loop. am sticking to dman's way. thanks both
  5. thanks dman, i guess this should do it, i'll try it tomorrow at work. delprat that wouldn't work, since not all controls have ListCount so it would be an invalid property <-- EDIT: errm nevermind that, didn't pay attention to Dim c as FileListBox it's worth a try thanks anyways
  6. Dim c As Control For Each c In Me.Controls If c.??? = FileListBox Then If c.ListCount > 0 Then MsgBox "pending files" End If End If Next hey there, i was wondering how we can check the type of the control
  7. how can i delete a post hehe nevermind the question
  8. hi there, how can i know if there are files in some directory no matter what the file name is (in vb) thanks
  9. is there a way to get the list of declared variables?
  10. what you suggested is interesting, but i guess it only works for simple cases what i wanted to do is for more complex stuff, for example Str = "cmbText = SomeFunction(someArg)" if Str then do bla end if i guess it's impossible
  11. that's exactly what am trying to do.. hehe
  12. that's not what i meant in my question, what i want is to use a string as the expression for the if statment suppose i have this string: Str = "cmbNames.Text = ""saprouzy""" cmbNames being a comboBox i want to a function (ie EvaluateSt) to evaluate Str and return a boolean If EvaluateSt(Str) Then do bla end if
  13. hello there, i was wondering if there's a way to evaluate a string as a boolean ie: if bool_str then do something end if with bool_str being something like "varibale1 = variable2" or "RS.recordCount = variable" or more complex things thanks
×
×
  • Create New...