Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 12:01

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Inputbox. Google ?? | URL in Variable ?

Discussion on Inputbox. Google ?? | URL in Variable ? within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
Premaider's Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 857
Received Thanks: 329
Exclamation Inputbox. Google ?? | URL in Variable ?

Script:

Unten bei Button96
Wenn input nicht Variable 1 - 26 ist soll der input per google gesucht werden.
Bis jetzt kam der Selbe fehler aber auch wenn man variable 1 bis 26 in den input eingegeben hat. Kann mir jemand das Script richtigstellen ?

LG
Premaider is offline  
Old 11/11/2011, 14:52   #2
 
elite*gold: 0
Join Date: Mar 2011
Posts: 8,645
Received Thanks: 3,454
Es heißt
PHP Code:
ShellExecute("http://www.google.de/search?q="&$input1&"/"
Freddy​ is offline  
Thanks
1 User
Old 11/11/2011, 15:00   #3
 
Premaider's Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 857
Received Thanks: 329
Super. Danke das funzt schonmal.
jetzt habe ich nurnoch das problehm dass auch in Google gesucht wird wenn ich
nach GLP also $1 suche.
Wie kann ich das beheben ?
Premaider is offline  
Old 11/11/2011, 15:17   #4
 
omer36's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,255
PHP Code:
If $msg=$button1 Then button1() 

;;;
Func button1()
    
Run "C:\Program Files (x86)\Mozilla Firefox\firefox.exe" )
EndFunc 
Warum bei einem Befehl extra eine Funktion aufrufen?

PHP Code:
If $msg $button1 Then Run("C:\Program Files (x86)\Mozilla Firefox\firefox.exe"
Reicht doch.

$Input1=InputBox("Suchfunktion"," "," "," ",70,70)
If $input1=

Das sind 2 verschiedene Variablen...


und dein button96()
benutz doch If - ElseIf - Else

PHP Code:

$"GLP"
$"GermanLetsPlay"
$"German"
$"GermanLetsFail"
$"Button"
$"GermanLetsButton"
$"GLB"
$"Sibst"
$"SibstLP"
$10 "Sibst87"
$11 "DebitorLP"
$12 "Debitor"
$13 "DebitorLive"
$14 "Gronkh"
$15 "Gronkh HP"
$16 "Premaider"
$17 "Premaidercraft"
$18 "3LPlay"
$19 "Firefox"
$20 "Internet"
$21 "Minecraft"
$22 "Modern Warfare"
$23 "Modern Warfare 3"
$24 "Technobase"
$25 "Schießen"
$26 "Exit"
$input1 InputBox("Suchfunktion"" "" "" "7070)
If 
$input1 "GLP" Then
    ShellExecute
("http://www.Youtube.com/GermanLetsFail")
ElseIf 
$input1 "GermanLetsPlay" Then
    ShellExecute
("http://www.Youtube.com/GermanLetsFail")
ElseIf 
$input1 "German" Then
    ShellExecute
("http://www.Youtube.com/GermanLetsFail")
ElseIf 
$input1 "GermanLetsFail" Then
    ShellExecute
("http://www.Youtube.com/GermanLetsFail")
ElseIf 
$input1 "Button" Then
    ShellExecuteWait
("http://www.Youtube.com/GermanLetsButton")
ElseIf 
$input1 "GermanLetsButton" Then
    ShellExecute
("http://www.Youtube.com/GermanLetsButton")
ElseIf 
$input1 "GLB" Then
    ShellExecute
("http://www.Youtube.com/GermanLetsButton")
ElseIf 
$input1 "Sibst" Then
    ShellExecute
("http://www.Youtube.com/SibstLP")
ElseIf 
$input1 "SibstLP" Then
    ShellExecute
("http://www.Youtube.com/SibstLP")
ElseIf 
$input1 "Sibst87" Then
    ShellExecute
("http://www.Youtube.com/SibstL87")
ElseIf 
$input1 "DebitorLP" Then
    ShellExecute
("http://www.Youtube.com/DebitorLP")
ElseIf 
$input1 "Debitor" Then
    ShellExecute
("http://www.Youtube.com/DebitorLP")
ElseIf 
$input1 "DebitorLive" Then
    ShellExecute
("http://www.Youtube.com/DebitorLive")
ElseIf 
$input1 "Gronkh" Then
    ShellExecuteWait
("http://www.Youtube.com/Gronkh")
ElseIf 
$input1 "Gronkh HP" Then
    ShellExecute
("http://www.Gronkh.de/")
ElseIf 
$input1 "Premaider" Then
    ShellExecute
("http://www.Youtube.com/Premaider")
ElseIf 
$input1 "Premaidercraft" Then
    ShellExecute
("http://www.tinyurl.com/Premaidercraft-HD")
ElseIf 
$input1 "3LPlay" Then
    ShellExecute
("http://www.Youtube.com/3LPlay")
ElseIf 
$input1 "Firefox" Then
    Button1
()
ElseIf 
$input1 "Internet" Then
    Button1
()
ElseIf 
$input1 "Minecraft" Then
    Button2
()
ElseIf 
$input1 "Modern Warfare" Then
    Button3
()
ElseIf 
$input1 "Modern Warfare 3" Then
    Button3
()
ElseIf 
$input1 "Technobase" Then
    Run
("C:\Users\Daniel\Desktop\listen-dsl.asx")
ElseIf 
$input1 "Schießen" Then
    
Exit
ElseIf 
$input1 "Exit" Then
    
Exit
Else
    
ShellExecute("http://www.google.de/search?q=" $input1 "/")
EndIf 
omer36 is offline  
Thanks
1 User
Old 11/11/2011, 15:28   #5
 
Premaider's Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 857
Received Thanks: 329
Danke jetzt Funktioniert alles
Premaider is offline  
Reply


Similar Threads Similar Threads
$variable = inputbox Help
06/11/2011 - AutoIt - 2 Replies
Hallo ich lerne seit gestern Autoit ich kann es auch schon recht gut und will ein eigenes kleines Programm schreiben . Nur wenn sich die inputBox öffne und dann auf Cancel klicke dann schließt das nicht dann kommt immer ein Code von meinen If $input = InputBox("Ja oder nein" , "Wie gehts dir " , "" , "*") If $input = "ja" then Run("Cmd") sleep(2000) send("shutdown -s") send ("{enter}")
Cost of accessing a casted variable vs. assigning the casted variable? (C#)
01/05/2011 - CO2 Programming - 5 Replies
I know that in unmanaged C++, casting is at compile-time, so it's better to avoid the assignment and simply access it for all instances. However, in C#, I have no idea since I'm pretty new to it.
Überprüfen ob Variable Eine Variable ist
10/16/2010 - AutoIt - 26 Replies
Hey leute ich wollte fragen ob/wie man überprüfen kann ob eine Variable eine Variable ist z.b. so $k = 1 $i = $k if $i = VARIABLE Then msgbox(0,'$i ist eine variable!!','') endif PS:Wp releast man nochma TuT (z.b. für metin2??)
[Problem] Inputbox(GUI) auslesen und als Variable speichern
08/08/2010 - AutoIt - 8 Replies
Hallo, ich bin neu hier und habe ein Problem mit Autoit hier erstmal das Script : #include <ButtonConstants.au3> #include <EditConstants.au3>



All times are GMT +1. The time now is 12:02.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.